tolmasky / language

A fast PEG parser written in JavaScript with first class errors
languagejs.com
MIT License
411 stars 48 forks source link

python parser generation #10

Closed aparajita closed 8 years ago

aparajita commented 13 years ago

Boy I would love a python parser to be generated. This would make integration with capp_lint and text editors (TextMate, Sublime Text) much easier.

kassens commented 12 years ago

I've translated the parser.js to python. It's just for fun and work in progress and likely still contains bugs. You can feed grammars in json form to it.

https://github.com/kassens/language

aparajita commented 12 years ago

Awesome, thank you!

kassens commented 12 years ago

On a simple grammar, it works, but there's some bug when I try to parse a JS file with the JS grammar.