renommage de bloc en phrase dans le Parser + ReadMe

This commit is contained in:
trochas
2025-02-14 13:16:56 +01:00
parent 2dfcd38fed
commit 4a01a66dba
2 changed files with 13 additions and 18 deletions

View File

@@ -23,15 +23,15 @@ options {
}
turtle returns[TurtleAST t]:
{$t = new TurtleAST();}
bloc[t] EOF
phrase[t] EOF
{$t.finishNtriple();}
;
bloc [TurtleAST parent]:
phrase [TurtleAST parent]:
s=sujet
{$parent.addSujet($s.val);}
listvc[parent] P moreBloc[parent] // <entity> list.
listvc[parent] P morePhrase[parent] // <entity> list.
;
moreBloc [TurtleAST parent] : bloc[parent]
morePhrase [TurtleAST parent] : phrase[parent]
|
;
sujet returns[String val]: