#include <lexleo_token.h>
|
|
lexleo_token_kind_t | kind |
| |
|
union { | |
| |
|
int int_value | |
| |
|
char * string_value | |
| |
|
char * symbol_value | |
| |
| } | as | |
| |
Lexical token.
Ownership rules:
- For LEX_TK_STRING and LEX_TK_SYMBOL_NAME, string_value is heap-allocated and ownership is transferred to the token consumer.
- For other token kinds, the union content is unspecified.
The documentation for this struct was generated from the following file: