Commit 9d302de6 authored by Matthew Dawson's avatar Matthew Dawson
Browse files

Move all antlr parsers to their own independent package.

Mainly to help in documentation generation, move the antlr parsers to another
package.  Otherwise doesn't affect anything.
parent 3a77da83
Loading
Loading
Loading
Loading
+22 −19
Original line number Diff line number Diff line
@@ -14,29 +14,32 @@ import ca.mcscert.jtet.expression.Literal;
import ca.mcscert.jtet.expression.UnaryOperation;
import ca.mcscert.jtet.expression.Variable;
import ca.mcscert.jtet.expression.VariableCollection;
import ca.mcscert.jtet.parsers.MatlabParserParser.G1Context;
import ca.mcscert.jtet.parsers.MatlabParserParser.G2Context;
import ca.mcscert.jtet.parsers.MatlabParserParser.G3Context;
import ca.mcscert.jtet.parsers.MatlabParserParser.G4Context;
import ca.mcscert.jtet.parsers.MatlabParserParser.E0Context;
import ca.mcscert.jtet.parsers.MatlabParserParser.E1Context;
import ca.mcscert.jtet.parsers.MatlabParserParser.E2Context;
import ca.mcscert.jtet.parsers.MatlabParserParser.E3Context;
import ca.mcscert.jtet.parsers.MatlabParserParser.E4Context;
import ca.mcscert.jtet.parsers.MatlabParserParser.E5Context;
import ca.mcscert.jtet.parsers.MatlabParserParser.E6Context;
import ca.mcscert.jtet.parsers.MatlabParserParser.E7Context;
import ca.mcscert.jtet.parsers.MatlabParserParser.E8Context;
import ca.mcscert.jtet.parsers.MatlabParserParser.E9Context;
import ca.mcscert.jtet.parsers.MatlabParserParser.E10Context;
import ca.mcscert.jtet.parsers.MatlabParserParser.E11Context;
import ca.mcscert.jtet.parsers.MatlabParserParser.Literal_numberContext;
import ca.mcscert.jtet.parsers.MatlabParserParser.Id_plus_indexersContext;
import ca.mcscert.jtet.parsers.MatlabParserParser.Prefix_operatorContext;
import ca.mcscert.jtet.parsers.antlr.MatlabParserParser.G1Context;
import ca.mcscert.jtet.parsers.antlr.MatlabParserParser.G2Context;
import ca.mcscert.jtet.parsers.antlr.MatlabParserParser.G3Context;
import ca.mcscert.jtet.parsers.antlr.MatlabParserParser.G4Context;
import ca.mcscert.jtet.parsers.antlr.MatlabParserParser.E0Context;
import ca.mcscert.jtet.parsers.antlr.MatlabParserParser.E1Context;
import ca.mcscert.jtet.parsers.antlr.MatlabParserParser.E2Context;
import ca.mcscert.jtet.parsers.antlr.MatlabParserParser.E3Context;
import ca.mcscert.jtet.parsers.antlr.MatlabParserParser.E4Context;
import ca.mcscert.jtet.parsers.antlr.MatlabParserParser.E5Context;
import ca.mcscert.jtet.parsers.antlr.MatlabParserParser.E6Context;
import ca.mcscert.jtet.parsers.antlr.MatlabParserParser.E7Context;
import ca.mcscert.jtet.parsers.antlr.MatlabParserParser.E8Context;
import ca.mcscert.jtet.parsers.antlr.MatlabParserParser.E9Context;
import ca.mcscert.jtet.parsers.antlr.MatlabParserParser.E10Context;
import ca.mcscert.jtet.parsers.antlr.MatlabParserParser.E11Context;
import ca.mcscert.jtet.parsers.antlr.MatlabParserParser.Literal_numberContext;
import ca.mcscert.jtet.parsers.antlr.MatlabParserParser.Id_plus_indexersContext;
import ca.mcscert.jtet.parsers.antlr.MatlabParserParser.Prefix_operatorContext;
import java.util.ArrayDeque;
import java.util.Deque;
import java.util.Map;

