2 ms·
Ambigious does not mean invalid
by awestroke 3y ago
Ambigious does not mean invalid
- chubot 3y agoYes, technically it means "there's more than one derivation" But Python's pgen rejects such grammars as invalid ... The other strategy is just to pick an arbitrary interpretation
- hinkley 3y agoFor people who see parsing as model checking, ambiguity means something vastly different (inferior) to leniency. Fast parsers that use a schema are also doing model checking.