Herb C Reference
Loading...
Searching...
No Matches
herb.h File Reference
#include "ast_node.h"
#include "extract.h"
#include "macros.h"
#include "parser.h"
#include "util/hb_arena.h"
#include "util/hb_array.h"
#include "util/hb_buffer.h"
#include <stdint.h>

Go to the source code of this file.

Data Structures

struct  herb_lex_result_T
 

Functions

HERB_EXPORTED_FUNCTION void herb_lex_to_buffer (const char *source, hb_buffer_T *output)
 
HERB_EXPORTED_FUNCTION herb_lex_result_Therb_lex (const char *source, hb_arena_T *arena)
 
HERB_EXPORTED_FUNCTION herb_lex_result_Therb_lex_file (const char *path, hb_arena_T *arena)
 
HERB_EXPORTED_FUNCTION AST_DOCUMENT_NODE_Therb_parse (const char *source, const parser_options_T *options, hb_arena_T *arena)
 
HERB_EXPORTED_FUNCTION const char * herb_version (void)
 
HERB_EXPORTED_FUNCTION const char * herb_prism_version (void)
 
void herb_free_lex_result (herb_lex_result_T **result)
 
HERB_EXPORTED_FUNCTION void herb_free_tokens (hb_array_T **tokens)
 

Function Documentation

◆ herb_lex_to_buffer()

HERB_EXPORTED_FUNCTION void herb_lex_to_buffer ( const char *  source,
hb_buffer_T *  output 
)

◆ herb_lex()

HERB_EXPORTED_FUNCTION herb_lex_result_T * herb_lex ( const char *  source,
hb_arena_T *  arena 
)

◆ herb_lex_file()

HERB_EXPORTED_FUNCTION herb_lex_result_T * herb_lex_file ( const char *  path,
hb_arena_T *  arena 
)

◆ herb_parse()

HERB_EXPORTED_FUNCTION AST_DOCUMENT_NODE_T * herb_parse ( const char *  source,
const parser_options_T options,
hb_arena_T *  arena 
)

◆ herb_version()

HERB_EXPORTED_FUNCTION const char * herb_version ( void  )

◆ herb_prism_version()

HERB_EXPORTED_FUNCTION const char * herb_prism_version ( void  )

◆ herb_free_lex_result()

void herb_free_lex_result ( herb_lex_result_T **  result)

◆ herb_free_tokens()

HERB_EXPORTED_FUNCTION void herb_free_tokens ( hb_array_T **  tokens)