import ca.mcscert.jtet.parsers.antlr.MatlabParserBaseListener;
import ca.mcscert.jtet.parsers.antlr.MatlabParserLexer;
import ca.mcscert.jtet.parsers.antlr.MatlabParserParser;
import org.antlr.v4.runtime.ANTLRInputStream;
import org.antlr.v4.runtime.CommonTokenStream;
import org.antlr.v4.runtime.tree.ParseTree;
+24 −21
Original line number Diff line number Diff line
@@ -14,27 +14,30 @@ import ca.mcscert.jtet.expression.Literal;
import ca.mcscert.jtet.expression.UnaryOperation;
import ca.mcscert.jtet.expression.Variable;
import ca.mcscert.jtet.expression.VariableCollection;
import ca.mcscert.jtet.parsers.PVSSimpleParserParser.E0Context;
import ca.mcscert.jtet.parsers.PVSSimpleParserParser.E1Context;
import ca.mcscert.jtet.parsers.PVSSimpleParserParser.E2Context;
import ca.mcscert.jtet.parsers.PVSSimpleParserParser.E3Context;
import ca.mcscert.jtet.parsers.PVSSimpleParserParser.E4Context;
import ca.mcscert.jtet.parsers.PVSSimpleParserParser.E5Context;
import ca.mcscert.jtet.parsers.PVSSimpleParserParser.E6Context;
import ca.mcscert.jtet.parsers.PVSSimpleParserParser.E7Context;
import ca.mcscert.jtet.parsers.PVSSimpleParserParser.E8Context;
import ca.mcscert.jtet.parsers.PVSSimpleParserParser.E9Context;
import ca.mcscert.jtet.parsers.PVSSimpleParserParser.G1Context;
import ca.mcscert.jtet.parsers.PVSSimpleParserParser.G2Context;
import ca.mcscert.jtet.parsers.PVSSimpleParserParser.G3Context;
import ca.mcscert.jtet.parsers.PVSSimpleParserParser.G4Context;
import ca.mcscert.jtet.parsers.PVSSimpleParserParser.G5Context;
import ca.mcscert.jtet.parsers.PVSSimpleParserParser.G6Context;
import ca.mcscert.jtet.parsers.PVSSimpleParserParser.G7Context;
import ca.mcscert.jtet.parsers.PVSSimpleParserParser.G8Context;
import ca.mcscert.jtet.parsers.PVSSimpleParserParser.G9Context;
import ca.mcscert.jtet.parsers.PVSSimpleParserParser.IdContext;
import ca.mcscert.jtet.parsers.PVSSimpleParserParser.Literal_numberContext;
import ca.mcscert.jtet.parsers.antlr.PVSSimpleParserParser.E0Context;
import ca.mcscert.jtet.parsers.antlr.PVSSimpleParserParser.E1Context;
import ca.mcscert.jtet.parsers.antlr.PVSSimpleParserParser.E2Context;
import ca.mcscert.jtet.parsers.antlr.PVSSimpleParserParser.E3Context;
import ca.mcscert.jtet.parsers.antlr.PVSSimpleParserParser.E4Context;
import ca.mcscert.jtet.parsers.antlr.PVSSimpleParserParser.E5Context;
import ca.mcscert.jtet.parsers.antlr.PVSSimpleParserParser.E6Context;
import ca.mcscert.jtet.parsers.antlr.PVSSimpleParserParser.E7Context;
import ca.mcscert.jtet.parsers.antlr.PVSSimpleParserParser.E8Context;
import ca.mcscert.jtet.parsers.antlr.PVSSimpleParserParser.E9Context;
import ca.mcscert.jtet.parsers.antlr.PVSSimpleParserParser.G1Context;
import ca.mcscert.jtet.parsers.antlr.PVSSimpleParserParser.G2Context;
import ca.mcscert.jtet.parsers.antlr.PVSSimpleParserParser.G3Context;
import ca.mcscert.jtet.parsers.antlr.PVSSimpleParserParser.G4Context;
import ca.mcscert.jtet.parsers.antlr.PVSSimpleParserParser.G5Context;
import ca.mcscert.jtet.parsers.antlr.PVSSimpleParserParser.G6Context;
import ca.mcscert.jtet.parsers.antlr.PVSSimpleParserParser.G7Context;
import ca.mcscert.jtet.parsers.antlr.PVSSimpleParserParser.G8Context;
import ca.mcscert.jtet.parsers.antlr.PVSSimpleParserParser.G9Context;
import ca.mcscert.jtet.parsers.antlr.PVSSimpleParserParser.IdContext;
import ca.mcscert.jtet.parsers.antlr.PVSSimpleParserParser.Literal_numberContext;
import ca.mcscert.jtet.parsers.antlr.PVSSimpleParserBaseListener;
import ca.mcscert.jtet.parsers.antlr.PVSSimpleParserLexer;
import ca.mcscert.jtet.parsers.antlr.PVSSimpleParserParser;
import org.antlr.v4.runtime.ANTLRInputStream;
import org.antlr.v4.runtime.CommonTokenStream;
import org.antlr.v4.runtime.tree.ParseTree;
+8 −5
Original line number Diff line number Diff line
@@ -10,11 +10,11 @@ import ca.mcscert.jtet.expression.FixedPointVariableType;
import ca.mcscert.jtet.expression.RealVariableType;
import ca.mcscert.jtet.expression.Variable;
import ca.mcscert.jtet.expression.VariableCollection;
import ca.mcscert.jtet.parsers.VariableParserParser.Bool_typeContext;
import ca.mcscert.jtet.parsers.VariableParserParser.DefaulttypeContext;
import ca.mcscert.jtet.parsers.VariableParserParser.Fixed_typeContext;
import ca.mcscert.jtet.parsers.VariableParserParser.Real_typeContext;
import ca.mcscert.jtet.parsers.VariableParserParser.VarContext;
import ca.mcscert.jtet.parsers.antlr.VariableParserParser.Bool_typeContext;
import ca.mcscert.jtet.parsers.antlr.VariableParserParser.DefaulttypeContext;
import ca.mcscert.jtet.parsers.antlr.VariableParserParser.Fixed_typeContext;
import ca.mcscert.jtet.parsers.antlr.VariableParserParser.Real_typeContext;
import ca.mcscert.jtet.parsers.antlr.VariableParserParser.VarContext;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedHashMap;
@@ -22,6 +22,9 @@ import java.util.Map;
import java.util.Set;

import ca.mcscert.jtet.expression.VariableType;
import ca.mcscert.jtet.parsers.antlr.VariableParserLexer;
import ca.mcscert.jtet.parsers.antlr.VariableParserParser;
import ca.mcscert.jtet.parsers.antlr.VariableParserParserBaseListener;
import org.antlr.v4.runtime.ANTLRInputStream;
import org.antlr.v4.runtime.CommonTokenStream;
import org.antlr.v4.runtime.misc.NotNull;
Loading