add 1 not ok, dont come back with result

This commit is contained in:
Vu Tuan Minh
2025-04-01 21:13:01 +02:00
parent 40e2bc5522
commit 52a5c00f74
12 changed files with 387 additions and 242 deletions

View File

@@ -7,6 +7,7 @@ import org.antlr.runtime.ANTLRInputStream;
import org.antlr.runtime.CharStream;
import org.antlr.runtime.CommonTokenStream;
import org.antlr.runtime.RecognitionException;
import org.antlr.runtime.Token;
import TP2.asd.Program.*;
import java.util.*;
@@ -28,6 +29,10 @@ public class Main {
VSLLexer lexer = new VSLLexer(input);
CommonTokenStream tokens = new CommonTokenStream(lexer);
for (Token token : tokens.getTokens()) {
System.out.println("Token: " + token.getText() + " Type: " + token.getType());
}
// Instantiate Parser
VSLParser parser = new VSLParser(tokens);