Skip to content

Commit

Permalink
Add tellSentence parser rule
Browse files Browse the repository at this point in the history
+ Added `tell` Sentences. #163
Clashsoft committed Mar 4, 2020

Verified

This commit was signed with the committer’s verified signature.
Clashsoft Adrian Kunz
1 parent 384ca96 commit 5ba967c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/antlr/ScenarioParser.g4
Original file line number Diff line number Diff line change
@@ -27,6 +27,7 @@ simpleSentence: thereSentence
| expectSentence
| createSentence
| callSentence
| tellSentence
| answerSentence
| writeSentence
| addSentence
@@ -75,6 +76,7 @@ hasClause: verb=(HAS | HAVE) (namedExpr | bidiNamedExpr);
createSentence: actor verb=(CREATE | CREATES) (simpleDescriptor | multiDescriptor);

callSentence: actor verb=(CALL | CALLS) name (ON expr)? withClauses?;
tellSentence: actor verb=(TELL | TELLS) expr TO name withClauses?;

answerSentence: actor verb=(ANSWER | ANSWERS) WITH expr (INTO THE? name)?;

0 comments on commit 5ba967c

Please sign in to comment.