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_array.h"
#include "util/hb_buffer.h"
#include <stdint.h>

Go to the source code of this file.

Functions

HERB_EXPORTED_FUNCTION void herb_lex_to_buffer (const char *source, hb_buffer_T *output)
 
HERB_EXPORTED_FUNCTION hb_array_T * herb_lex (const char *source)
 
HERB_EXPORTED_FUNCTION hb_array_T * herb_lex_file (const char *path)
 
HERB_EXPORTED_FUNCTION AST_DOCUMENT_NODE_Therb_parse (const char *source, parser_options_T *options)
 
HERB_EXPORTED_FUNCTION const char * herb_version (void)
 
HERB_EXPORTED_FUNCTION const char * herb_prism_version (void)
 
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 hb_array_T * herb_lex ( const char *  source)

◆ herb_lex_file()

HERB_EXPORTED_FUNCTION hb_array_T * herb_lex_file ( const char *  path)

◆ herb_parse()

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

◆ herb_version()

HERB_EXPORTED_FUNCTION const char * herb_version ( void  )

◆ herb_prism_version()

HERB_EXPORTED_FUNCTION const char * herb_prism_version ( void  )

◆ herb_free_tokens()

HERB_EXPORTED_FUNCTION void herb_free_tokens ( hb_array_T **  tokens)