Zen-C
Loading...
Searching...
No Matches
token.c File Reference
#include "zprep.h"
Include dependency graph for token.c:

Functions

void lexer_init (Lexer *l, const char *src)
 Initialize the lexer.
 
Token lexer_next (Lexer *l)
 Get the next token.
 
Token lexer_peek (Lexer *l)
 Get the next token without advancing.
 
Token lexer_peek2 (Lexer *l)
 Get the next token without advancing (2 look ahead).
 

Function Documentation

◆ lexer_init()

void lexer_init ( Lexer l,
const char *  src 
)

Initialize the lexer.

Here is the caller graph for this function:

◆ lexer_next()

Token lexer_next ( Lexer l)

Get the next token.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ lexer_peek()

Token lexer_peek ( Lexer l)

Get the next token without advancing.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ lexer_peek2()

Token lexer_peek2 ( Lexer l)

Get the next token without advancing (2 look ahead).

Here is the call graph for this function:
Here is the caller graph for this function: