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