Class HutnSpecParser
- java.lang.Object
-
- org.antlr.runtime.BaseRecognizer
-
- org.antlr.runtime.Parser
-
- org.eclipse.epsilon.common.parse.EpsilonParser
-
- org.eclipse.epsilon.hutn.parse.spec.HutnSpecParser
-
public class HutnSpecParser extends EpsilonParser
Copyright (c) 2009 The University of York. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html Contributors: Louis Rose - initial API and implementation ----------------------------------------------------------------------------- ANTLR 3 License [The "BSD licence"] Copyright (c) 2005-2008 Terence Parr All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. The name of the author may not be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HutnSpecParser.feature_return
static class
HutnSpecParser.metamodel_return
static class
HutnSpecParser.preamble_return
-
Field Summary
Fields Modifier and Type Field Description protected org.antlr.runtime.tree.TreeAdaptor
adaptor
static int
ASSIGNMENT
static int
EOF
static int
ESC
static org.antlr.runtime.BitSet
FOLLOW_ASSIGNMENT_in_feature92
static org.antlr.runtime.BitSet
FOLLOW_feature_in_metamodel78
static org.antlr.runtime.BitSet
FOLLOW_LBRACKET_in_metamodel75
static org.antlr.runtime.BitSet
FOLLOW_LBRACKET_in_preamble55
static org.antlr.runtime.BitSet
FOLLOW_metamodel_in_preamble58
static org.antlr.runtime.BitSet
FOLLOW_NAME_in_feature89
static org.antlr.runtime.BitSet
FOLLOW_NAME_in_metamodel69
static org.antlr.runtime.BitSet
FOLLOW_RBRACKET_in_metamodel81
static org.antlr.runtime.BitSet
FOLLOW_RBRACKET_in_preamble61
static org.antlr.runtime.BitSet
FOLLOW_SPEC_in_preamble49
static org.antlr.runtime.BitSet
FOLLOW_TEXTUAL_VALUE_in_feature95
static org.antlr.runtime.BitSet
FOLLOW_TEXTUAL_VALUE_in_metamodel72
static org.antlr.runtime.BitSet
FOLLOW_TEXTUAL_VALUE_in_preamble52
static int
ID_LETTER
static int
ID_START_LETTER
static int
LBRACKET
static int
ML_COMMENT
static int
NAME
static int
RBRACKET
static int
SL_COMMENT
static int
SPEC
static int
TEXT_LETTER
static int
TEXTUAL_VALUE
static String[]
tokenNames
static int
WS
-
Constructor Summary
Constructors Constructor Description HutnSpecParser(org.antlr.runtime.TokenStream input)
HutnSpecParser(org.antlr.runtime.TokenStream input, org.antlr.runtime.RecognizerSharedState state)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HutnSpecParser.feature_return
feature()
String
getGrammarFileName()
String[]
getTokenNames()
org.antlr.runtime.tree.TreeAdaptor
getTreeAdaptor()
HutnSpecParser.metamodel_return
metamodel()
HutnSpecParser.preamble_return
preamble()
void
setTreeAdaptor(org.antlr.runtime.tree.TreeAdaptor adaptor)
-
Methods inherited from class org.eclipse.epsilon.common.parse.EpsilonParser
displayRecognitionError, isSupertype, prepareForGUnit, setDeepTreeAdaptor
-
Methods inherited from class org.antlr.runtime.Parser
getCurrentInputSymbol, getMissingSymbol, getSourceName, getTokenStream, reset, setTokenStream, traceIn, traceOut
-
Methods inherited from class org.antlr.runtime.BaseRecognizer
alreadyParsedRule, beginResync, combineFollows, computeContextSensitiveRuleFOLLOW, computeErrorRecoverySet, consumeUntil, consumeUntil, emitErrorMessage, endResync, failed, getBacktrackingLevel, getErrorHeader, getErrorMessage, getNumberOfSyntaxErrors, getRuleInvocationStack, getRuleInvocationStack, getRuleMemoization, getRuleMemoizationCacheSize, getTokenErrorDisplay, match, matchAny, memoize, mismatchIsMissingToken, mismatchIsUnwantedToken, pushFollow, recover, recoverFromMismatchedSet, recoverFromMismatchedToken, reportError, setBacktrackingLevel, toStrings, traceIn, traceOut
-
-
-
-
Field Detail
-
tokenNames
public static final String[] tokenNames
-
ID_START_LETTER
public static final int ID_START_LETTER
- See Also:
- Constant Field Values
-
TEXTUAL_VALUE
public static final int TEXTUAL_VALUE
- See Also:
- Constant Field Values
-
LBRACKET
public static final int LBRACKET
- See Also:
- Constant Field Values
-
RBRACKET
public static final int RBRACKET
- See Also:
- Constant Field Values
-
TEXT_LETTER
public static final int TEXT_LETTER
- See Also:
- Constant Field Values
-
ID_LETTER
public static final int ID_LETTER
- See Also:
- Constant Field Values
-
NAME
public static final int NAME
- See Also:
- Constant Field Values
-
ESC
public static final int ESC
- See Also:
- Constant Field Values
-
ML_COMMENT
public static final int ML_COMMENT
- See Also:
- Constant Field Values
-
ASSIGNMENT
public static final int ASSIGNMENT
- See Also:
- Constant Field Values
-
SL_COMMENT
public static final int SL_COMMENT
- See Also:
- Constant Field Values
-
WS
public static final int WS
- See Also:
- Constant Field Values
-
EOF
public static final int EOF
- See Also:
- Constant Field Values
-
SPEC
public static final int SPEC
- See Also:
- Constant Field Values
-
adaptor
protected org.antlr.runtime.tree.TreeAdaptor adaptor
-
FOLLOW_SPEC_in_preamble49
public static final org.antlr.runtime.BitSet FOLLOW_SPEC_in_preamble49
-
FOLLOW_TEXTUAL_VALUE_in_preamble52
public static final org.antlr.runtime.BitSet FOLLOW_TEXTUAL_VALUE_in_preamble52
-
FOLLOW_LBRACKET_in_preamble55
public static final org.antlr.runtime.BitSet FOLLOW_LBRACKET_in_preamble55
-
FOLLOW_metamodel_in_preamble58
public static final org.antlr.runtime.BitSet FOLLOW_metamodel_in_preamble58
-
FOLLOW_RBRACKET_in_preamble61
public static final org.antlr.runtime.BitSet FOLLOW_RBRACKET_in_preamble61
-
FOLLOW_NAME_in_metamodel69
public static final org.antlr.runtime.BitSet FOLLOW_NAME_in_metamodel69
-
FOLLOW_TEXTUAL_VALUE_in_metamodel72
public static final org.antlr.runtime.BitSet FOLLOW_TEXTUAL_VALUE_in_metamodel72
-
FOLLOW_LBRACKET_in_metamodel75
public static final org.antlr.runtime.BitSet FOLLOW_LBRACKET_in_metamodel75
-
FOLLOW_feature_in_metamodel78
public static final org.antlr.runtime.BitSet FOLLOW_feature_in_metamodel78
-
FOLLOW_RBRACKET_in_metamodel81
public static final org.antlr.runtime.BitSet FOLLOW_RBRACKET_in_metamodel81
-
FOLLOW_NAME_in_feature89
public static final org.antlr.runtime.BitSet FOLLOW_NAME_in_feature89
-
FOLLOW_ASSIGNMENT_in_feature92
public static final org.antlr.runtime.BitSet FOLLOW_ASSIGNMENT_in_feature92
-
FOLLOW_TEXTUAL_VALUE_in_feature95
public static final org.antlr.runtime.BitSet FOLLOW_TEXTUAL_VALUE_in_feature95
-
-
Method Detail
-
setTreeAdaptor
public void setTreeAdaptor(org.antlr.runtime.tree.TreeAdaptor adaptor)
- Specified by:
setTreeAdaptor
in classEpsilonParser
-
getTreeAdaptor
public org.antlr.runtime.tree.TreeAdaptor getTreeAdaptor()
- Specified by:
getTreeAdaptor
in classEpsilonParser
-
getTokenNames
public String[] getTokenNames()
- Overrides:
getTokenNames
in classorg.antlr.runtime.BaseRecognizer
-
getGrammarFileName
public String getGrammarFileName()
- Overrides:
getGrammarFileName
in classorg.antlr.runtime.BaseRecognizer
-
preamble
public final HutnSpecParser.preamble_return preamble() throws org.antlr.runtime.RecognitionException
- Throws:
org.antlr.runtime.RecognitionException
-
metamodel
public final HutnSpecParser.metamodel_return metamodel() throws org.antlr.runtime.RecognitionException
- Throws:
org.antlr.runtime.RecognitionException
-
feature
public final HutnSpecParser.feature_return feature() throws org.antlr.runtime.RecognitionException
- Throws:
org.antlr.runtime.RecognitionException
-
-