Luma 0.1.0
A low-level compiled alternative to C, C++, and more!
Loading...
Searching...
No Matches
Public Attributes | List of all members
Token Struct Reference

Represents a single token extracted by the lexer. More...

#include <lexer.h>

Public Attributes

LumaTokenType type_
 
const char * value
 
int line
 
int col
 
int length
 
int whitespace_len
 

Detailed Description

Represents a single token extracted by the lexer.

Member Data Documentation

◆ col

int Token::col

Column number of token

◆ length

int Token::length

Length of the token text

◆ line

int Token::line

Line number of token

◆ type_

LumaTokenType Token::type_

Token type

◆ value

const char* Token::value

Pointer to token text start

◆ whitespace_len

int Token::whitespace_len

Leading whitespace length before token


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