Compiler phase 1: lexer.
More...
|
TokenQueue * | lex (const char *text) |
| Convert a string containing a Decaf program into a queue of tokens. More...
|
|
◆ FREE_REGEXES
Value:
Regex_free(cmt); \
Regex_free(nl); \
Regex_free(id); \
Regex_free(dec); \
Regex_free(hex); \
Regex_free(str); \
Regex_free(sym2); \
Regex_free(sym1); \
Regex_free(key); \
Regex_free(rsrv);
void Regex_free(Regex *regex)
Deallocate a regular expression.
Definition: token.c:25
◆ lex()
Convert a string containing a Decaf program into a queue of tokens.
- Parameters
-
- Returns
- Newly-created queue of tokens