$darkmode
Herb C Reference
token.c File Reference
#include "include/token.h"
#include "include/lexer.h"
#include "include/position.h"
#include "include/range.h"
#include "include/token_struct.h"
#include "include/util.h"
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

Functions

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

Function Documentation

◆ token_init()

token_T* token_init ( const char *  value,
const token_type_T  type,
lexer_T lexer 
)

◆ token_type_to_string()

const char* token_type_to_string ( const token_type_T  type)

◆ token_to_string()

hb_string_T token_to_string ( const token_T token)

◆ token_copy()

token_T* token_copy ( token_T token)

◆ token_value_empty()

bool token_value_empty ( const token_T token)

◆ token_free()

void token_free ( token_T token)