libsnobol4 1.0.2
High-performance SNOBOL4-style pattern matching library
Loading...
Searching...
No Matches
token_t Struct Reference

#include <lexer.h>

Public Attributes

token_type_t type
union { 
   struct { 
      const char *   text 
      size_t   len 
   }   string
   struct { 
      int64_t   value 
   }   integer
} data

Detailed Description

Token value representation

Definition at line 51 of file lexer.h.

Member Data Documentation

◆ [union]

union { ... } token_t::data

◆ [struct]

struct { ... } token_t::integer

◆ len

size_t token_t::len

Definition at line 58 of file lexer.h.

◆ [struct]

struct { ... } token_t::string

◆ text

const char* token_t::text

Definition at line 57 of file lexer.h.

◆ type

token_type_t token_t::type

Definition at line 52 of file lexer.h.

◆ value

int64_t token_t::value

Definition at line 63 of file lexer.h.


The documentation for this struct was generated from the following file: