net.claribole.zgrviewer.dot
Class DOTParser
java.lang.Object
antlr.Parser
antlr.LLkParser
net.claribole.zgrviewer.dot.DOTParser
- All Implemented Interfaces:
- DOTTokenTypes
- public class DOTParser
- extends antlr.LLkParser
- implements DOTTokenTypes
Parser for GraphViz Dot files. This parser can generate an AST to be walked
later.
- Author:
- Eric Mounhem
| Fields inherited from class antlr.Parser |
astFactory, inputState, returnAST, tokenNames, tokenTypeToASTClassMap, traceDepth |
| Fields inherited from interface net.claribole.zgrviewer.dot.DOTTokenTypes |
CMT, COLON, COMMA, CPP_COMMENT, D_EDGE_OP, DIGRAPH, EDGE, EOF, EQUAL, ESC, GRAPH, GT, HTML, ID, LABEL, LBR, LCUR, LT, ND_EDGE_OP, NODE, NULL_TREE_LOOKAHEAD, RBR, RCUR, SEMI, STRICT, SUBGRAPH, WS |
|
Constructor Summary |
|
DOTParser(antlr.ParserSharedInputState state)
|
|
DOTParser(antlr.TokenBuffer tokenBuf)
|
protected |
DOTParser(antlr.TokenBuffer tokenBuf,
int k)
|
|
DOTParser(antlr.TokenStream lexer)
|
protected |
DOTParser(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 java.lang.String[] _tokenNames
_tokenSet_0
public static final antlr.collections.impl.BitSet _tokenSet_0
_tokenSet_1
public static final antlr.collections.impl.BitSet _tokenSet_1
_tokenSet_2
public static final antlr.collections.impl.BitSet _tokenSet_2
_tokenSet_3
public static final antlr.collections.impl.BitSet _tokenSet_3
_tokenSet_4
public static final antlr.collections.impl.BitSet _tokenSet_4
_tokenSet_5
public static final antlr.collections.impl.BitSet _tokenSet_5
_tokenSet_6
public static final antlr.collections.impl.BitSet _tokenSet_6
_tokenSet_7
public static final antlr.collections.impl.BitSet _tokenSet_7
_tokenSet_8
public static final antlr.collections.impl.BitSet _tokenSet_8
_tokenSet_9
public static final antlr.collections.impl.BitSet _tokenSet_9
_tokenSet_10
public static final antlr.collections.impl.BitSet _tokenSet_10
DOTParser
protected DOTParser(antlr.TokenBuffer tokenBuf,
int k)
DOTParser
public DOTParser(antlr.TokenBuffer tokenBuf)
DOTParser
protected DOTParser(antlr.TokenStream lexer,
int k)
DOTParser
public DOTParser(antlr.TokenStream lexer)
DOTParser
public DOTParser(antlr.ParserSharedInputState state)
graph
public final void graph()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
stmt_list
public final void stmt_list()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
stmt
public final void stmt()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
node_edge_subgraph_stmt
public final void node_edge_subgraph_stmt()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
attr_stmt
public final void attr_stmt()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
attr_list
public final void attr_list()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
a_list
public final void a_list()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
a_list_elts
public final void a_list_elts()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
node_id
public final void node_id()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
subgraph
public final void subgraph()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
sing_attr_list
public final void sing_attr_list()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
compass
public final void compass()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
buildTokenTypeASTClassMap
protected void buildTokenTypeASTClassMap()
Copyright © 2004-2005 INRIA. All Rights Reserved
Licensed under the GNU LGPL. For full terms see the file COPYING.