|
|
|
|
|
by zasdffaa
1414 days ago
|
|
> If you choose to specify your language using a class of grammar which permits ambiguity, then you have to resolve that ambiguity. I added an edit after which you may not have seen: even context-free grammars have ambiguity, eg. the regexp "aa" is legal but ambiguous for sentence "aaa"
So what grammar can you suggest that's even weaker than context-free (to make expressions of ambiguity impossible) and still useful?> I'd choose to write one manually Matter of taste I guess. |
|
It doesn’t need to be weak. For example use a Parsing Expression Grammar.