sebastianriese / pyLR1

A pure python LR(1)/LALR(1) parser generator
7 stars 3 forks source link

Overhead due to stand-alone parsers/lexers #18

Open sebastianriese opened 11 years ago

sebastianriese commented 11 years ago

Some of the source code of the generated files could be split to a runtime library. This should remain optional/it has to be easy to ship the runtime with any other package using generated parsers.

An extension module runtime library would also allow speeding up the parser transparently, where available (perhaps we would have to get the lex/parse-tables out of the python data structures for more efficient access).

We should also think about cleaner design of the Lexer and Parser classes and extensibility.

sebastianriese commented 10 years ago

First work on this is done. We loose some options, but the changes have not been propagated to main.py, standalone mode has to be implemented where the entire runtime is copied to the output file