-
I'm not sure to understand the difference between plucked expression and labeled plucked expression. example: peggy.generate('Test = @$[a]+ " "* "/" " "* @$[z]+').parse('aaa / zzz')
// => ['aaa', 'zzz'] peggy.generate('Test = @start:$[a]+ " "* "/" " "* @end:$[z]+').parse('aaa / zzz')
// => ['aaa', 'zzz'] I expected to get something like |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
The feature you're expecting is in #302. Right now, labeled plucked expressions are only useful for semantic predicates, as far as I know: Test = @start:$[a]+ " "* "/" " "* @end:$[z]+' &{ return start.length < 1000 && end.length < 1000 } |
Beta Was this translation helpful? Give feedback.
-
Going to close this as a dup of #302. |
Beta Was this translation helpful? Give feedback.
-
#398 also adds a little more to the docs about labeled plucks. |
Beta Was this translation helpful? Give feedback.
The feature you're expecting is in #302. Right now, labeled plucked expressions are only useful for semantic predicates, as far as I know: