$darkmode
Herb C Reference
herb.h
Go to the documentation of this file.
1 #ifndef HERB_H
2 #define HERB_H
3 
4 #include "array.h"
5 #include "ast_node.h"
6 #include "buffer.h"
7 #include "extract.h"
8 #include "parser.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, buffer_T* output);
17 void herb_lex_json_to_buffer(const char* source, buffer_T* output);
18 
19 array_T* herb_lex(const char* source);
20 array_T* herb_lex_file(const char* path);
21 
22 AST_DOCUMENT_NODE_T* herb_parse(const char* source, parser_options_T* options);
23 
24 const char* herb_version(void);
25 const char* herb_prism_version(void);
26 
27 void herb_free_tokens(array_T** tokens);
28 
29 #ifdef __cplusplus
30 }
31 #endif
32 
33 #endif
void herb_lex_json_to_buffer(const char *source, buffer_T *output)
Definition: herb.c:66
void herb_free_tokens(array_T **tokens)
Definition: herb.c:86
AST_DOCUMENT_NODE_T * herb_parse(const char *source, parser_options_T *options)
Definition: herb.c:30
const char * herb_version(void)
Definition: herb.c:97
const char * herb_prism_version(void)
Definition: herb.c:101
array_T * herb_lex(const char *source)
Definition: herb.c:14
void herb_lex_to_buffer(const char *source, buffer_T *output)
Definition: herb.c:50
array_T * herb_lex_file(const char *path)
Definition: herb.c:41
Definition: array.h:6
Definition: ast_nodes.h:60
Definition: buffer.h:7
Definition: parser.h:18