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

Go to the source code of this file.

Functions

token_Ttoken_init (const char *value, token_type_T type, lexer_T *lexer)
 
char * token_to_string (const token_T *token)
 
char * token_to_json (const token_T *token)
 
const char * token_type_to_string (token_type_T type)
 
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)
 
size_t token_sizeof (void)
 
token_Ttoken_copy (token_T *token)
 
void token_free (token_T *token)
 

Function Documentation

◆ token_init()

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

◆ token_to_string()

char * token_to_string ( const token_T token)

◆ token_to_json()

char * token_to_json ( const token_T token)

◆ token_type_to_string()

const char * token_type_to_string ( token_type_T  type)

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

size_t token_sizeof ( void  )

◆ token_copy()

token_T * token_copy ( token_T token)

◆ token_free()

void token_free ( token_T token)