You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And I realized that priority (or precedence) should be possible to express with ordered choice (from PEG):
<E>= <"("> E <")"> / or / and / idand=E <"&"> Eor=E <"|"> Eid= #"\w+"
And it gives correct result for insta/parse. But when I use insta/parses (s). It gives me both trees as if I was using | instead of /. There are only two possible trees for a|b&c.
So I wonder why? And wouldn't it be beneficial (for memory/performance) to throw away second tree?
The text was updated successfully, but these errors were encountered:
I thought if it is possible to create disambiguation operators, see
And I realized that priority (or precedence) should be possible to express with ordered choice (from PEG):
And it gives correct result for
insta/parse
. But when I useinsta/parses
(s). It gives me both trees as if I was using|
instead of/
. There are only two possible trees fora|b&c
.So I wonder why? And wouldn't it be beneficial (for memory/performance) to throw away second tree?
The text was updated successfully, but these errors were encountered: