First page Back Continue Last page Overview Graphics
Rules and Grammars
A grammar is a class that defines rules
- grammar gram {
- rule not ($rx) { <!$rx> }
- rule identifier { <not before \d> \w+ }
- rule \j { \c[LF] }
- rule parse { ^ <identifier> \j $ }
- }
Use it like a method: