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 hb_array_T* herb_lex(const char* source, hb_allocator_T* allocator);
19
21 const char* source,
22 const parser_options_T* options,
23 hb_allocator_T* allocator
24);
25
26HERB_EXPORTED_FUNCTION const char* herb_version(void);
28
29HERB_EXPORTED_FUNCTION void herb_free_tokens(hb_array_T** tokens, hb_allocator_T* allocator);
30
31#ifdef __cplusplus
32}
33#endif
34
35#endif
HERB_EXPORTED_FUNCTION const char * herb_prism_version(void)
Definition herb.c:71
HERB_EXPORTED_FUNCTION void herb_free_tokens(hb_array_T **tokens, hb_allocator_T *allocator)
Definition herb.c:56
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:13
HERB_EXPORTED_FUNCTION const char * herb_version(void)
Definition herb.c:67
#define HERB_EXPORTED_FUNCTION
Definition macros.h:8
Definition ast_nodes.h:65
Definition parser.h:19