Purple  0.1
Standard Language Specification
Public Attributes | List of all members
Token Struct Reference

Structure containing information about individual scannable tokens. More...

#include <scan.h>

Collaboration diagram for Token:
Collaboration graph

Public Attributes

TokenType token_type
 
position pos
 
union {
   Number   number_value
 
   char   symbol_name [MAX_IDENTIFIER_LENGTH]
 
value
 

Detailed Description

Structure containing information about individual scannable tokens.

Member Data Documentation

◆ number_value

Number Token::number_value

Value of integer Token

◆ pos

position Token::pos

Position of Token

◆ symbol_name

char Token::symbol_name[MAX_IDENTIFIER_LENGTH]

Name of identifier Token

◆ token_type

TokenType Token::token_type

Type of Token

◆ 

union { ... } Token::value

Value of Token


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