php-peg icon indicating copy to clipboard operation
php-peg copied to clipboard

Predicates must not call attached functions

Open Kentzo opened this issue 6 years ago • 0 comments

Currently matches within predicates execute attached functions. It's impossible to distinguish whether call came from a legit match or from a predicate.

One possible fix is to pass stack into the callback.

Kentzo avatar May 03 '19 05:05 Kentzo