3 ms·
What’s your opinion on parsing generators, though? One advantage of them is that they give a specification of the grammar as well.
by kaba0 4y ago
What’s your opinion on parsing generators, though? One advantage of them is that they give a specification of the grammar as well.
- recursivedoubts 4y agofrom the site: > unfortunately many big brain school teach only parser generator tool. here grug usual love of tool is not: parser generator tool generate code of awful snakes nest: impossible understand, bottom up, what? hide recursive nature of grammar from grug and debug impossible, very bad according grug! Depending on your language, creating a grammar and then creating a recursive descent parser based on it is a perfectly reasonable approach, and that's what most major programming languages do. For experimental stuff like https://hyperscript.org https://hyperscript.org I wing it a bit more, but that's the flavor of that language.