Add ANTLR grammar for greetings and farewells with corresponding parser and listener implementations

This commit is contained in:
bobbert committed 2026-03-26 15:32:19 +00:00
1 parent 2027302cf1
commit 6205020013
30 files changed
+1109 -37

No files matched your search

+36
View File
@@ -8,6 +8,33 @@ else:
# This class defines a complete listener for a parse tree produced by HelloParser.
class HelloListener(ParseTreeListener):
# Enter a parse tree produced by HelloParser#greeting.
def enterGreeting(self, ctx:HelloParser.GreetingContext):
pass
# Exit a parse tree produced by HelloParser#greeting.
def exitGreeting(self, ctx:HelloParser.GreetingContext):
pass
# Enter a parse tree produced by HelloParser#leaving.
def enterLeaving(self, ctx:HelloParser.LeavingContext):
pass
# Exit a parse tree produced by HelloParser#leaving.
def exitLeaving(self, ctx:HelloParser.LeavingContext):
pass
# Enter a parse tree produced by HelloParser#greet.
def enterGreet(self, ctx:HelloParser.GreetContext):
pass
# Exit a parse tree produced by HelloParser#greet.
def exitGreet(self, ctx:HelloParser.GreetContext):
pass
# Enter a parse tree produced by HelloParser#start.
def enterStart(self, ctx:HelloParser.StartContext):
pass
@@ -17,5 +44,14 @@ class HelloListener(ParseTreeListener):
pass
# Enter a parse tree produced by HelloParser#bye.
def enterBye(self, ctx:HelloParser.ByeContext):
pass
# Exit a parse tree produced by HelloParser#bye.
def exitBye(self, ctx:HelloParser.ByeContext):
pass
del HelloParser