correction erreur dans le Parser

This commit is contained in:
trochas
2025-02-13 14:38:22 +01:00
parent eca77d24c4
commit 3f98e2a0b1
2 changed files with 7 additions and 5 deletions

2
.gitignore vendored
View File

@@ -1,4 +1,4 @@
.gradle .gradle
/build /build
*.DS_Store *.DS_Store
.vscode/* /.vscode/*

View File

@@ -34,17 +34,19 @@ more : SEMI listvc
; ;
vc : LC verbe RC listc //REvoir avec un arbre car in géné avec listvc < <verbe> com > vc : LC verbe RC listc //REvoir avec un arbre car in géné avec listvc < <verbe> com >
; ;
listc : LC comp RC morec listc : comp morec //on ne peut pas mettre le <> ici car on petu assi mettre des ""
; ;
morec : V comp morec : V listc //correction : listc au lieux de comp
| |
; ;
verbe : ID verbe : ID
; ;
comp : ID comp : LC ID RC //<>
| G ID G //""
; ;
entity : ID entity : ID
; ;
turtle turtle
returns[TurtleAST t]: EOF { $t = null ; }; returns[TurtleAST t]: EOF { $t = null ; };