org.cesta.parsers.dot
Class DotTree
java.lang.Object
org.antlr.runtime.BaseRecognizer
org.antlr.runtime.tree.TreeParser
org.cesta.parsers.dot.DotTree
public class DotTree
- extends org.antlr.runtime.tree.TreeParser
An ANTLRv3 capable DOT tree grammar.
Rule "graph" is entry-point, which parses whole AST
and returns graph object.
This grammar is part of CesTa project, http://cesta.sourceforge.net/
BSD licence
Copyright (c) 2010 Tobias Smolka, BUSLAB FI MUNI
All rights reserved.
http://buslab.org
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 BUSLAB FI MUNI ('BUSLAB') ``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 'BUSLAB' 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.
Fields inherited from class org.antlr.runtime.tree.TreeParser |
DOWN, input, UP |
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 |
DotTree(org.antlr.runtime.tree.TreeNodeStream input)
|
DotTree(org.antlr.runtime.tree.TreeNodeStream input,
org.antlr.runtime.RecognizerSharedState state)
|
Methods inherited from class org.antlr.runtime.tree.TreeParser |
getCurrentInputSymbol, getErrorHeader, getErrorMessage, getMissingSymbol, getSourceName, getTreeNodeStream, matchAny, recoverFromMismatchedToken, reset, setTreeNodeStream, traceIn, traceOut |
Methods inherited from class org.antlr.runtime.BaseRecognizer |
alreadyParsedRule, beginResync, combineFollows, computeContextSensitiveRuleFOLLOW, computeErrorRecoverySet, consumeUntil, consumeUntil, displayRecognitionError, emitErrorMessage, endResync, failed, getBacktrackingLevel, getNumberOfSyntaxErrors, getRuleInvocationStack, getRuleInvocationStack, getRuleMemoization, getRuleMemoizationCacheSize, getTokenErrorDisplay, match, memoize, mismatchIsMissingToken, mismatchIsUnwantedToken, pushFollow, recover, recoverFromMismatchedSet, reportError, setBacktrackingLevel, toStrings, traceIn, traceOut |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
tokenNames
public static final java.lang.String[] tokenNames
GRAPH
public static final int GRAPH
- See Also:
- Constant Field Values
EDGE
public static final int EDGE
- See Also:
- Constant Field Values
HTMLSTR
public static final int HTMLSTR
- See Also:
- Constant Field Values
ID
public static final int ID
- See Also:
- Constant Field Values
EOF
public static final int EOF
- See Also:
- Constant Field Values
VALIDSTR
public static final int VALIDSTR
- See Also:
- Constant Field Values
LPAREN
public static final int LPAREN
- See Also:
- Constant Field Values
STR
public static final int STR
- See Also:
- Constant Field Values
ESCAPE_SEQUENCE
public static final int ESCAPE_SEQUENCE
- See Also:
- Constant Field Values
RPAREN
public static final int RPAREN
- See Also:
- Constant Field Values
O_SQR_BRACKET
public static final int O_SQR_BRACKET
- See Also:
- Constant Field Values
GRAPH_ROOT
public static final int GRAPH_ROOT
- See Also:
- Constant Field Values
COMMA
public static final int COMMA
- See Also:
- Constant Field Values
EQUAL
public static final int EQUAL
- See Also:
- Constant Field Values
ALPHACHAR
public static final int ALPHACHAR
- See Also:
- Constant Field Values
COMMENT
public static final int COMMENT
- See Also:
- Constant Field Values
C_SQR_BRACKET
public static final int C_SQR_BRACKET
- See Also:
- Constant Field Values
NODE_STMT
public static final int NODE_STMT
- See Also:
- Constant Field Values
ATTR
public static final int ATTR
- See Also:
- Constant Field Values
D
public static final int D
- See Also:
- Constant Field Values
E
public static final int E
- See Also:
- Constant Field Values
F
public static final int F
- See Also:
- Constant Field Values
C_BRACKET
public static final int C_BRACKET
- See Also:
- Constant Field Values
G
public static final int G
- See Also:
- Constant Field Values
A
public static final int A
- See Also:
- Constant Field Values
B
public static final int B
- See Also:
- Constant Field Values
NODE
public static final int NODE
- See Also:
- Constant Field Values
STRICT
public static final int STRICT
- See Also:
- Constant Field Values
SUBGRAPH
public static final int SUBGRAPH
- See Also:
- Constant Field Values
C
public static final int C
- See Also:
- Constant Field Values
L
public static final int L
- See Also:
- Constant Field Values
LINE_COMMENT
public static final int LINE_COMMENT
- See Also:
- Constant Field Values
M
public static final int M
- See Also:
- Constant Field Values
STMT_LIST
public static final int STMT_LIST
- See Also:
- Constant Field Values
N
public static final int N
- See Also:
- Constant Field Values
O
public static final int O
- See Also:
- Constant Field Values
H
public static final int H
- See Also:
- Constant Field Values
I
public static final int I
- See Also:
- Constant Field Values
J
public static final int J
- See Also:
- Constant Field Values
K
public static final int K
- See Also:
- Constant Field Values
NUMBER
public static final int NUMBER
- See Also:
- Constant Field Values
U
public static final int U
- See Also:
- Constant Field Values
T
public static final int T
- See Also:
- Constant Field Values
W
public static final int W
- See Also:
- Constant Field Values
V
public static final int V
- See Also:
- Constant Field Values
SEMI_COLON
public static final int SEMI_COLON
- See Also:
- Constant Field Values
Q
public static final int Q
- See Also:
- Constant Field Values
P
public static final int P
- See Also:
- Constant Field Values
S
public static final int S
- See Also:
- Constant Field Values
R
public static final int R
- See Also:
- Constant Field Values
O_BRACKET
public static final int O_BRACKET
- See Also:
- Constant Field Values
DIGRAPH
public static final int DIGRAPH
- See Also:
- Constant Field Values
Y
public static final int Y
- See Also:
- Constant Field Values
X
public static final int X
- See Also:
- Constant Field Values
Z
public static final int Z
- See Also:
- Constant Field Values
COLON
public static final int COLON
- See Also:
- Constant Field Values
WS
public static final int WS
- See Also:
- Constant Field Values
NEWLINE
public static final int NEWLINE
- See Also:
- Constant Field Values
QUOTEDSTR
public static final int QUOTEDSTR
- See Also:
- Constant Field Values
EDGEOP
public static final int EDGEOP
- See Also:
- Constant Field Values
EDGE_STMT
public static final int EDGE_STMT
- See Also:
- Constant Field Values
ATTR_LIST
public static final int ATTR_LIST
- See Also:
- Constant Field Values
SUBGRAPH_ROOT
public static final int SUBGRAPH_ROOT
- See Also:
- Constant Field Values
GraphOrSubgraph_stack
protected java.util.Stack GraphOrSubgraph_stack
adaptor
protected org.antlr.runtime.tree.TreeAdaptor adaptor
graph_stack
protected java.util.Stack graph_stack
edge_stmt_stack
protected java.util.Stack edge_stmt_stack
FOLLOW_GRAPH_ROOT_in_graph137
public static final org.antlr.runtime.BitSet FOLLOW_GRAPH_ROOT_in_graph137
FOLLOW_graphModifier_in_graph151
public static final org.antlr.runtime.BitSet FOLLOW_graphModifier_in_graph151
FOLLOW_ID_in_graph179
public static final org.antlr.runtime.BitSet FOLLOW_ID_in_graph179
FOLLOW_stmt_list_in_graph196
public static final org.antlr.runtime.BitSet FOLLOW_stmt_list_in_graph196
FOLLOW_STRICT_in_graphModifier236
public static final org.antlr.runtime.BitSet FOLLOW_STRICT_in_graphModifier236
FOLLOW_GRAPH_in_graphModifier243
public static final org.antlr.runtime.BitSet FOLLOW_GRAPH_in_graphModifier243
FOLLOW_DIGRAPH_in_graphModifier247
public static final org.antlr.runtime.BitSet FOLLOW_DIGRAPH_in_graphModifier247
FOLLOW_STMT_LIST_in_stmt_list276
public static final org.antlr.runtime.BitSet FOLLOW_STMT_LIST_in_stmt_list276
FOLLOW_stmt_in_stmt_list278
public static final org.antlr.runtime.BitSet FOLLOW_stmt_in_stmt_list278
FOLLOW_attr_stmt_in_stmt305
public static final org.antlr.runtime.BitSet FOLLOW_attr_stmt_in_stmt305
FOLLOW_subgraph_in_stmt314
public static final org.antlr.runtime.BitSet FOLLOW_subgraph_in_stmt314
FOLLOW_ATTR_in_stmt324
public static final org.antlr.runtime.BitSet FOLLOW_ATTR_in_stmt324
FOLLOW_ID_in_stmt328
public static final org.antlr.runtime.BitSet FOLLOW_ID_in_stmt328
FOLLOW_EQUAL_in_stmt330
public static final org.antlr.runtime.BitSet FOLLOW_EQUAL_in_stmt330
FOLLOW_ID_in_stmt334
public static final org.antlr.runtime.BitSet FOLLOW_ID_in_stmt334
FOLLOW_edge_stmt_in_stmt353
public static final org.antlr.runtime.BitSet FOLLOW_edge_stmt_in_stmt353
FOLLOW_node_stmt_in_stmt362
public static final org.antlr.runtime.BitSet FOLLOW_node_stmt_in_stmt362
FOLLOW_GRAPH_in_attr_stmt389
public static final org.antlr.runtime.BitSet FOLLOW_GRAPH_in_attr_stmt389
FOLLOW_attr_list_in_attr_stmt393
public static final org.antlr.runtime.BitSet FOLLOW_attr_list_in_attr_stmt393
FOLLOW_NODE_in_attr_stmt410
public static final org.antlr.runtime.BitSet FOLLOW_NODE_in_attr_stmt410
FOLLOW_attr_list_in_attr_stmt414
public static final org.antlr.runtime.BitSet FOLLOW_attr_list_in_attr_stmt414
FOLLOW_EDGE_in_attr_stmt431
public static final org.antlr.runtime.BitSet FOLLOW_EDGE_in_attr_stmt431
FOLLOW_attr_list_in_attr_stmt435
public static final org.antlr.runtime.BitSet FOLLOW_attr_list_in_attr_stmt435
FOLLOW_ATTR_LIST_in_attr_list474
public static final org.antlr.runtime.BitSet FOLLOW_ATTR_LIST_in_attr_list474
FOLLOW_attr_in_attr_list477
public static final org.antlr.runtime.BitSet FOLLOW_attr_in_attr_list477
FOLLOW_ATTR_in_attr512
public static final org.antlr.runtime.BitSet FOLLOW_ATTR_in_attr512
FOLLOW_ID_in_attr516
public static final org.antlr.runtime.BitSet FOLLOW_ID_in_attr516
FOLLOW_EQUAL_in_attr519
public static final org.antlr.runtime.BitSet FOLLOW_EQUAL_in_attr519
FOLLOW_ID_in_attr523
public static final org.antlr.runtime.BitSet FOLLOW_ID_in_attr523
FOLLOW_EDGE_STMT_in_edge_stmt574
public static final org.antlr.runtime.BitSet FOLLOW_EDGE_STMT_in_edge_stmt574
FOLLOW_node_id_in_edge_stmt590
public static final org.antlr.runtime.BitSet FOLLOW_node_id_in_edge_stmt590
FOLLOW_edgeRHS_in_edge_stmt616
public static final org.antlr.runtime.BitSet FOLLOW_edgeRHS_in_edge_stmt616
FOLLOW_attr_list_in_edge_stmt629
public static final org.antlr.runtime.BitSet FOLLOW_attr_list_in_edge_stmt629
FOLLOW_EDGE_STMT_in_edge_stmt669
public static final org.antlr.runtime.BitSet FOLLOW_EDGE_STMT_in_edge_stmt669
FOLLOW_subgraph_in_edge_stmt686
public static final org.antlr.runtime.BitSet FOLLOW_subgraph_in_edge_stmt686
FOLLOW_edgeRHS_in_edge_stmt714
public static final org.antlr.runtime.BitSet FOLLOW_edgeRHS_in_edge_stmt714
FOLLOW_attr_list_in_edge_stmt728
public static final org.antlr.runtime.BitSet FOLLOW_attr_list_in_edge_stmt728
FOLLOW_EDGEOP_in_edgeRHS788
public static final org.antlr.runtime.BitSet FOLLOW_EDGEOP_in_edgeRHS788
FOLLOW_node_id_in_edgeRHS792
public static final org.antlr.runtime.BitSet FOLLOW_node_id_in_edgeRHS792
FOLLOW_edgeRHS_in_edgeRHS809
public static final org.antlr.runtime.BitSet FOLLOW_edgeRHS_in_edgeRHS809
FOLLOW_EDGEOP_in_edgeRHS825
public static final org.antlr.runtime.BitSet FOLLOW_EDGEOP_in_edgeRHS825
FOLLOW_subgraph_in_edgeRHS827
public static final org.antlr.runtime.BitSet FOLLOW_subgraph_in_edgeRHS827
FOLLOW_edgeRHS_in_edgeRHS857
public static final org.antlr.runtime.BitSet FOLLOW_edgeRHS_in_edgeRHS857
FOLLOW_NODE_STMT_in_node_stmt899
public static final org.antlr.runtime.BitSet FOLLOW_NODE_STMT_in_node_stmt899
FOLLOW_node_id_in_node_stmt903
public static final org.antlr.runtime.BitSet FOLLOW_node_id_in_node_stmt903
FOLLOW_attr_list_in_node_stmt907
public static final org.antlr.runtime.BitSet FOLLOW_attr_list_in_node_stmt907
FOLLOW_ID_in_node_id943
public static final org.antlr.runtime.BitSet FOLLOW_ID_in_node_id943
FOLLOW_port_in_node_id947
public static final org.antlr.runtime.BitSet FOLLOW_port_in_node_id947
FOLLOW_ID_in_port985
public static final org.antlr.runtime.BitSet FOLLOW_ID_in_port985
FOLLOW_VALIDSTR_in_port988
public static final org.antlr.runtime.BitSet FOLLOW_VALIDSTR_in_port988
FOLLOW_VALIDSTR_in_port999
public static final org.antlr.runtime.BitSet FOLLOW_VALIDSTR_in_port999
FOLLOW_SUBGRAPH_ROOT_in_subgraph1035
public static final org.antlr.runtime.BitSet FOLLOW_SUBGRAPH_ROOT_in_subgraph1035
FOLLOW_ID_in_subgraph1049
public static final org.antlr.runtime.BitSet FOLLOW_ID_in_subgraph1049
FOLLOW_stmt_list_in_subgraph1078
public static final org.antlr.runtime.BitSet FOLLOW_stmt_list_in_subgraph1078
FOLLOW_SUBGRAPH_ROOT_in_subgraph1111
public static final org.antlr.runtime.BitSet FOLLOW_SUBGRAPH_ROOT_in_subgraph1111
FOLLOW_ID_in_subgraph1113
public static final org.antlr.runtime.BitSet FOLLOW_ID_in_subgraph1113
DotTree
public DotTree(org.antlr.runtime.tree.TreeNodeStream input)
DotTree
public DotTree(org.antlr.runtime.tree.TreeNodeStream input,
org.antlr.runtime.RecognizerSharedState state)
setTreeAdaptor
public void setTreeAdaptor(org.antlr.runtime.tree.TreeAdaptor adaptor)
getTreeAdaptor
public org.antlr.runtime.tree.TreeAdaptor getTreeAdaptor()
getTokenNames
public java.lang.String[] getTokenNames()
- Overrides:
getTokenNames
in class org.antlr.runtime.BaseRecognizer
getGrammarFileName
public java.lang.String getGrammarFileName()
- Overrides:
getGrammarFileName
in class org.antlr.runtime.BaseRecognizer
graph
public final DotTree.graph_return graph()
throws org.antlr.runtime.RecognitionException
- Throws:
org.antlr.runtime.RecognitionException
graphModifier
public final DotTree.graphModifier_return graphModifier()
throws org.antlr.runtime.RecognitionException
- Throws:
org.antlr.runtime.RecognitionException
stmt_list
public final DotTree.stmt_list_return stmt_list()
throws org.antlr.runtime.RecognitionException
- Throws:
org.antlr.runtime.RecognitionException
stmt
public final DotTree.stmt_return stmt()
throws org.antlr.runtime.RecognitionException
- Throws:
org.antlr.runtime.RecognitionException
attr_stmt
public final DotTree.attr_stmt_return attr_stmt()
throws org.antlr.runtime.RecognitionException
- Throws:
org.antlr.runtime.RecognitionException
attr_list
public final DotTree.attr_list_return attr_list()
throws org.antlr.runtime.RecognitionException
- Throws:
org.antlr.runtime.RecognitionException
attr
public final DotTree.attr_return attr()
throws org.antlr.runtime.RecognitionException
- Throws:
org.antlr.runtime.RecognitionException
edge_stmt
public final DotTree.edge_stmt_return edge_stmt()
throws org.antlr.runtime.RecognitionException
- Throws:
org.antlr.runtime.RecognitionException
edgeRHS
public final DotTree.edgeRHS_return edgeRHS()
throws org.antlr.runtime.RecognitionException
- Throws:
org.antlr.runtime.RecognitionException
node_stmt
public final DotTree.node_stmt_return node_stmt()
throws org.antlr.runtime.RecognitionException
- Throws:
org.antlr.runtime.RecognitionException
node_id
public final DotTree.node_id_return node_id()
throws org.antlr.runtime.RecognitionException
- Throws:
org.antlr.runtime.RecognitionException
port
public final DotTree.port_return port()
throws org.antlr.runtime.RecognitionException
- Throws:
org.antlr.runtime.RecognitionException
subgraph
public final DotTree.subgraph_return subgraph()
throws org.antlr.runtime.RecognitionException
- Throws:
org.antlr.runtime.RecognitionException