Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement special form of & predicate #34

Open
tmc opened this issue Feb 19, 2015 · 1 comment
Open

Implement special form of & predicate #34

tmc opened this issue Feb 19, 2015 · 1 comment

Comments

@tmc
Copy link
Contributor

tmc commented Feb 19, 2015

&{ expression }

          In  this  predicate  the  simple C expression (not statement) is
          evaluated immediately when the parser reaches the predicate.  If
          the  expression  yields non-zero (true) the 'match' succeeds and
          the parser continues with the next element in the  pattern.   If
          the  expression  yields  zero  (false) the 'match' fails and the
          parser backs up to look for an alternative parse of the input.

Via http://piumarta.com/software/peg/peg.1.html,

@Archs
Copy link

Archs commented Jun 9, 2015

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants