Herb C Reference
Loading...
Searching...
No Matches
token.c File Reference
#include "include/token.h"
#include "include/json.h"
#include "include/lexer.h"
#include "include/position.h"
#include "include/token_struct.h"
#include "include/util.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

Functions

size_t token_sizeof (void)
 
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)
 
char * token_to_string (const token_T *token)
 
char * token_to_json (const token_T *token)
 
char * token_value (const token_T *token)
 
int token_type (const token_T *token)
 
position_Ttoken_start_position (token_T *token)
 
position_Ttoken_end_position (token_T *token)
 
token_Ttoken_copy (token_T *token)
 
void token_free (token_T *token)
 

Function Documentation

◆ token_sizeof()

size_t token_sizeof ( void  )

◆ 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()

char * token_to_string ( const token_T token)

◆ token_to_json()

char * token_to_json ( const token_T token)

◆ token_value()

char * token_value ( const token_T token)

◆ token_type()

int token_type ( const token_T token)

◆ token_start_position()

position_T * token_start_position ( token_T token)

◆ token_end_position()

position_T * token_end_position ( token_T token)

◆ token_copy()

token_T * token_copy ( token_T token)

◆ token_free()

void token_free ( token_T token)