1#ifndef INC_LLkParser_hpp__
2#define INC_LLkParser_hpp__
11#include <antlr/config.hpp>
12#include <antlr/Parser.hpp>
14#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
41 inputState->getInput().consume();
44 virtual inline int LA(
unsigned int i)
46 return inputState->getInput().LA(i);
51 return inputState->getInput().LT(i);
57 void trace(
const char* ee,
const char* rname);
59 virtual void traceIn(
const char* rname);
60 virtual void traceOut(
const char* rname);
63#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
virtual void consume()
Consume another token from the input stream.
virtual int LA(unsigned int i)
Return the token type of the ith token of lookahead where i=1 is the current token being examined by ...
int k
the lookahead this LL(k) parser is using.
virtual RefToken LT(unsigned int i)
Return the i-th token of lookahead.
A generic ANTLR parser (LL(k) for k>=1) containing a bunch of utility routines useful at any lookahea...
A Stream of Token objects fed to the parser from a TokenStream that can be rewound via mark()/rewind(...
This interface allows any object to pretend it is a stream of tokens.