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
Just report my work around. I've add a backward function for the lexer. In a lexer rule I search for the whole text. Do rexgex match unwanted part, count its length, call this function, and sub this unwanted part from the whole matched. Hooray! Its work. :)
In lex/flex, there is a 'trailing context' pattern:
match/require
, such aswhich will match only
a
if it follow byn
. Soa
inand
,can
,another
are matched, buta
inalone
,mask
is not matched.I found this feature is missing in PLY. Since I'm greatly rely on this feature, please add it.
The text was updated successfully, but these errors were encountered: