TagMap

Maps tokens to (format) strings.

Members

Functions

getTag
cstring getTag(NodeKind k)

Returns the tag for the category 'k'.

opIndex
cstring opIndex(cstring str, cstring fallback = "")

Returns the value for str, or 'fallback' if str is not in the table.

opIndex
cstring opIndex(TOK tok)

Returns the value for tok in O(1) time.

opIndexAssign
void opIndexAssign(cstring str, TOK tok)

Assigns str to tokenTabletok.

Variables

BlockC
cstring BlockC;

Shortcuts for quick access.

Char
cstring Char;

Shortcuts for quick access.

Declaration
cstring Declaration;

Shortcuts for quick access.

EOF
cstring EOF;

Shortcuts for quick access.

Escape
cstring Escape;

Shortcuts for quick access.

Expression
cstring Expression;

Shortcuts for quick access.

Filespec
cstring Filespec;

Shortcuts for quick access.

HLine
cstring HLine;

Shortcuts for quick access.

Identifier
cstring Identifier;

Shortcuts for quick access.

Illegal
cstring Illegal;

Shortcuts for quick access.

Keyword
cstring Keyword;

Shortcuts for quick access.

LineC
cstring LineC;

Shortcuts for quick access.

NestedC
cstring NestedC;

Shortcuts for quick access.

Newline
cstring Newline;

Shortcuts for quick access.

Number
cstring Number;

Shortcuts for quick access.

Other
cstring Other;

Shortcuts for quick access.

Shebang
cstring Shebang;

Shortcuts for quick access.

SpecialToken
cstring SpecialToken;

Shortcuts for quick access.

Statement
cstring Statement;

Shortcuts for quick access.

String
cstring String;

Shortcuts for quick access.

Type
cstring Type;

Shortcuts for quick access.

Meta