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
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 ClassesModifier and TypeClassDescriptionstatic class
static class
static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.antlr.runtime.tree.TreeAdaptor
static final int
static final int
static final int
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final String[]
static final int
Fields inherited from class org.antlr.runtime.Parser
input
Fields inherited from class org.antlr.runtime.BaseRecognizer
DEFAULT_TOKEN_CHANNEL, HIDDEN, INITIAL_FOLLOW_STACK_SIZE, MEMO_RULE_FAILED, MEMO_RULE_UNKNOWN, NEXT_TOKEN_RULE_NAME, state
-
Constructor Summary
ConstructorsConstructorDescriptionHutnSpecParser
(org.antlr.runtime.TokenStream input) HutnSpecParser
(org.antlr.runtime.TokenStream input, org.antlr.runtime.RecognizerSharedState state) -
Method Summary
Modifier and TypeMethodDescriptionfeature()
String[]
org.antlr.runtime.tree.TreeAdaptor
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 Details
-
tokenNames
-
ID_START_LETTER
public static final int ID_START_LETTER- See Also:
-
TEXTUAL_VALUE
public static final int TEXTUAL_VALUE- See Also:
-
LBRACKET
public static final int LBRACKET- See Also:
-
RBRACKET
public static final int RBRACKET- See Also:
-
TEXT_LETTER
public static final int TEXT_LETTER- See Also:
-
ID_LETTER
public static final int ID_LETTER- See Also:
-
NAME
public static final int NAME- See Also:
-
ESC
public static final int ESC- See Also:
-
ML_COMMENT
public static final int ML_COMMENT- See Also:
-
ASSIGNMENT
public static final int ASSIGNMENT- See Also:
-
SL_COMMENT
public static final int SL_COMMENT- See Also:
-
WS
public static final int WS- See Also:
-
EOF
public static final int EOF- See Also:
-
SPEC
public static final int SPEC- See Also:
-
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
-
-
Constructor Details
-
HutnSpecParser
public HutnSpecParser(org.antlr.runtime.TokenStream input)
-
-
Method Details
-
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
- Overrides:
getTokenNames
in classorg.antlr.runtime.BaseRecognizer
-
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
- Throws:
org.antlr.runtime.RecognitionException
-