Zen-C
Loading...
Searching...
No Matches
Token Struct Reference

Represents a source token. More...

#include <zprep.h>

Data Fields

TokenType type
 Type of the token.
 
const charstart
 Pointer to start of token in source buffer.
 
int len
 Length of the token text.
 
int line
 Line number (1-based).
 
int col
 Column number (1-based).
 

Detailed Description

Represents a source token.

Field Documentation

◆ col

int Token::col

Column number (1-based).

◆ len

int Token::len

Length of the token text.

◆ line

int Token::line

Line number (1-based).

◆ start

const char* Token::start

Pointer to start of token in source buffer.

◆ type

TokenType Token::type

Type of the token.


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