lexLeo
Loading...
Searching...
No Matches
lexleo_token_t Struct Reference

#include <lexleo_token.h>

Public Attributes

lexleo_token_kind_t kind
 
union { 
 
   int   int_value 
 
   char *   string_value 
 
   char *   symbol_value 
 
as 
 

Detailed Description

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: