FSK B

>b's weblog

News. Journal. Whatever.

Wenn man einen Sumpf trockenlegen willNew YML 2 version 1.16

New pyPEG version 0.42

pyPEG release 0.42 is there.

I dropped the support for generating line numbers as text directly into the pyAST. Instead now pyAST consists of pyPEG.Name objects for the names of the non-terminal symbols. pyPEG.Name is a class derived from Python's str class. Additionally, it has a .line attribute, which contains the line number the corresponding non-terminal was found.

I added memoization, so pyPEG is a packrat parser now, if you want one. This is disabled by default, because it's slower to do so, if your grammar is defined in a clever way, but if you're grammar is written unhandy, this may increase parsing speed.

Because the API had to change slightly (the last parameter of the parse() and parseLine() functions now has another meaning), there is a download link for the last version with the old API, too (0.34).

publiziert Thu, 05 Aug 2010 19:24:48 +0200

Zurück zum Blogindex