Skip to main content

luaur_ast/methods/
parser_parse_expr_parser.rs

1use crate::records::allocator::Allocator;
2use crate::records::ast_expr::AstExpr;
3use crate::records::ast_name_table::AstNameTable;
4use crate::records::parse_node_result::ParseNodeResult;
5use crate::records::parse_options::ParseOptions;
6use crate::records::parser::Parser;
7
8impl Parser {
9    pub fn parse_expr_c_char_usize_ast_name_table_allocator_parse_options(
10        buffer: &str,
11        buffer_size: usize,
12        names: &mut AstNameTable,
13        allocator: &mut Allocator,
14        options: ParseOptions,
15    ) -> ParseNodeResult<AstExpr> {
16        Parser::run_parse(buffer, buffer_size, names, allocator, options, |parser| {
17            parser.parse_expr_i32(0)
18        })
19    }
20}