revoir parser, lexer bon
This commit is contained in:
@@ -27,25 +27,24 @@ bloc : sujet listvc P
|
|||||||
;
|
;
|
||||||
sujet : LC entity RC
|
sujet : LC entity RC
|
||||||
;
|
;
|
||||||
listvc : LC vc RC more
|
listvc : LC vc RC more // caca
|
||||||
;
|
;
|
||||||
more : SEMI listvc
|
more : SEMI listvc
|
||||||
|
|
|
|
||||||
;
|
;
|
||||||
vc : LC verbe RC listc
|
vc : LC verbe RC listc //REvoir avec un arbre car in géné avec listvc < <verbe> com >
|
||||||
;
|
;
|
||||||
listc : LC comp RC morec
|
listc : LC comp RC morec
|
||||||
;
|
;
|
||||||
morec : V comp
|
morec : V comp
|
||||||
|
|
|
|
||||||
;
|
;
|
||||||
|
verbe : ID
|
||||||
|
;
|
||||||
|
comp : ID
|
||||||
|
;
|
||||||
entity : ID
|
entity : ID
|
||||||
;
|
;
|
||||||
verbe : ID
|
|
||||||
;
|
|
||||||
comp : ID
|
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
turtle
|
turtle
|
||||||
returns[TurtleAST t]: EOF { $t = null ; };
|
returns[TurtleAST t]: EOF { $t = null ; };
|
||||||
@@ -92,7 +92,7 @@ public class Main {
|
|||||||
}
|
}
|
||||||
public static void main(String[] args) throws RecognitionException {
|
public static void main(String[] args) throws RecognitionException {
|
||||||
// Switch between the two fonctions as you make progress
|
// Switch between the two fonctions as you make progress
|
||||||
manualAST();
|
//manualAST();
|
||||||
// antlrAST(args);
|
antlrAST(args);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user