On Aug 3, 2009, at 8:36 AM, Marco Maggi wrote:
One problem that needs to be solved is how to access parser and lexer specific state when loading the parser/lexer from a library.
Why do the lexer and parser have state, and what does that state hold? Last I remember, the lexer's job is to return one token at a time, and the parser's job is to request tokens and return one parse tree at a time (this usually consumes all tokens up to a delimiter/end-of-file). The lexer/parser should be an object (whatever that is) that holds all of the state it cares about (if any), no? Maybe I'm missing something. Aziz,,,
