luaur-ast 0.1.0

Lexer, parser, and AST for Luau (faithful Rust port).
Documentation
1
2
3
4
5
6
7
use crate::functions::pretty_print_pretty_printer::pretty_print_ast_stat_block_cst_node_map;
use crate::records::ast_stat_block::AstStatBlock;
use crate::type_aliases::cst_node_map::CstNodeMap;

pub fn pretty_print_ast_stat_block(block: &mut AstStatBlock) -> alloc::string::String {
    pretty_print_ast_stat_block_cst_node_map(block, CstNodeMap::new(core::ptr::null_mut()))
}