mirror of
https://github.com/mudabbir-ahmad/MYOL-TB2-prog3-Py.git
synced 2026-10-07 19:40:21 +00:00
Add ANTLR grammar for greetings and farewells with corresponding parser and listener implementations
This commit is contained in:
1 parent
2027302cf1
commit
6205020013
30 files changed
+1109
-37
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user