3 ms·
I have written a parser generator to generate a parser for a compiler project for a class. It is indeed the easier route. Your parser specification language is
by adrianN 11y ago
I have written a parser generator to generate a parser for a compiler project for a class. It is indeed the easier route. Your parser specification language is usually a lot simpler than your target language. Your parser generator also just needs the features required for your particular grammar, which means that dirty hacks and regex parsing are a viable route.