2 ms·
And the next level would be to create a grammar for what one wants to parse, which would make it more declarative and even better. The problem with parser comb
by zelphirkalt 6y ago
And the next level would be to create a grammar for what one wants to parse, which would make it more declarative and even better.
The problem with parser combinators is not as big as with regular expressions, but they still have a problem, once the format suddenly changes. You might need to change your code, possibly a lot. Using grammars, you can change only the declarative grammar and the program stays the same. Also a grammar can be used from other programming languages as well, if they support the same grammar syntax (have a parser for that syntax, ha!).