add 1 not ok, dont come back with result
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user