module examples::evenOdd::Syntax
rascal-0.40.16
typepal-0.14.8
Usage
import examples::evenOdd::Syntax;
Source code
http://github.com/usethesource/typepal/src/examples/evenOdd/Syntax.rsc
Dependencies
extend examples::CommonLex;
syntax EvenOdd
start syntax EvenOdd
= Statement+ statements
;
syntax Statement
syntax Statement
= "even" Integer integer ";"
| "odd" Integer integer ";"
;
syntax Reserved
keyword Reserved = "even" | "odd";