class axl::st::Lexer

#include <axl_st_StringTemplateLexer.h>

class Lexer: public axl::lex::RagelLexer
{
public:
    // methods

    static
    int
    getMachineState(LexerMachineKind machine);
};

Inherited Members

public:
    // typedefs

    typedef Token0 Token;
    typedef Token::TokenKind TokenKind;
    typedef Token::Pos Pos;

    // enums

    enum GotoStateKind;

    // fields

    uint_t m_channelMask;

    // methods

    void
    reset();

    const Token*
    getChannelToken(
        uint_t channelMask,
        size_t index = 0
        );

    void
    nextChannelToken(
        uint_t channelMask,
        size_t count = 1
        );

    const Token*
    getToken(size_t index = 0);

    void
    nextToken(size_t count = 1);

    void
    setSource(
        const sl::StringRef& source,
        bool isBomNeeded = false
        );

    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);