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_array.h"
9#include "util/hb_buffer.h"
10
11#include <stdint.h>
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
17HERB_EXPORTED_FUNCTION void herb_lex_to_buffer(const char* source, hb_buffer_T* output);
18
19HERB_EXPORTED_FUNCTION hb_array_T* herb_lex(const char* source);
20HERB_EXPORTED_FUNCTION hb_array_T* herb_lex_file(const char* path);
21
23
24HERB_EXPORTED_FUNCTION const char* herb_version(void);
26
27HERB_EXPORTED_FUNCTION void herb_free_tokens(hb_array_T** tokens);
28
29#ifdef __cplusplus
30}
31#endif
32
33#endif
HERB_EXPORTED_FUNCTION hb_array_T * herb_lex(const char *source)
Definition herb.c:13
HERB_EXPORTED_FUNCTION const char * herb_prism_version(void)
Definition herb.c:89
HERB_EXPORTED_FUNCTION AST_DOCUMENT_NODE_T * herb_parse(const char *source, parser_options_T *options)
Definition herb.c:29
HERB_EXPORTED_FUNCTION hb_array_T * herb_lex_file(const char *path)
Definition herb.c:49
HERB_EXPORTED_FUNCTION void herb_lex_to_buffer(const char *source, hb_buffer_T *output)
Definition herb.c:58
HERB_EXPORTED_FUNCTION const char * herb_version(void)
Definition herb.c:85
HERB_EXPORTED_FUNCTION void herb_free_tokens(hb_array_T **tokens)
Definition herb.c:74
#define HERB_EXPORTED_FUNCTION
Definition macros.h:8
Definition ast_nodes.h:61
Definition parser.h:18