Writing a really fast lexer

Sebastiaan Koppe mail at skoppe.eu
Sat Dec 12 20:45:42 UTC 2020


On Saturday, 12 December 2020 at 18:15:11 UTC, vnr wrote:
> Yes, I know Pegged, it's a really interesting parser generator 
> engine, nevertheless, the grammar of what I would like to 
> analyse is not a PEG. But I am also curious to know the 
> performances of this tool for very large inputs.

The performance of pegged isn't great. Neither memory nor cpu 
wise. In many cases that is fine though, but if you are 
performance sensitive, you should look elsewhere.

I did a full JS grammar in pegged, but switched to a handwritten 
one when I realised its poor performance.


More information about the Digitalmars-d-learn mailing list