3 ms·
Is it possible to take some extended BNF and standard nonterminal names (stat, funcname, etc.) then output some Hello, World! example from it? It would be real
by andrewmcwatters 6y ago
Is it possible to take some extended BNF and standard nonterminal names (stat, funcname, etc.) then output some Hello, World! example from it?
It would be really cool to just generate the look and feel of a programming language just using extended BNF.
- orlandohill 6y agoYes, grammars can be used for both string matching and string generation. You could generate strings from an ungrammar, but you would need a way to generate valid tokens too.