aboutsummaryrefslogtreecommitdiff
path: root/runtime/CSharp3/Sources/Antlr3.Runtime.Test/Composition/VecMath_Lexer.g3
blob: fde3390cd9cefceeaccc3d7bda6ba8fec84d747b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
lexer grammar VecMath_Lexer;


PRINT        : 'print';
ID           : 'a'..'z'+ ;
INT          : '0'..'9'+ ;
WS           : (' '|'\r'|'\n')+ {Skip();} ;
PLUS         : '+';
MINUS        : '-';
MULT         : '*';
EQUAL        : '=';
DOT          : '.';
OPEN_BRACE   : '(';
OPEN_SQUARE  : '[';
CLOSE_BRACE  : ')';
CLOSE_SQUARE : ']';
COMMA        : ',';