correction bug INDENT dans Lexer, TODO réparé NUMBER négatif !

This commit is contained in:
Rochas
2025-04-29 01:23:15 +02:00
parent bd56995d63
commit 0929ce1b71
2 changed files with 2 additions and 8 deletions

View File

@@ -62,7 +62,7 @@ MOD: '%'
;
VIRGULE: ','
;
IDENT: ('a'..'z'|'A'..'Z')('a'..'z'|'A'..'Z'|'0'..'9'|'_'|'-')*
IDENT: ('a'..'z'|'A'..'Z')('a'..'z'|'A'..'Z'|'0'..'9'|'_')*
;
WS : (' '|'\n'|'\t'| '\r') { skip(); }
;

View File

@@ -9,8 +9,6 @@ import org.antlr.runtime.CommonTokenStream;
import org.antlr.runtime.RecognitionException;
import org.antlr.runtime.Token;
import .antlr.VSLLexer;
import .antlr.VSLParser;
import TP2.asd.Program.*;
import TP2.llvm.ProgramLLVM;
import TP2.llvm.ProgramLLVM.*;
@@ -24,14 +22,10 @@ java -jar build/libs/TP2.jar tests/fragment0/priority2.vsl
java -jar build/libs/TP2.jar tests/aLaMain.vsl
*/
/* TODO :
/* TODO : problème de "-" : un NUMVER seul avec un "-" devant doit être reconnu comme un NUMBER négatif
frament 1 :
java -jar build/libs/TP2.jar tests/fragment1/print4.vsl
fragment 2 :
java -jar build/libs/TP2.jar tests/fragment2/call3expr.vsl
java -jar build/libs/TP2.jar tests/fragment2/call4if.vsl
*/