correction bug INDENT dans Lexer, TODO réparé NUMBER négatif !
This commit is contained in:
@@ -62,7 +62,7 @@ MOD: '%'
|
|||||||
;
|
;
|
||||||
VIRGULE: ','
|
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(); }
|
WS : (' '|'\n'|'\t'| '\r') { skip(); }
|
||||||
;
|
;
|
||||||
|
|||||||
@@ -9,8 +9,6 @@ import org.antlr.runtime.CommonTokenStream;
|
|||||||
import org.antlr.runtime.RecognitionException;
|
import org.antlr.runtime.RecognitionException;
|
||||||
import org.antlr.runtime.Token;
|
import org.antlr.runtime.Token;
|
||||||
|
|
||||||
import .antlr.VSLLexer;
|
|
||||||
import .antlr.VSLParser;
|
|
||||||
import TP2.asd.Program.*;
|
import TP2.asd.Program.*;
|
||||||
import TP2.llvm.ProgramLLVM;
|
import TP2.llvm.ProgramLLVM;
|
||||||
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
|
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 :
|
frament 1 :
|
||||||
java -jar build/libs/TP2.jar tests/fragment1/print4.vsl
|
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
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user