The default implementation returns the result of calling 18 | * {@link #visitChildren} on {@code ctx}.
19 | */ 20 | @Override public T visitSchema(ExpressGrammarParser.SchemaContext ctx) { return visitChildren(ctx); } 21 | /** 22 | * {@inheritDoc} 23 | * 24 | *The default implementation returns the result of calling 25 | * {@link #visitChildren} on {@code ctx}.
26 | */ 27 | @Override public T visitBeginSchema(ExpressGrammarParser.BeginSchemaContext ctx) { return visitChildren(ctx); } 28 | /** 29 | * {@inheritDoc} 30 | * 31 | *The default implementation returns the result of calling 32 | * {@link #visitChildren} on {@code ctx}.
33 | */ 34 | @Override public T visitEntity(ExpressGrammarParser.EntityContext ctx) { return visitChildren(ctx); } 35 | /** 36 | * {@inheritDoc} 37 | * 38 | *The default implementation returns the result of calling 39 | * {@link #visitChildren} on {@code ctx}.
40 | */ 41 | @Override public T visitBeginEntity(ExpressGrammarParser.BeginEntityContext ctx) { return visitChildren(ctx); } 42 | /** 43 | * {@inheritDoc} 44 | * 45 | *The default implementation returns the result of calling 46 | * {@link #visitChildren} on {@code ctx}.
47 | */ 48 | @Override public T visitEntityType(ExpressGrammarParser.EntityTypeContext ctx) { return visitChildren(ctx); } 49 | /** 50 | * {@inheritDoc} 51 | * 52 | *The default implementation returns the result of calling 53 | * {@link #visitChildren} on {@code ctx}.
54 | */ 55 | @Override public T visitSubtype(ExpressGrammarParser.SubtypeContext ctx) { return visitChildren(ctx); } 56 | /** 57 | * {@inheritDoc} 58 | * 59 | *The default implementation returns the result of calling 60 | * {@link #visitChildren} on {@code ctx}.
61 | */ 62 | @Override public T visitSupertypeOf(ExpressGrammarParser.SupertypeOfContext ctx) { return visitChildren(ctx); } 63 | /** 64 | * {@inheritDoc} 65 | * 66 | *The default implementation returns the result of calling 67 | * {@link #visitChildren} on {@code ctx}.
68 | */ 69 | @Override public T visitAttr(ExpressGrammarParser.AttrContext ctx) { return visitChildren(ctx); } 70 | /** 71 | * {@inheritDoc} 72 | * 73 | *The default implementation returns the result of calling 74 | * {@link #visitChildren} on {@code ctx}.
75 | */ 76 | @Override public T visitCollectionOf(ExpressGrammarParser.CollectionOfContext ctx) { return visitChildren(ctx); } 77 | /** 78 | * {@inheritDoc} 79 | * 80 | *The default implementation returns the result of calling 81 | * {@link #visitChildren} on {@code ctx}.
82 | */ 83 | @Override public T visitCollectionArgPart(ExpressGrammarParser.CollectionArgPartContext ctx) { return visitChildren(ctx); } 84 | /** 85 | * {@inheritDoc} 86 | * 87 | *The default implementation returns the result of calling 88 | * {@link #visitChildren} on {@code ctx}.
89 | */ 90 | @Override public T visitBeginNameList(ExpressGrammarParser.BeginNameListContext ctx) { return visitChildren(ctx); } 91 | /** 92 | * {@inheritDoc} 93 | * 94 | *The default implementation returns the result of calling 95 | * {@link #visitChildren} on {@code ctx}.
96 | */ 97 | @Override public T visitEndNameList(ExpressGrammarParser.EndNameListContext ctx) { return visitChildren(ctx); } 98 | /** 99 | * {@inheritDoc} 100 | * 101 | *The default implementation returns the result of calling 102 | * {@link #visitChildren} on {@code ctx}.
103 | */ 104 | @Override public T visitNameList(ExpressGrammarParser.NameListContext ctx) { return visitChildren(ctx); } 105 | /** 106 | * {@inheritDoc} 107 | * 108 | *The default implementation returns the result of calling 109 | * {@link #visitChildren} on {@code ctx}.
110 | */ 111 | @Override public T visitNames(ExpressGrammarParser.NamesContext ctx) { return visitChildren(ctx); } 112 | /** 113 | * {@inheritDoc} 114 | * 115 | *The default implementation returns the result of calling 116 | * {@link #visitChildren} on {@code ctx}.
117 | */ 118 | @Override public T visitTypeName(ExpressGrammarParser.TypeNameContext ctx) { return visitChildren(ctx); } 119 | /** 120 | * {@inheritDoc} 121 | * 122 | *The default implementation returns the result of calling 123 | * {@link #visitChildren} on {@code ctx}.
124 | */ 125 | @Override public T visitType(ExpressGrammarParser.TypeContext ctx) { return visitChildren(ctx); } 126 | /** 127 | * {@inheritDoc} 128 | * 129 | *The default implementation returns the result of calling 130 | * {@link #visitChildren} on {@code ctx}.
131 | */ 132 | @Override public T visitInversePart(ExpressGrammarParser.InversePartContext ctx) { return visitChildren(ctx); } 133 | /** 134 | * {@inheritDoc} 135 | * 136 | *The default implementation returns the result of calling 137 | * {@link #visitChildren} on {@code ctx}.
138 | */ 139 | @Override public T visitInverseSentence(ExpressGrammarParser.InverseSentenceContext ctx) { return visitChildren(ctx); } 140 | /** 141 | * {@inheritDoc} 142 | * 143 | *The default implementation returns the result of calling 144 | * {@link #visitChildren} on {@code ctx}.
145 | */ 146 | @Override public T visitDerivePart(ExpressGrammarParser.DerivePartContext ctx) { return visitChildren(ctx); } 147 | /** 148 | * {@inheritDoc} 149 | * 150 | *The default implementation returns the result of calling 151 | * {@link #visitChildren} on {@code ctx}.
152 | */ 153 | @Override public T visitDeriveOverrideSentence(ExpressGrammarParser.DeriveOverrideSentenceContext ctx) { return visitChildren(ctx); } 154 | /** 155 | * {@inheritDoc} 156 | * 157 | *The default implementation returns the result of calling 158 | * {@link #visitChildren} on {@code ctx}.
159 | */ 160 | @Override public T visitDeriveSentence(ExpressGrammarParser.DeriveSentenceContext ctx) { return visitChildren(ctx); } 161 | /** 162 | * {@inheritDoc} 163 | * 164 | *The default implementation returns the result of calling 165 | * {@link #visitChildren} on {@code ctx}.
166 | */ 167 | @Override public T visitUniquePart(ExpressGrammarParser.UniquePartContext ctx) { return visitChildren(ctx); } 168 | /** 169 | * {@inheritDoc} 170 | * 171 | *The default implementation returns the result of calling 172 | * {@link #visitChildren} on {@code ctx}.
173 | */ 174 | @Override public T visitUniqueSentence(ExpressGrammarParser.UniqueSentenceContext ctx) { return visitChildren(ctx); } 175 | /** 176 | * {@inheritDoc} 177 | * 178 | *The default implementation returns the result of calling 179 | * {@link #visitChildren} on {@code ctx}.
180 | */ 181 | @Override public T visitWherePart(ExpressGrammarParser.WherePartContext ctx) { return visitChildren(ctx); } 182 | /** 183 | * {@inheritDoc} 184 | * 185 | *The default implementation returns the result of calling 186 | * {@link #visitChildren} on {@code ctx}.
187 | */ 188 | @Override public T visitWhereSentence(ExpressGrammarParser.WhereSentenceContext ctx) { return visitChildren(ctx); } 189 | /** 190 | * {@inheritDoc} 191 | * 192 | *The default implementation returns the result of calling 193 | * {@link #visitChildren} on {@code ctx}.
194 | */ 195 | @Override public T visitFunction(ExpressGrammarParser.FunctionContext ctx) { return visitChildren(ctx); } 196 | /** 197 | * {@inheritDoc} 198 | * 199 | *The default implementation returns the result of calling 200 | * {@link #visitChildren} on {@code ctx}.
201 | */ 202 | @Override public T visitTherule(ExpressGrammarParser.TheruleContext ctx) { return visitChildren(ctx); } 203 | /** 204 | * {@inheritDoc} 205 | * 206 | *The default implementation returns the result of calling 207 | * {@link #visitChildren} on {@code ctx}.
208 | */ 209 | @Override public T visitCommonKeyword(ExpressGrammarParser.CommonKeywordContext ctx) { return visitChildren(ctx); } 210 | /** 211 | * {@inheritDoc} 212 | * 213 | *The default implementation returns the result of calling 214 | * {@link #visitChildren} on {@code ctx}.
215 | */ 216 | @Override public T visitCommonSentence(ExpressGrammarParser.CommonSentenceContext ctx) { return visitChildren(ctx); } 217 | /** 218 | * {@inheritDoc} 219 | * 220 | *The default implementation returns the result of calling 221 | * {@link #visitChildren} on {@code ctx}.
222 | */ 223 | @Override public T visitTypeSingleKeyword(ExpressGrammarParser.TypeSingleKeywordContext ctx) { return visitChildren(ctx); } 224 | /** 225 | * {@inheritDoc} 226 | * 227 | *The default implementation returns the result of calling 228 | * {@link #visitChildren} on {@code ctx}.
229 | */ 230 | @Override public T visitTypeArrayKeyword(ExpressGrammarParser.TypeArrayKeywordContext ctx) { return visitChildren(ctx); } 231 | /** 232 | * {@inheritDoc} 233 | * 234 | *The default implementation returns the result of calling 235 | * {@link #visitChildren} on {@code ctx}.
236 | */ 237 | @Override public T visitTypeKeyword(ExpressGrammarParser.TypeKeywordContext ctx) { return visitChildren(ctx); } 238 | /** 239 | * {@inheritDoc} 240 | * 241 | *The default implementation returns the result of calling 242 | * {@link #visitChildren} on {@code ctx}.
243 | */ 244 | @Override public T visitInnerKeyword(ExpressGrammarParser.InnerKeywordContext ctx) { return visitChildren(ctx); } 245 | /** 246 | * {@inheritDoc} 247 | * 248 | *The default implementation returns the result of calling 249 | * {@link #visitChildren} on {@code ctx}.
250 | */ 251 | @Override public T visitSign(ExpressGrammarParser.SignContext ctx) { return visitChildren(ctx); } 252 | } -------------------------------------------------------------------------------- /src/main/java/parser/ExpressGrammarLexer.java: -------------------------------------------------------------------------------- 1 | // Generated from F:/JavaWorkSpace/IfcGraph/src/main/resources\ExpressGrammar.g4 by ANTLR 4.7 2 | package parser; 3 | import org.antlr.v4.runtime.Lexer; 4 | import org.antlr.v4.runtime.CharStream; 5 | import org.antlr.v4.runtime.Token; 6 | import org.antlr.v4.runtime.TokenStream; 7 | import org.antlr.v4.runtime.*; 8 | import org.antlr.v4.runtime.atn.*; 9 | import org.antlr.v4.runtime.dfa.DFA; 10 | import org.antlr.v4.runtime.misc.*; 11 | 12 | @SuppressWarnings({"all", "warnings", "unchecked", "unused", "cast"}) 13 | public class ExpressGrammarLexer extends Lexer { 14 | static { RuntimeMetaData.checkVersion("4.7", RuntimeMetaData.VERSION); } 15 | 16 | protected static final DFA[] _decisionToDFA; 17 | protected static final PredictionContextCache _sharedContextCache = 18 | new PredictionContextCache(); 19 | public static final int 20 | T__0=1, T__1=2, T__2=3, T__3=4, T__4=5, T__5=6, T__6=7, T__7=8, T__8=9, 21 | T__9=10, T__10=11, T__11=12, T__12=13, T__13=14, T__14=15, T__15=16, T__16=17, 22 | T__17=18, T__18=19, T__19=20, T__20=21, T__21=22, T__22=23, T__23=24, 23 | WS=25, BLOCK_COMMENT=26, INT=27, SCHEMA=28, END_SCHEMA=29, TYPE=30, END_TYPE=31, 24 | ENTITY=32, END_ENTITY=33, FUNCTION=34, END_FUNCTION=35, RULE=36, END_RULE=37, 25 | SUBTYPE_OF=38, SUPERTYPE_OF=39, ONEOF=40, ABSTRACT=41, OPTIONAL=42, FIXED=43, 26 | OF=44, SET=45, ARRAY=46, LIST=47, BOOLEAN=48, REAL=49, INTEGER=50, BINARY=51, 27 | NUMBER=52, STRING=53, ENUMERATION=54, SELECT=55, WHERE=56, DERIVE=57, 28 | UNIQUE=58, INVERSE=59, SELF_=60, FOR=61, NAME=62; 29 | public static String[] channelNames = { 30 | "DEFAULT_TOKEN_CHANNEL", "HIDDEN" 31 | }; 32 | 33 | public static String[] modeNames = { 34 | "DEFAULT_MODE" 35 | }; 36 | 37 | public static final String[] ruleNames = { 38 | "T__0", "T__1", "T__2", "T__3", "T__4", "T__5", "T__6", "T__7", "T__8", 39 | "T__9", "T__10", "T__11", "T__12", "T__13", "T__14", "T__15", "T__16", 40 | "T__17", "T__18", "T__19", "T__20", "T__21", "T__22", "T__23", "WS", "BLOCK_COMMENT", 41 | "INT", "SCHEMA", "END_SCHEMA", "TYPE", "END_TYPE", "ENTITY", "END_ENTITY", 42 | "FUNCTION", "END_FUNCTION", "RULE", "END_RULE", "SUBTYPE_OF", "SUPERTYPE_OF", 43 | "ONEOF", "ABSTRACT", "OPTIONAL", "FIXED", "OF", "SET", "ARRAY", "LIST", 44 | "BOOLEAN", "REAL", "INTEGER", "BINARY", "NUMBER", "STRING", "ENUMERATION", 45 | "SELECT", "WHERE", "DERIVE", "UNIQUE", "INVERSE", "SELF_", "FOR", "NAME" 46 | }; 47 | 48 | private static final String[] _LITERAL_NAMES = { 49 | null, "';'", "'('", "')'", "':'", "'['", "'?'", "']'", "','", "'='", "'.'", 50 | "':='", "'<'", "'>'", "'\\'", "'/'", "'|'", "'*'", "'''", "'\"'", "'!'", 51 | "'-'", "'+'", "'{'", "'}'", null, null, null, "'SCHEMA'", "'END_SCHEMA;'", 52 | "'TYPE'", "'END_TYPE;'", "'ENTITY'", "'END_ENTITY;'", "'FUNCTION'", "'END_FUNCTION;'", 53 | "'RULE'", "'END_RULE;'", "'SUBTYPE OF'", "'SUPERTYPE OF'", "'ONEOF'", 54 | "'ABSTRACT'", "'OPTIONAL'", "'FIXED'", "'OF'", "'SET'", "'ARRAY'", "'LIST'", 55 | "'BOOLEAN'", "'REAL'", "'INTEGER'", "'BINARY'", "'NUMBER'", "'STRING'", 56 | "'ENUMERATION'", "'SELECT'", "'WHERE'", "'DERIVE'", "'UNIQUE'", "'INVERSE'", 57 | "'SELF\\'", "'FOR'" 58 | }; 59 | private static final String[] _SYMBOLIC_NAMES = { 60 | null, null, null, null, null, null, null, null, null, null, null, null, 61 | null, null, null, null, null, null, null, null, null, null, null, null, 62 | null, "WS", "BLOCK_COMMENT", "INT", "SCHEMA", "END_SCHEMA", "TYPE", "END_TYPE", 63 | "ENTITY", "END_ENTITY", "FUNCTION", "END_FUNCTION", "RULE", "END_RULE", 64 | "SUBTYPE_OF", "SUPERTYPE_OF", "ONEOF", "ABSTRACT", "OPTIONAL", "FIXED", 65 | "OF", "SET", "ARRAY", "LIST", "BOOLEAN", "REAL", "INTEGER", "BINARY", 66 | "NUMBER", "STRING", "ENUMERATION", "SELECT", "WHERE", "DERIVE", "UNIQUE", 67 | "INVERSE", "SELF_", "FOR", "NAME" 68 | }; 69 | public static final Vocabulary VOCABULARY = new VocabularyImpl(_LITERAL_NAMES, _SYMBOLIC_NAMES); 70 | 71 | /** 72 | * @deprecated Use {@link #VOCABULARY} instead. 73 | */ 74 | @Deprecated 75 | public static final String[] tokenNames; 76 | static { 77 | tokenNames = new String[_SYMBOLIC_NAMES.length]; 78 | for (int i = 0; i < tokenNames.length; i++) { 79 | tokenNames[i] = VOCABULARY.getLiteralName(i); 80 | if (tokenNames[i] == null) { 81 | tokenNames[i] = VOCABULARY.getSymbolicName(i); 82 | } 83 | 84 | if (tokenNames[i] == null) { 85 | tokenNames[i] = "The default implementation returns the result of calling 18 | * {@link #visitChildren} on {@code ctx}.
19 | */ 20 | @Override public T visitIfcFile(STEPGrammarParser.IfcFileContext ctx) { return visitChildren(ctx); } 21 | /** 22 | * {@inheritDoc} 23 | * 24 | *The default implementation returns the result of calling 25 | * {@link #visitChildren} on {@code ctx}.
26 | */ 27 | @Override public T visitHeader(STEPGrammarParser.HeaderContext ctx) { return visitChildren(ctx); } 28 | /** 29 | * {@inheritDoc} 30 | * 31 | *The default implementation returns the result of calling 32 | * {@link #visitChildren} on {@code ctx}.
33 | */ 34 | @Override public T visitFiledescipt(STEPGrammarParser.FiledesciptContext ctx) { return visitChildren(ctx); } 35 | /** 36 | * {@inheritDoc} 37 | * 38 | *The default implementation returns the result of calling 39 | * {@link #visitChildren} on {@code ctx}.
40 | */ 41 | @Override public T visitFilename(STEPGrammarParser.FilenameContext ctx) { return visitChildren(ctx); } 42 | /** 43 | * {@inheritDoc} 44 | * 45 | *The default implementation returns the result of calling 46 | * {@link #visitChildren} on {@code ctx}.
47 | */ 48 | @Override public T visitFileschema(STEPGrammarParser.FileschemaContext ctx) { return visitChildren(ctx); } 49 | /** 50 | * {@inheritDoc} 51 | * 52 | *The default implementation returns the result of calling 53 | * {@link #visitChildren} on {@code ctx}.
54 | */ 55 | @Override public T visitData(STEPGrammarParser.DataContext ctx) { return visitChildren(ctx); } 56 | /** 57 | * {@inheritDoc} 58 | * 59 | *The default implementation returns the result of calling 60 | * {@link #visitChildren} on {@code ctx}.
61 | */ 62 | @Override public T visitDataLine(STEPGrammarParser.DataLineContext ctx) { return visitChildren(ctx); } 63 | /** 64 | * {@inheritDoc} 65 | * 66 | *The default implementation returns the result of calling 67 | * {@link #visitChildren} on {@code ctx}.
68 | */ 69 | @Override public T visitTypedListArgument(STEPGrammarParser.TypedListArgumentContext ctx) { return visitChildren(ctx); } 70 | /** 71 | * {@inheritDoc} 72 | * 73 | *The default implementation returns the result of calling 74 | * {@link #visitChildren} on {@code ctx}.
75 | */ 76 | @Override public T visitArgument(STEPGrammarParser.ArgumentContext ctx) { return visitChildren(ctx); } 77 | /** 78 | * {@inheritDoc} 79 | * 80 | *The default implementation returns the result of calling 81 | * {@link #visitChildren} on {@code ctx}.
82 | */ 83 | @Override public T visitListArgument(STEPGrammarParser.ListArgumentContext ctx) { return visitChildren(ctx); } 84 | /** 85 | * {@inheritDoc} 86 | * 87 | *The default implementation returns the result of calling 88 | * {@link #visitChildren} on {@code ctx}.
89 | */ 90 | @Override public T visitArgumentList(STEPGrammarParser.ArgumentListContext ctx) { return visitChildren(ctx); } 91 | } -------------------------------------------------------------------------------- /src/main/java/parser/STEPGrammarLexer.java: -------------------------------------------------------------------------------- 1 | // Generated from F:/JavaWorkSpace/IfcGraph/src/main/resources\STEPGrammar.g4 by ANTLR 4.7 2 | package parser; 3 | import org.antlr.v4.runtime.Lexer; 4 | import org.antlr.v4.runtime.CharStream; 5 | import org.antlr.v4.runtime.*; 6 | import org.antlr.v4.runtime.atn.*; 7 | import org.antlr.v4.runtime.dfa.DFA; 8 | 9 | @SuppressWarnings({"all", "warnings", "unchecked", "unused", "cast"}) 10 | public class STEPGrammarLexer extends Lexer { 11 | static { RuntimeMetaData.checkVersion("4.7", RuntimeMetaData.VERSION); } 12 | 13 | protected static final DFA[] _decisionToDFA; 14 | protected static final PredictionContextCache _sharedContextCache = 15 | new PredictionContextCache(); 16 | public static final int 17 | T__0=1, T__1=2, T__2=3, T__3=4, T__4=5, T__5=6, T__6=7, T__7=8, T__8=9, 18 | T__9=10, WS=11, BLOCK_COMMENT=12, LINE_COMMENT=13, NONDEF=14, OVERRIDE=15, 19 | BOOLEAN=16, INT=17, NEGINT=18, INTEXP=19, FLOAT=20, ENUM=21, STRING=22, 20 | ISOSTEPSTART=23, ISOSTEPEND=24, HEADER=25, DATA=26, ENDSEC=27, NAME=28; 21 | public static String[] channelNames = { 22 | "DEFAULT_TOKEN_CHANNEL", "HIDDEN" 23 | }; 24 | 25 | public static String[] modeNames = { 26 | "DEFAULT_MODE" 27 | }; 28 | 29 | public static final String[] ruleNames = { 30 | "T__0", "T__1", "T__2", "T__3", "T__4", "T__5", "T__6", "T__7", "T__8", 31 | "T__9", "WS", "BLOCK_COMMENT", "LINE_COMMENT", "NONDEF", "OVERRIDE", "BOOLEAN", 32 | "INT", "NEGINT", "INTEXP", "FLOAT", "EXP", "ENUM", "STRING", "ISOSTEPSTART", 33 | "ISOSTEPEND", "HEADER", "DATA", "ENDSEC", "NAME" 34 | }; 35 | 36 | private static final String[] _LITERAL_NAMES = { 37 | null, "'FILE_DESCRIPTION'", "'('", "')'", "';'", "'FILE_NAME'", "','", 38 | "'FILE_SCHEMA'", "'#'", "'='", "'()'", null, null, null, "'$'", "'*'", 39 | null, null, null, null, null, null, null, null, null, "'HEADER;'", "'DATA;'", 40 | "'ENDSEC;'" 41 | }; 42 | private static final String[] _SYMBOLIC_NAMES = { 43 | null, null, null, null, null, null, null, null, null, null, null, "WS", 44 | "BLOCK_COMMENT", "LINE_COMMENT", "NONDEF", "OVERRIDE", "BOOLEAN", "INT", 45 | "NEGINT", "INTEXP", "FLOAT", "ENUM", "STRING", "ISOSTEPSTART", "ISOSTEPEND", 46 | "HEADER", "DATA", "ENDSEC", "NAME" 47 | }; 48 | public static final Vocabulary VOCABULARY = new VocabularyImpl(_LITERAL_NAMES, _SYMBOLIC_NAMES); 49 | 50 | /** 51 | * @deprecated Use {@link #VOCABULARY} instead. 52 | */ 53 | @Deprecated 54 | public static final String[] tokenNames; 55 | static { 56 | tokenNames = new String[_SYMBOLIC_NAMES.length]; 57 | for (int i = 0; i < tokenNames.length; i++) { 58 | tokenNames[i] = VOCABULARY.getLiteralName(i); 59 | if (tokenNames[i] == null) { 60 | tokenNames[i] = VOCABULARY.getSymbolicName(i); 61 | } 62 | 63 | if (tokenNames[i] == null) { 64 | tokenNames[i] = "