sebastienros / parlot

Fast and lightweight parser creation tools
BSD 3-Clause "New" or "Revised" License
381 stars 45 forks source link

Q: Analog to Boost.Spirit genre embedded parsers #50

Closed mwpowellhtx closed 3 years ago

mwpowellhtx commented 3 years ago

Hello, sir, compelling work. Is it analog to Boost.Spirit vis-a-vis embedded parsers, DSL's, etc? Thanks, cheers... Vive la France; for your LIBERTIES there in France. GODSPEED.

sebastienros commented 3 years ago

Just discovered this project, and yes I think it's the same logic, i.e. parser combinators, which means parsers are built as composites of smaller parsers. I am sure I can learn from it.

sebastienros commented 3 years ago

https://www.boost.org/doc/libs/develop/libs/spirit/doc/x3/html/index.html

mwpowellhtx commented 3 years ago

Yes, I am coming from a Boost.Spirit background, although not so much with X3, YMMV. Also, with experience with ANTLR, but I think that is code generated based on the spec, not quite the same thing; closer to a traditional YACC, etc.

That to say, Parlot struck me as being kind of interesting from a dotnet or CSharp perspective.

sebastienros commented 3 years ago

I also have some experience with antlr, but from a long time ago. And I helped someone re-implement an antlr grammar recently:

image

mwpowellhtx commented 3 years ago

Wow, performance pushing 10x, an order of magnitude. Impressive. ... I may not be reading that quite right, still, impressive.