dil.lexer.Token

Members

Functions

isAsmStatementStartToken
bool isAsmStatementStartToken(TOK tok)

Returns true if this token starts an AsmStatement.

isDeclDefStartToken
bool isDeclDefStartToken(TOK tok)

Returns true if this token starts a DeclarationDefinition.

isStatementStartToken
bool isStatementStartToken(TOK tok)

Returns true if this token starts a Statement.

toToken
Token* toToken(TOK kind)

Returns the token corresponding to a token kind.

Static variables

staticTokens
Token[TOK.MAX] staticTokens;

A list of tokens that point to tokToStringkind as their text.

Structs

Token
struct Token

A Token is a sequence of characters recognized by the lexical analyzer.

Meta

Authors

Aziz Köksal

License

GPL3 $(Maturity high)