net.claribole.zgrviewer.dot
Class DOTParser

java.lang.Object
  extended byantlr.Parser
      extended byantlr.LLkParser
          extended bynet.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

Field Summary
static java.lang.String[] _tokenNames
           
static antlr.collections.impl.BitSet _tokenSet_0
           
static antlr.collections.impl.BitSet _tokenSet_1
           
static antlr.collections.impl.BitSet _tokenSet_10
           
static antlr.collections.impl.BitSet _tokenSet_2
           
static antlr.collections.impl.BitSet _tokenSet_3
           
static antlr.collections.impl.BitSet _tokenSet_4
           
static antlr.collections.impl.BitSet _tokenSet_5
           
static antlr.collections.impl.BitSet _tokenSet_6
           
static antlr.collections.impl.BitSet _tokenSet_7
           
static antlr.collections.impl.BitSet _tokenSet_8
           
static antlr.collections.impl.BitSet _tokenSet_9
           
 
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)
           
 
Method Summary
 void a_list_elts()
           
 void a_list()
           
 void attr_list()
           
 void attr_stmt()
           
protected  void buildTokenTypeASTClassMap()
           
 void compass()
           
 void graph()
           
 void node_edge_subgraph_stmt()
           
 void node_id()
           
 void sing_attr_list()
           
 void stmt_list()
           
 void stmt()
           
 void subgraph()
           
 
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
 

Field Detail

_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
Constructor Detail

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)
Method Detail

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.