de.java_chess.javaChess.pgn
Class PGNParser

java.lang.Object
  |
  +--antlr.Parser
        |
        +--antlr.LLkParser
              |
              +--de.java_chess.javaChess.pgn.PGNParser

public class PGNParser
extends antlr.LLkParser
implements PGNTokenTypes

A parser for PGN (Portable Game Notation) files.


Field Summary
static java.lang.String[] _tokenNames
           
static antlr.collections.impl.BitSet _tokenSet_0
           
 
Fields inherited from class antlr.Parser
astFactory, inputState, returnAST, tokenNames, traceDepth
 
Fields inherited from interface de.java_chess.javaChess.pgn.PGNTokenTypes
DOT, EOF, FIGURINE_LETTER_CODE, LITERAL_x, MOVE_INDEX, NULL_TREE_LOOKAHEAD, SL_COMMENT, SQUARE_INDEX, SQUARE_NAME, STRING_LITERAL
 
Constructor Summary
  PGNParser(antlr.ParserSharedInputState state)
           
  PGNParser(antlr.TokenBuffer tokenBuf)
           
protected PGNParser(antlr.TokenBuffer tokenBuf, int k)
           
  PGNParser(antlr.TokenStream lexer)
           
protected PGNParser(antlr.TokenStream lexer, int k)
           
 
Method Summary
 void blackTag()
           
 void dateTag()
           
 void eventTag()
           
 void move()
           
 void moveTextSection()
           
 void pgnFile()
           
 void ply()
           
 void resultTag()
           
 void roundTag()
           
 void siteTag()
           
 void tagPair()
           
 void tagPairSection()
           
 void whiteTag()
           
 
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, isDebugMode, mark, match, match, matchNot, panic, 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
Constructor Detail

PGNParser

protected PGNParser(antlr.TokenBuffer tokenBuf,
                    int k)

PGNParser

public PGNParser(antlr.TokenBuffer tokenBuf)

PGNParser

protected PGNParser(antlr.TokenStream lexer,
                    int k)

PGNParser

public PGNParser(antlr.TokenStream lexer)

PGNParser

public PGNParser(antlr.ParserSharedInputState state)
Method Detail

pgnFile

public final void pgnFile()
                   throws antlr.RecognitionException,
                          antlr.TokenStreamException

tagPairSection

public final void tagPairSection()
                          throws antlr.RecognitionException,
                                 antlr.TokenStreamException

moveTextSection

public final void moveTextSection()
                           throws antlr.RecognitionException,
                                  antlr.TokenStreamException

tagPair

public final void tagPair()
                   throws antlr.RecognitionException,
                          antlr.TokenStreamException

eventTag

public final void eventTag()
                    throws antlr.RecognitionException,
                           antlr.TokenStreamException

siteTag

public final void siteTag()
                   throws antlr.RecognitionException,
                          antlr.TokenStreamException

dateTag

public final void dateTag()
                   throws antlr.RecognitionException,
                          antlr.TokenStreamException

roundTag

public final void roundTag()
                    throws antlr.RecognitionException,
                           antlr.TokenStreamException

whiteTag

public final void whiteTag()
                    throws antlr.RecognitionException,
                           antlr.TokenStreamException

blackTag

public final void blackTag()
                    throws antlr.RecognitionException,
                           antlr.TokenStreamException

resultTag

public final void resultTag()
                     throws antlr.RecognitionException,
                            antlr.TokenStreamException

move

public final void move()
                throws antlr.RecognitionException,
                       antlr.TokenStreamException

ply

public final void ply()
               throws antlr.RecognitionException,
                      antlr.TokenStreamException