Herb C Reference
Loading...
Searching...
No Matches
token.h File Reference
#include "lexer_struct.h"
#include "position.h"
#include "token_struct.h"
#include "util/hb_string.h"

Go to the source code of this file.

Functions

token_Ttoken_init (hb_string_T value, token_type_T type, lexer_T *lexer)
 
hb_string_T token_to_string (const token_T *token)
 
const char * token_type_to_string (token_type_T type)
 
token_Ttoken_copy (token_T *token)
 
void token_free (token_T *token)
 
bool token_value_empty (const token_T *token)
 

Function Documentation

◆ token_init()

token_T * token_init ( hb_string_T  value,
token_type_T  type,
lexer_T lexer 
)

◆ token_to_string()

hb_string_T token_to_string ( const token_T token)

◆ token_type_to_string()

const char * token_type_to_string ( token_type_T  type)

◆ token_copy()

token_T * token_copy ( token_T token)

◆ token_free()

void token_free ( token_T token)

◆ token_value_empty()

bool token_value_empty ( const token_T token)