template class axl::lex::RagelLexer
#include <axl_lex_RagelLexer.h>
template <
typename T,
typename Token = StdRagelToken
>
class RagelLexer:
public axl::lex::Lexer,
public axl::lex::Ragel
{
public:
// enums
enum GotoStateKind;
// construction
RagelLexer();
// methods
size_t
getTokenizeLimit();
void
setTokenizeLimit(size_t tokenizeLimit);
void
create(
int state,
const sl::StringRef& filePath,
const sl::StringRef& source,
bool isBomNeeded = false
);
void
create(
const sl::StringRef& filePath,
const sl::StringRef& source,
bool isBomNeeded = false
);
const Token*
expectToken(int tokenKind);
void
ensureSrcPosError();
void
gotoState(
int state,
const Token* token,
GotoStateKind kind
);
void
setLineCol(
int line,
int col
);
void
setLineColOffset(
int line,
int col,
size_t offset
);
void
setLineCol(const LineCol& pos);
void
setLineColOffset(const LineColOffset& pos);
};