Files
interpreteur-lir/app/src/main/java/iut_rodez/lir_lang/App.java
T
2025-08-10 11:16:22 +02:00

27 lines
721 B
Java

/*
* App.java
*/
package iut_rodez.lir_lang;
import iut_rodez.lir_lang.core.LirLexer;
import iut_rodez.lir_lang.core.LirParser;
import org.antlr.v4.runtime.CharStreams;
import org.antlr.v4.runtime.CommonTokenStream;
import org.antlr.v4.runtime.tree.ParseTree;
/** Main application class for LIR language processing. */
public class App {
/**
* Main method to run the LIR parser.
*
* @param args Command line arguments (not used).
*/
public static void main(String[] args) {
LirLexer lexer = new LirLexer(CharStreams.fromString("10"));
LirParser parser = new LirParser(new CommonTokenStream(lexer));
ParseTree tree = parser.prog();
System.out.println(tree.toStringTree(parser));
}
}