|
|
|
|
|
by victorNicollet
950 days ago
|
|
I am a bit biased (in the sense that I wrote my own SLR parser generator twice, in C# and F#!), but the benefit of LR is that you can know whether your CFG contains conflicts, which is a game changer for preserving backwards compatibility when you change the syntax later during the life of the DSL. But if a parser combinator library may support converting the resulting combined parser into an eBNF grammar, and check whether that grammar contains conflicts. |
|
IF you are using a 'functional' paradigm, you can do your own parser/combinator.
But if you are using C#, you use something like Yacc and LR.?