- or download this
Add : Mult /[+-]/ Add
| Mult
- or download this
Add : Mult ( /[+-]/ Add )*
- or download this
<rule: Add>
<[X=Mult]> ** <[Op=(\+|-)]>
- or download this
<rule: Equal>
<X=Term> <Op=(==|!=|\x3c=\x3e|eq|ne|cmp)> <Y=Term>
| <MATCH=LessGreater>
- or download this
Equal : Term OP Term
| LessGreater
- or download this
Equal : LessGreater OP LessGreater
| LessGreater
- or download this
Equal : LessGreater (?: OP LessGreater )?
- or download this
<rule: Equal>
<X=LessGreater> (?: <Op=(==|!=|\x3c=\x3e|eq|ne|cmp)> <Y=LessGreate
+r> )?
- or download this
<rule: Equal>
<X=LessGreater>
...
|
(?{ ... }
)
- or download this
#!perl
use v5.10;
...
say 'PARSE FAILURE';
}
}