dil.lexer.TokensEnum

Members

Enums

TOK
enum TOK

Enumeration of token kinds.

Functions

toString
cstring toString(TOK k)

Returns the string representation of a token kind.

Manifest constants

str2TOK
enum str2TOK;

A compile time associative array which maps Token strings to TOK values.

Templates

S2T
template S2T(string s)

Converts a Token string to its respective TOK value at compile time.

S2T
template S2T(Ss...)

Converts multiple Token strings and returns a Tuple of TOK values.

Variables

tokToString
string[TOK.MAX] tokToString;

A table that maps each token kind to a string.

Meta

Authors

Aziz Köksal

License

GPL3 $(Maturity very high)