Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

1. Nope, I still need to make some more example grammars :)

2. Yup: https://github.com/gosukiwi/Pasukon/blob/master/lib/grammar....



I find (2.) rather interesting. A parser than can parse its own grammar definitions. A language that can define itself.


Yeah it's pretty cool, if I say so myself :) It parses itself (using a pre-compiled AST) to parse other user-defined grammars.

Initially I started using PEGjs, and then swapped once it was ready.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: