mjackson / citrus

Parsing Expressions for Ruby

Home Page:http://mjackson.github.io/citrus

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bad predicate behavior?

josephwecker opened this issue · comments

From the readme documentation:

&'a' 'b'      # match a "b" preceded by an "a"

I haven't tried the library yet but got stuck on that line - does citrus implement and-predicates so that they consume characters? In normal PEG that expression would always fail because they would be looking at the same spot in the stream.

You're right. This is a bad example. Fixed here.