Skip to main content

Module lexer

Module lexer 

Source

Enumsยง

ExprToken ๐Ÿ”’
Tokens for expression parsing inside ${โ€ฆ} blocks.
Token ๐Ÿ”’
Lexer tokens for WoW spell description strings.

Constantsยง

COLOR_CODE_PREFIX_LEN ๐Ÿ”’
DOLLAR_PREFIX_LEN ๐Ÿ”’
GLOBAL_STRING_PREFIX_LEN ๐Ÿ”’

Functionsยง

lex ๐Ÿ”’
Build a lexer for the given spell description source.
lex_expr ๐Ÿ”’
Build an expression-token lexer for the contents of a ${...} block.
parse_cond_func ๐Ÿ”’
parse_expression_block ๐Ÿ”’
parse_gender ๐Ÿ”’
parse_global_pluralization ๐Ÿ”’
parse_pluralization ๐Ÿ”’
token_to_fragment ๐Ÿ”’
tokenize ๐Ÿ”’
Tokenize a spell description string, discarding lexer errors.
tokenize_to_fragments ๐Ÿ”’
Tokenize input into fragments for debug display.

Type Aliasesยง

Lexer ๐Ÿ”’
Concrete logos lexer alias for spell description Tokens.