Parser package-Struktur umstellen

This commit is contained in:
JanUlrich 2017-01-27 13:20:22 +01:00
parent a4dc47cc4e
commit bee92ef11d
11 changed files with 18 additions and 14 deletions

View File

@ -1,7 +1,8 @@
package de.dhbwstuttgart.parser; package de.dhbwstuttgart.parser;
import org.antlr.v4.runtime.tree.*; import de.dhbwstuttgart.parser.antlr.Java8BaseListener;
import de.dhbwstuttgart.syntaxtree.*; import de.dhbwstuttgart.parser.antlr.Java8Parser;
public class CompilationUnitEvaluator extends Java8BaseListener{
public class CompilationUnitEvaluator extends Java8BaseListener {
@Override @Override
public void enterCompilationUnit(Java8Parser.CompilationUnitContext ctx) { public void enterCompilationUnit(Java8Parser.CompilationUnitContext ctx) {
System.out.println("SourceFile("); System.out.println("SourceFile(");

View File

@ -0,0 +1,7 @@
package de.dhbwstuttgart.parser;
/**
* Created by janulrich on 26.01.17.
*/
public class JavaXParser {
}

View File

@ -1,12 +1,10 @@
package de.dhbwstuttgart.parser; 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.ANTLRInputStream;
import org.antlr.v4.runtime.CommonTokenStream; 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.*;
import de.dhbwstuttgart.syntaxtree.modifier.*; import de.dhbwstuttgart.syntaxtree.modifier.*;
import de.dhbwstuttgart.typecheck.*;
import java.util.Scanner; import java.util.Scanner;
import java.io.ByteArrayInputStream; import java.io.ByteArrayInputStream;

View File

@ -1,9 +1,9 @@
package de.dhbwstuttgart.parser; package de.dhbwstuttgart.parser;
import de.dhbwstuttgart.parser.antlr.Java8Parser;
import de.dhbwstuttgart.syntaxtree.*; import de.dhbwstuttgart.syntaxtree.*;
import de.dhbwstuttgart.syntaxtree.modifier.*; import de.dhbwstuttgart.syntaxtree.modifier.*;
import de.dhbwstuttgart.syntaxtree.statement.Block; import de.dhbwstuttgart.syntaxtree.statement.Block;
import de.dhbwstuttgart.syntaxtree.statement.Expr;
import de.dhbwstuttgart.syntaxtree.type.RefType; import de.dhbwstuttgart.syntaxtree.type.RefType;
import de.dhbwstuttgart.typecheck.*; import de.dhbwstuttgart.typecheck.*;
import java.util.ArrayList; import java.util.ArrayList;

View File

@ -1,5 +1,5 @@
// Generated from Java8.g4 by ANTLR 4.5.3 // 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.ParserRuleContext;
import org.antlr.v4.runtime.tree.ErrorNode; import org.antlr.v4.runtime.tree.ErrorNode;

View File

@ -1,5 +1,5 @@
// Generated from Java8.g4 by ANTLR 4.5.3 // 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.Lexer;
import org.antlr.v4.runtime.CharStream; import org.antlr.v4.runtime.CharStream;
import org.antlr.v4.runtime.Token; import org.antlr.v4.runtime.Token;

View File

@ -1,5 +1,5 @@
// Generated from Java8.g4 by ANTLR 4.5.3 // 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; import org.antlr.v4.runtime.tree.ParseTreeListener;
/** /**

View File

@ -1,13 +1,11 @@
// Generated from Java8.g4 by ANTLR 4.5.3 // 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.atn.*;
import org.antlr.v4.runtime.dfa.DFA; import org.antlr.v4.runtime.dfa.DFA;
import org.antlr.v4.runtime.*; import org.antlr.v4.runtime.*;
import org.antlr.v4.runtime.misc.*; import org.antlr.v4.runtime.misc.*;
import org.antlr.v4.runtime.tree.*; import org.antlr.v4.runtime.tree.*;
import java.util.List; import java.util.List;
import java.util.Iterator;
import java.util.ArrayList;
@SuppressWarnings({"all", "warnings", "unchecked", "unused", "cast"}) @SuppressWarnings({"all", "warnings", "unchecked", "unused", "cast"})
public class Java8Parser extends Parser { public class Java8Parser extends Parser {