In order to address the issue with "[...]" having three different meanings, I implemented a TokenStream decorator that determines the context of the "[" token and changes it to something with more meaning. No problems doing it except for a constant stream of wetware failures.
I then modified the operator precedence parser to injest one the new "this open bracket signals an array" meaning. Works fine.
I'll add the other two [-tokens tonight perhaps. The big-O-n^2 operator precedence parser configuration is starting to require a lot ot typing. I suppose I have "made my bed" at this point, perhaps if there is a rev 2 I'll slim it down.
Tuesday, May 8, 2007
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment