2023-09-27 19:24:48 +03:00
|
|
|
#ifndef PRISM_EXT_NODE_H
|
|
|
|
#define PRISM_EXT_NODE_H
|
2023-06-20 18:53:02 +03:00
|
|
|
|
2024-05-10 20:09:45 +03:00
|
|
|
#define EXPECTED_PRISM_VERSION "0.29.0"
|
2023-08-26 00:54:01 +03:00
|
|
|
|
2023-06-20 18:53:02 +03:00
|
|
|
#include <ruby.h>
|
|
|
|
#include <ruby/encoding.h>
|
2023-09-27 19:24:48 +03:00
|
|
|
#include "prism.h"
|
2023-06-20 18:53:02 +03:00
|
|
|
|
2024-02-22 18:55:29 +03:00
|
|
|
VALUE pm_source_new(const pm_parser_t *parser, rb_encoding *encoding);
|
|
|
|
VALUE pm_token_new(const pm_parser_t *parser, const pm_token_t *token, rb_encoding *encoding, VALUE source);
|
|
|
|
VALUE pm_ast_new(const pm_parser_t *parser, const pm_node_t *node, rb_encoding *encoding, VALUE source);
|
2024-03-07 21:53:47 +03:00
|
|
|
VALUE pm_integer_new(const pm_integer_t *integer);
|
2023-06-20 18:53:02 +03:00
|
|
|
|
2023-09-27 19:24:48 +03:00
|
|
|
void Init_prism_api_node(void);
|
|
|
|
void Init_prism_pack(void);
|
|
|
|
PRISM_EXPORTED_FUNCTION void Init_prism(void);
|
2023-06-20 18:53:02 +03:00
|
|
|
|
2023-06-30 21:30:24 +03:00
|
|
|
#endif
|