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

+39
View File
@@ -0,0 +1,39 @@
// Generated from Hello.g4 by ANTLR 4.13.2
import org.antlr.v4.runtime.tree.ParseTreeListener;
/**
* This interface defines a complete listener for a parse tree produced by
* {@link HelloParser}.
*/
public interface HelloListener extends ParseTreeListener {
/**
* Enter a parse tree produced by {@link HelloParser#greeting}.
* @param ctx the parse tree
*/
void enterGreeting(HelloParser.GreetingContext ctx);
/**
* Exit a parse tree produced by {@link HelloParser#greeting}.
* @param ctx the parse tree
*/
void exitGreeting(HelloParser.GreetingContext ctx);
/**
* Enter a parse tree produced by {@link HelloParser#greet}.
* @param ctx the parse tree
*/
void enterGreet(HelloParser.GreetContext ctx);
/**
* Exit a parse tree produced by {@link HelloParser#greet}.
* @param ctx the parse tree
*/
void exitGreet(HelloParser.GreetContext ctx);
/**
* Enter a parse tree produced by {@link HelloParser#start}.
* @param ctx the parse tree
*/
void enterStart(HelloParser.StartContext ctx);
/**
* Exit a parse tree produced by {@link HelloParser#start}.
* @param ctx the parse tree
*/
void exitStart(HelloParser.StartContext ctx);
}