Initial commit
This commit is contained in:
22
src/main/antlr/VSLLexer.g
Normal file
22
src/main/antlr/VSLLexer.g
Normal file
@@ -0,0 +1,22 @@
|
||||
lexer grammar VSLLexer;
|
||||
|
||||
options {
|
||||
language = Java;
|
||||
}
|
||||
|
||||
@header {
|
||||
package TP2;
|
||||
}
|
||||
|
||||
WS : (' '|'\n'|'\t') { skip(); }
|
||||
;
|
||||
|
||||
COMMENT : '//' (~'\n')* { skip(); }
|
||||
;
|
||||
|
||||
fragment LETTER : 'a'..'z' ;
|
||||
fragment DIGIT : '0'..'9' ;
|
||||
fragment ASCII : ~('\n'|'"');
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user