Progress on Stitch Parser

By james

Took most of the weekend, but I now have a parser that will recognize the following:


pain{
display:none;
}
agony{
border-color:red;
margin:$user.name;
padding:$user;
}
.dog{
border-color:red;
margin:$user.name;
padding:$user;
}
#cat{
padding:$user;
}
#mouse .blah{
padding:$user;
}
#mouse p{
padding:$user;
}
#mouse p.short{
content:$user.name;
}
#rat p .blah span:if($owner.address){
content:$user;
}
hope:if($user.boss){
display:remove;
}

You can probably see some of my frustration coming out in some of the names. I’m better now…really. I have one “lexical nondeterminism” right now…which should be fairly easy to overcome…but not tonight.

Leave a Reply