OO-based grammar


/ Published in: Lisp
Save to your folder(s)

at runtime, there are no if statements. everything gets sent "act" and instances sort themselves out whether or not to recurse or just return their head.

one bug kept me busy for a while- while adding terminals, i was traversing the cache while at the same time adding in new items. this lead to no end of bother.

but once i separated that out into 2 pass (one to find terminal symbols, one to add in a *terminal* for each such symbol) it was all pretty straight forward

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.