infovis.tree.io
Class NewickParser

java.lang.Object
  extended by antlr.Parser
      extended by antlr.LLkParser
          extended by infovis.tree.io.NewickParser
All Implemented Interfaces:
NewickTokenTypes

public class NewickParser
extends antlr.LLkParser
implements NewickTokenTypes

Parser for the Newick Tree format.

Author:
Jean-Daniel Fekete

Field Summary
static String[] _tokenNames
           
static antlr.collections.impl.BitSet _tokenSet_0
           
static antlr.collections.impl.BitSet _tokenSet_1
           
static antlr.collections.impl.BitSet _tokenSet_2
           
static antlr.collections.impl.BitSet _tokenSet_3
           
static antlr.collections.impl.BitSet _tokenSet_4
           
 
Fields inherited from interface infovis.tree.io.NewickTokenTypes
COLON, COMMA, EOF, ESC, LABEL, LPAREN, NULL_TREE_LOOKAHEAD, NUMBER, RPAREN, SEMI, WS
 
Constructor Summary
NewickParser(antlr.ParserSharedInputState state)
           
NewickParser(antlr.TokenBuffer tokenBuf)
           
NewickParser(antlr.TokenStream lexer)
           
 
Method Summary
 String branch_length()
           
 void descendant_list()
           
 String label()
           
 void subtree()
           
 void tree()
           
 
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, 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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_tokenNames

public static final 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
Constructor Detail

NewickParser

public NewickParser(antlr.TokenBuffer tokenBuf)

NewickParser

public NewickParser(antlr.TokenStream lexer)

NewickParser

public NewickParser(antlr.ParserSharedInputState state)
Method Detail

tree

public final void tree()
                throws antlr.RecognitionException,
                       antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

descendant_list

public final void descendant_list()
                           throws antlr.RecognitionException,
                                  antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

label

public final String label()
                   throws antlr.RecognitionException,
                          antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

branch_length

public final String branch_length()
                           throws antlr.RecognitionException,
                                  antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

subtree

public final void subtree()
                   throws antlr.RecognitionException,
                          antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException


Copyright © 2005 by Jean-Daniel Fekete and INRIA, France All rights reserved.