Looking at the Chomsky hierarchy of grammars I find that for Type 2 grammars (context free grammars) very good tools exist to aid in creating software to read these from text into a usable data structure in memory. In my experience Antlr4 is one of these tools that do this.
Recently I was confronted with Markdown which turns out to be a context sensitive grammar (i.e. Chomsky Type 1) and as such no grammar definition for Antlr4 exists. See here and here.
So I was wondering;
- Is there a tool that aids in creating a parser for a context sensitive grammar?
- If not, is such a thing even possible?
I've actually encountered one. Quinn Taylor Jackson's meta-S seems to do what OP is looking for. This wikipedia articles discusses it and a number of similar systems but meta-S seems more practical than most of the other discussed there: https://en.wikipedia.org/wiki/Adaptive_grammar#cite_note-Jackson2006-3
At quora, I analyze how this stands up in practice against GLR parsers: https://www.quora.com/What-is-the-most-powerful-parser-algorithm