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

Looks interesting! Have you implemented any more complex grammars with this, e.g. Python or Javascript? Would be interested to see how they perform.

Also, does it support multi-stage parsing, i.e. generation of a token tree and then a parse tree from it?



There is a WIP php parser developed by the community: https://github.com/steffengy/pesty-php/blob/master/src/parse...

And, yes, it does support multi-stage parsing. After the tokens are generated, there is a process! macro which handles them. This is where you can produce an AST.




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

Search: