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

Lexer state object for scanning source code. More...

#include <lexer.h>

Collaboration diagram for Lexer:
Collaboration graph
[legend]

Public Attributes

ArenaAllocatorarena
 
const char * src
 
const char * current
 
int line
 
int col
 

Detailed Description

Lexer state object for scanning source code.

Member Data Documentation

◆ arena

ArenaAllocator* Lexer::arena

Arena allocator for token storage

◆ col

int Lexer::col

Current column number

◆ current

const char* Lexer::current

Current scanning position in source

◆ line

int Lexer::line

Current line number

◆ src

const char* Lexer::src

Pointer to the source code string


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