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
Could you please suggest any workarounds to make this work? I'm still struggling with advanced regex use cases.
Also, unrelated: when I try to use positive lookahead (?="x"), I always get an error saying that branch matched the symbol in question, but it doesn't progress the lexer. Negative lookahead (?!"x") works as expected.
The text was updated successfully, but these errors were encountered:
As usual, I came to the solution right after asking the question (I've been stuck on this issue for the 3rd day already).
Using participle.UseLookahead(n) option solves the issue. I've just used it incorrectly (called right away instead of passing to participle.MustBuild). Silly mistake.
Hello, and thank you for the awesome library!
I'm trying to create a parser for source code. The stripped down example parsing expressions and assignments would be as following:
Parser fails on the last entry:
As far as I understand, in
Entry
it picksAssignment
path instead ofExpression
because it can't know how long will be the repeatingPath
value.Not sure if it's the same issue as #216
Could you please suggest any workarounds to make this work? I'm still struggling with advanced regex use cases.
Also, unrelated: when I try to use positive lookahead
(?="x")
, I always get an error saying that branch matched the symbol in question, but it doesn't progress the lexer. Negative lookahead(?!"x")
works as expected.The text was updated successfully, but these errors were encountered: