$darkmode
Herb C Reference
prism_helpers.h
Go to the documentation of this file.
1 #ifndef HERB_PRISM_HELPERS_H
2 #define HERB_PRISM_HELPERS_H
3 
4 #include "ast_nodes.h"
5 #include "errors.h"
6 #include "position.h"
7 
8 #include <prism.h>
9 
10 const char* pm_error_level_to_string(pm_error_level_t level);
11 
13  const pm_diagnostic_t* error,
14  const AST_NODE_T* node,
15  const char* source,
16  pm_parser_t* parser
17 );
18 
19 position_T* position_from_source_with_offset(const char* source, size_t offset);
20 
21 #endif
RUBY_PARSE_ERROR_T * ruby_parse_error_from_prism_error(const pm_diagnostic_t *error, const AST_NODE_T *node, const char *source, pm_parser_t *parser)
Definition: prism_helpers.c:34
position_T * position_from_source_with_offset(const char *source, size_t offset)
Definition: prism_helpers.c:19
const char * pm_error_level_to_string(pm_error_level_t level)
Definition: prism_helpers.c:9
Definition: ast_nodes.h:52
Definition: position.h:6
Definition: errors.h:80