Herb C Reference
Loading...
Searching...
No Matches
herb.c File Reference
#include "include/herb.h"
#include "include/io.h"
#include "include/lexer.h"
#include "include/parser.h"
#include "include/token.h"
#include "include/util/hb_array.h"
#include "include/util/hb_buffer.h"
#include "include/version.h"
#include <prism.h>
#include <stdlib.h>

Functions

HERB_EXPORTED_FUNCTION hb_array_T * herb_lex (const char *source)
 
HERB_EXPORTED_FUNCTION AST_DOCUMENT_NODE_Therb_parse (const char *source, parser_options_T *options)
 
HERB_EXPORTED_FUNCTION hb_array_T * herb_lex_file (const char *path)
 
HERB_EXPORTED_FUNCTION void herb_lex_to_buffer (const char *source, hb_buffer_T *output)
 
HERB_EXPORTED_FUNCTION void herb_free_tokens (hb_array_T **tokens)
 
HERB_EXPORTED_FUNCTION const char * herb_version (void)
 
HERB_EXPORTED_FUNCTION const char * herb_prism_version (void)
 

Function Documentation

◆ herb_lex()

HERB_EXPORTED_FUNCTION hb_array_T * herb_lex ( const char *  source)

◆ herb_parse()

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

◆ herb_lex_file()

HERB_EXPORTED_FUNCTION hb_array_T * herb_lex_file ( const char *  path)

◆ herb_lex_to_buffer()

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

◆ herb_free_tokens()

HERB_EXPORTED_FUNCTION void herb_free_tokens ( hb_array_T **  tokens)

◆ herb_version()

HERB_EXPORTED_FUNCTION const char * herb_version ( void  )

◆ herb_prism_version()

HERB_EXPORTED_FUNCTION const char * herb_prism_version ( void  )