module examples::CommonLex
rascal-0.40.16
typepal-0.14.8
Usage
import examples::CommonLex;
Source code
http://github.com/usethesource/typepal/src/examples/CommonLex.rsc
Dependencies
extend lang::std::Layout;
syntax Id
lexical Id = ([a-z A-Z][a-z A-Z 0-9]* !>> [a-z A-Z 0-9]) \ Keywords;
syntax Boolean
lexical Boolean = "true" | "false";
syntax Integer
lexical Integer = [0-9]+ !>> [0-9];
syntax String
lexical String = [\"] ![\"]* [\"];
syntax Keywords
keyword Keywords = "true" | "false";