3 ms·
I am reading up on this a bit and it seems very interesting but I am not quite sure it would be able to fill the gap that something like Antlr fills. We want to
by kasbah 8y ago
I am reading up on this a bit and it seems very interesting but I am not quite sure it would be able to fill the gap that something like Antlr fills. We want to generate parsers in various languages (JS, Python, Go) from a single grammar and existing implementations of "Parsing with Derivatives" seem to be experimental and mostly in functional languages.
Prolog is really interesting too but how would it work in practice for our use case?
- carapace 8y agoAh, I misunderstood what you were asking about. My suggestions don't really apply so much to your case. You might take a look at the Meta-II metacompiler. It's really simple but by the same token it's trivial to port it to different languages. It's part of the basis for VPRI's PEG (Parser Expression Grammar) parser generators. https://en.wikipedia.org/wiki/META_II https://en.wikipedia.org/wiki/META_II http://www.bayfronttechnologies.com/mc_tutorial.html http://www.bayfronttechnologies.com/mc_tutorial.html