revoir parser, lexer bon

This commit is contained in:
tuvu
2025-02-13 13:01:43 +01:00
parent b7ddf72034
commit 094f978e06
2 changed files with 9 additions and 10 deletions

View File

@@ -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 ; };

View File

@@ -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);
} }
} }