Herb C Reference
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
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
10const char* pm_error_level_to_string(pm_error_level_t level);
11
13 const pm_diagnostic_t* error, const AST_NODE_T* node, const char* source, pm_parser_t* parser
14);
15
16position_T* position_from_source_with_offset(const char* source, size_t offset);
17
18#endif
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
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
Definition ast_nodes.h:47
Definition position.h:6
Definition errors.h:80