Closed ptal closed 9 years ago
The syntax has changed. We only accept function:
rule = [0-9]+ > to_integer
The idea of the >
is to redirect the result of the parser to a function. It's like a reverse function call operator (instead of f(x) we write x>f).
my_rule = "match_me" { Ok(Expression(s)) }