Herb C Reference
Loading...
Searching...
No Matches
prism_helpers.c File Reference
#include "include/prism_helpers.h"
#include "include/ast_nodes.h"
#include "include/errors.h"
#include "include/position.h"
#include "include/util.h"
#include <prism.h>

Functions

const char * pm_error_level_to_string (pm_error_level_t level)
 
position_Tposition_from_source_with_offset (const char *source, size_t offset)
 
RUBY_PARSE_ERROR_Truby_parse_error_from_prism_error (const pm_diagnostic_t *error, const AST_NODE_T *node, const char *source, pm_parser_t *parser)
 

Function Documentation

◆ pm_error_level_to_string()

const char * pm_error_level_to_string ( pm_error_level_t  level)

◆ position_from_source_with_offset()

position_T * position_from_source_with_offset ( const char *  source,
size_t  offset 
)

◆ ruby_parse_error_from_prism_error()

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 
)