Herb C Reference
Loading...
Searching...
No Matches
herb.h
Go to the documentation of this file.
1#ifndef HERB_H
2#define HERB_H
3
4#include "ast_node.h"
5#include "extract.h"
6#include "macros.h"
7#include "parser.h"
8#include "util/hb_allocator.h"
9#include "util/hb_array.h"
10#include "util/hb_buffer.h"
11
12#include <stdint.h>
13
14#ifdef __cplusplus
15extern "C" {
16#endif
17
18HERB_EXPORTED_FUNCTION void herb_lex_to_buffer(const char* source, hb_buffer_T* output, hb_allocator_T* allocator);
19
20HERB_EXPORTED_FUNCTION hb_array_T* herb_lex(const char* source, hb_allocator_T* allocator);
21HERB_EXPORTED_FUNCTION hb_array_T* herb_lex_file(const char* path, hb_allocator_T* allocator);
22
24 const char* source,
25 const parser_options_T* options,
26 hb_allocator_T* allocator
27);
28
29HERB_EXPORTED_FUNCTION const char* herb_version(void);
31
32HERB_EXPORTED_FUNCTION void herb_free_tokens(hb_array_T** tokens, hb_allocator_T* allocator);
33
34#ifdef __cplusplus
35}
36#endif
37
38#endif
HERB_EXPORTED_FUNCTION const char * herb_prism_version(void)
Definition herb.c:97
HERB_EXPORTED_FUNCTION void herb_lex_to_buffer(const char *source, hb_buffer_T *output, hb_allocator_T *allocator)
Definition herb.c:66
HERB_EXPORTED_FUNCTION void herb_free_tokens(hb_array_T **tokens, hb_allocator_T *allocator)
Definition herb.c:82
HERB_EXPORTED_FUNCTION AST_DOCUMENT_NODE_T * herb_parse(const char *source, const parser_options_T *options, hb_allocator_T *allocator)
Definition herb.c:31
HERB_EXPORTED_FUNCTION hb_array_T * herb_lex(const char *source, hb_allocator_T *allocator)
Definition herb.c:15
HERB_EXPORTED_FUNCTION const char * herb_version(void)
Definition herb.c:93
HERB_EXPORTED_FUNCTION hb_array_T * herb_lex_file(const char *path, hb_allocator_T *allocator)
Definition herb.c:57
#define HERB_EXPORTED_FUNCTION
Definition macros.h:8
Definition ast_nodes.h:65
Definition parser.h:19