pt.ist.fenixframework.dml
Class DmlParser
java.lang.Object
antlr.Parser
antlr.LLkParser
pt.ist.fenixframework.dml.DmlParser
- All Implemented Interfaces:
- DmlTokenTypes
public class DmlParser
- extends antlr.LLkParser
- implements DmlTokenTypes
DML parser
Many bits are stolen from the java.g grammar that came with
ANTLR 2.7.2 in the examples/java/java directory.
Fields inherited from class antlr.Parser |
astFactory, inputState, returnAST, tokenNames, tokenTypeToASTClassMap, traceDepth |
Fields inherited from interface pt.ist.fenixframework.dml.DmlTokenTypes |
ABSOLUTE_NAME, ANN_NAME, ANNOTATIONS, CLASS_DEF, COLON, COMMA, DOMAIN_DEFS, DOT, ENUM_TYPE, EOF, EXTENDS_CLAUSE, EXTERNAL, EXTERNALIZATION_CLAUSE, EXTERNALIZATION_ELEMENT, IDENT, IMPLEMENTS_CLAUSE, INDEXED, INT_NUMBER, INTERNALIZATION_CLAUSE, LANGLE, LCURLY, LITERAL_as, LITERAL_by, LITERAL_class, LITERAL_enum, LITERAL_extends, LITERAL_external, LITERAL_externalizeWith, LITERAL_implements, LITERAL_indexed, LITERAL_internalizeWith, LITERAL_multiplicity, LITERAL_ordered, LITERAL_package, LITERAL_playsRole, LITERAL_relation, LITERAL_REQUIRED, LITERAL_super, LITERAL_valueType, LPAREN, ML_COMMENT, MULT_RANGE, MULTIPLICITY, MULTIPLICITY_RANGE, NULL_TREE_LOOKAHEAD, OBJBLOCK, ORDERED, PACKAGE, QUESTION, RANGLE, RCURLY, RELATION_BLOCK, RELATION_DEF, REQUIRED_OPTION, ROLE, ROLE_NAME, ROLE_OPTIONS, RPAREN, SEMI, SL_COMMENT, SLOT_DEF, SLOT_OPTIONS, STAR, STRING_LITERAL, TYPE, VALUE_TYPE, VALUE_TYPE_BLOCK, VOCAB, WILDCARD, WILDCARD_EXTENDS, WILDCARD_SUPER, WS |
Constructor Summary |
|
DmlParser(antlr.ParserSharedInputState state)
|
|
DmlParser(antlr.TokenBuffer tokenBuf)
|
protected |
DmlParser(antlr.TokenBuffer tokenBuf,
int k)
|
|
DmlParser(antlr.TokenStream lexer)
|
protected |
DmlParser(antlr.TokenStream lexer,
int k)
|
Methods inherited from class antlr.LLkParser |
consume, LA, LT, traceIn, traceOut |
Methods inherited from class antlr.Parser |
addMessageListener, addParserListener, addParserMatchListener, addParserTokenListener, addSemanticPredicateListener, addSyntacticPredicateListener, addTraceListener, consumeUntil, consumeUntil, defaultDebuggingSetup, getAST, getASTFactory, getFilename, getInputState, getTokenName, getTokenNames, getTokenTypeToASTClassMap, isDebugMode, mark, match, match, matchNot, panic, recover, removeMessageListener, removeParserListener, removeParserMatchListener, removeParserTokenListener, removeSemanticPredicateListener, removeSyntacticPredicateListener, removeTraceListener, reportError, reportError, reportWarning, rewind, setASTFactory, setASTNodeClass, setASTNodeType, setDebugMode, setFilename, setIgnoreInvalidDebugCalls, setInputState, setTokenBuffer, traceIndent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_tokenNames
public static final String[] _tokenNames
_tokenSet_0
public static final antlr.collections.impl.BitSet _tokenSet_0
DmlParser
protected DmlParser(antlr.TokenBuffer tokenBuf,
int k)
DmlParser
public DmlParser(antlr.TokenBuffer tokenBuf)
DmlParser
protected DmlParser(antlr.TokenStream lexer,
int k)
DmlParser
public DmlParser(antlr.TokenStream lexer)
DmlParser
public DmlParser(antlr.ParserSharedInputState state)
domainDefinitions
public final void domainDefinitions()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
domainDefinition
public final void domainDefinition()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
classDefinition
public final void classDefinition()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
relationDefinition
public final void relationDefinition()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
externalDeclaration
public final void externalDeclaration()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
valueTypeDeclaration
public final void valueTypeDeclaration()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
packageDeclaration
public final void packageDeclaration()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
entityTypeIdentifier
public final void entityTypeIdentifier()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
aliasIdentifier
public final void aliasIdentifier()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
enumTypeDeclaration
public final void enumTypeDeclaration()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
compositeValueTypeDeclaration
public final void compositeValueTypeDeclaration()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
identifier
public final void identifier()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
typeSpec
public final void typeSpec()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
valueTypeBlock
public final void valueTypeBlock()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
externalizationClause
public final void externalizationClause()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
internalizationClause
public final void internalizationClause()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
externalizationElements
public final void externalizationElements()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
externalizationElement
public final void externalizationElement()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
superClassClause
public final void superClassClause()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
implementsClause
public final void implementsClause()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
classBlock
public final void classBlock()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
classSlot
public final void classSlot()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
annotations
public final void annotations()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
classSlotInternal
protected final void classSlotInternal(antlr.collections.AST type,
antlr.collections.AST ann)
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
slotOptions
public final void slotOptions()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
slotOption
public final void slotOption()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
typeArguments
public final void typeArguments()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
typeArgument
public final void typeArgument()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
wildcard
public final void wildcard()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
wildcardBounds
public final void wildcardBounds()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
relationBlock
public final void relationBlock()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
rolesAndSlots
public final void rolesAndSlots()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
role
public final void role(antlr.collections.AST type)
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
roleName
public final void roleName()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
roleOptions
public final void roleOptions()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
roleOption
public final void roleOption()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
multiplicityRange
public final void multiplicityRange()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
multiplicityUpperOnly
public final void multiplicityUpperOnly()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
buildTokenTypeASTClassMap
protected void buildTokenTypeASTClassMap()
Copyright © 2013. All Rights Reserved.