Parse-Nibbler-1.07 was just uploaded to CPAN.

It parses simple Verilog at about 1000 lines per second,
using a pure perl parser and a pure perl grammar,
no C and no intermediate stages, just perl all the way.

The big help was adding a "Peek" method which lets
me determine what rule to call next by peeking at
the next lexical. Previously, if I had a couple 
possible rules, I just called them in sequence until
one of them passed. Peeking lets me look once, and 
jump right to the rule that fits.

probably should have taken a parser course in college....
Oh well.

Greg

Reply via email to