add test lexer grammar

This commit is contained in:
ChUrl
2020-12-03 16:03:53 +01:00
parent fbfb81c6c7
commit 0dceca3670

View File

@ -0,0 +1,14 @@
/*
* Lexer Rules
*/
lexer grammar StupsLexer;
@header {
package lexer;
}
fragment FIRST_DIGIT : [1-9] ;
fragment DIGIT : [0-9] ;
NUMBER : FIRST_DIGIT DIGIT* ;
WHITESPACE : ' ' -> skip ;