4 ms·
I think your epsilon injection rule is trying to achieve this kind of production: TRRE <- TRRE ':' REGEX | ':' TRRE | TRRE ':' | REGEX | ... I think this
by kccqzy 2y ago
I think your epsilon injection rule is trying to achieve this kind of production:
TRRE <- TRRE ':' REGEX | ':' TRRE | TRRE ':' | REGEX | ...
I think this would work better, but ':a:' is still ambiguous: it has two parse trees.