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

Go to the source code of this file.

Functions

const char * pm_error_level_to_string (pm_error_level_t level)
 
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)
 
RUBY_PARSE_ERROR_Truby_parse_error_from_prism_error_with_positions (const pm_diagnostic_t *error, position_T start, position_T end)
 

Function Documentation

◆ pm_error_level_to_string()

const char * pm_error_level_to_string ( pm_error_level_t  level)

◆ 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 
)

◆ ruby_parse_error_from_prism_error_with_positions()

RUBY_PARSE_ERROR_T * ruby_parse_error_from_prism_error_with_positions ( const pm_diagnostic_t *  error,
position_T  start,
position_T  end 
)