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
I am a LPeg.re user and I'm used to these features provided by LPeg
Syntax
Description
p^num
exactly n repetitions
p^+num
at least n repetitions
p^-num
at most n repetitions
p => name
match-time capture equivalent to lpeg.Cmt(p, defs[name])
PEG.js is great but when I want to migrate these rules, I don't know how to get the same functionality. The first three are about specifying the number of repetitions of a pattern. The last one is about a function that could decide if the match is success, or change the offset of the end of match, with information of the input, current position and captures.
Software
PEG.js: 0.10.0 online version
The text was updated successfully, but these errors were encountered:
Issue type
Description
I am a LPeg.re user and I'm used to these features provided by LPeg
p^num
p^+num
p^-num
p => name
lpeg.Cmt(p, defs[name])
PEG.js is great but when I want to migrate these rules, I don't know how to get the same functionality. The first three are about specifying the number of repetitions of a pattern. The last one is about a function that could decide if the match is success, or change the offset of the end of match, with information of the input, current position and captures.
Software
The text was updated successfully, but these errors were encountered: