4 ms·
Its currently in a private bitbucket repo. I can give you the parser though, MIT licensed. ParserUtils is where maybeIndented and indented are. They make inden
by VoiceOfWisdom 10y ago
Its currently in a private bitbucket repo. I can give you the parser though, MIT licensed.
ParserUtils is where maybeIndented and indented are. They make indentation just work. There currently overzealous with backtracking though, makes errors kinda shit. Working on that at somepoint.
https://gist.github.com/xavierzwirtz/99479a11f1eefd3215467f7ea26b5c46 https://gist.github.com/xavierzwirtz/99479a11f1eefd3215467f7...
- mamcx 10y agoOk, thanks. But this not look more easy than just do it as TopDown Parser. But I don't know your language so it maybe have provided you with some benefits more than just lines of code?
- VoiceOfWisdom 10y agoBig benefit to me was being able to do it all with parser combinators, and without having to drop into another language like lex and yacc.
- UK-AL 10y agoParser combinators are top down parsers.