Parser package-Struktur umstellen
This commit is contained in:
parent
a4dc47cc4e
commit
bee92ef11d
@ -1,7 +1,8 @@
|
||||
package de.dhbwstuttgart.parser;
|
||||
import org.antlr.v4.runtime.tree.*;
|
||||
import de.dhbwstuttgart.syntaxtree.*;
|
||||
public class CompilationUnitEvaluator extends Java8BaseListener{
|
||||
import de.dhbwstuttgart.parser.antlr.Java8BaseListener;
|
||||
import de.dhbwstuttgart.parser.antlr.Java8Parser;
|
||||
|
||||
public class CompilationUnitEvaluator extends Java8BaseListener {
|
||||
@Override
|
||||
public void enterCompilationUnit(Java8Parser.CompilationUnitContext ctx) {
|
||||
System.out.println("SourceFile(");
|
||||
|
7
src/de/dhbwstuttgart/parser/JavaXParser.java
Normal file
7
src/de/dhbwstuttgart/parser/JavaXParser.java
Normal file
@ -0,0 +1,7 @@
|
||||
package de.dhbwstuttgart.parser;
|
||||
|
||||
/**
|
||||
* Created by janulrich on 26.01.17.
|
||||
*/
|
||||
public class JavaXParser {
|
||||
}
|
@ -1,12 +1,10 @@
|
||||
package de.dhbwstuttgart.parser;
|
||||
import org.antlr.v4.runtime.*;
|
||||
import de.dhbwstuttgart.parser.antlr.Java8Lexer;
|
||||
import de.dhbwstuttgart.parser.antlr.Java8Parser;
|
||||
import org.antlr.v4.runtime.ANTLRInputStream;
|
||||
import org.antlr.v4.runtime.CommonTokenStream;
|
||||
import org.antlr.v4.runtime.ParserRuleContext;
|
||||
import org.antlr.v4.runtime.tree.ParseTreeWalker;
|
||||
import de.dhbwstuttgart.syntaxtree.*;
|
||||
import de.dhbwstuttgart.syntaxtree.modifier.*;
|
||||
import de.dhbwstuttgart.typecheck.*;
|
||||
|
||||
import java.util.Scanner;
|
||||
import java.io.ByteArrayInputStream;
|
||||
|
@ -1,9 +1,9 @@
|
||||
package de.dhbwstuttgart.parser;
|
||||
|
||||
import de.dhbwstuttgart.parser.antlr.Java8Parser;
|
||||
import de.dhbwstuttgart.syntaxtree.*;
|
||||
import de.dhbwstuttgart.syntaxtree.modifier.*;
|
||||
import de.dhbwstuttgart.syntaxtree.statement.Block;
|
||||
import de.dhbwstuttgart.syntaxtree.statement.Expr;
|
||||
import de.dhbwstuttgart.syntaxtree.type.RefType;
|
||||
import de.dhbwstuttgart.typecheck.*;
|
||||
import java.util.ArrayList;
|
||||
|
@ -1,5 +1,5 @@
|
||||
// Generated from Java8.g4 by ANTLR 4.5.3
|
||||
package de.dhbwstuttgart.parser;
|
||||
package de.dhbwstuttgart.parser.antlr;
|
||||
|
||||
import org.antlr.v4.runtime.ParserRuleContext;
|
||||
import org.antlr.v4.runtime.tree.ErrorNode;
|
@ -1,5 +1,5 @@
|
||||
// Generated from Java8.g4 by ANTLR 4.5.3
|
||||
package de.dhbwstuttgart.parser;
|
||||
package de.dhbwstuttgart.parser.antlr;
|
||||
import org.antlr.v4.runtime.Lexer;
|
||||
import org.antlr.v4.runtime.CharStream;
|
||||
import org.antlr.v4.runtime.Token;
|
@ -1,5 +1,5 @@
|
||||
// Generated from Java8.g4 by ANTLR 4.5.3
|
||||
package de.dhbwstuttgart.parser;
|
||||
package de.dhbwstuttgart.parser.antlr;
|
||||
import org.antlr.v4.runtime.tree.ParseTreeListener;
|
||||
|
||||
/**
|
@ -1,13 +1,11 @@
|
||||
// Generated from Java8.g4 by ANTLR 4.5.3
|
||||
package de.dhbwstuttgart.parser;
|
||||
package de.dhbwstuttgart.parser.antlr;
|
||||
import org.antlr.v4.runtime.atn.*;
|
||||
import org.antlr.v4.runtime.dfa.DFA;
|
||||
import org.antlr.v4.runtime.*;
|
||||
import org.antlr.v4.runtime.misc.*;
|
||||
import org.antlr.v4.runtime.tree.*;
|
||||
import java.util.List;
|
||||
import java.util.Iterator;
|
||||
import java.util.ArrayList;
|
||||
|
||||
@SuppressWarnings({"all", "warnings", "unchecked", "unused", "cast"})
|
||||
public class Java8Parser extends Parser {
|
Loading…
Reference in New Issue
Block a user