luaur-ast 0.1.0

Lexer, parser, and AST for Luau (faithful Rust port).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::records::ast_node::AstNode;
use crate::records::comment::Comment;
use crate::records::hot_comment::HotComment;
use crate::records::parse_error::ParseError;
use crate::type_aliases::cst_node_map::CstNodeMap;
use alloc::vec::Vec;

#[allow(non_camel_case_types)]
#[derive(Debug, Clone)]
pub struct ParseNodeResult<Node = AstNode> {
    pub root: *mut Node,
    pub lines: usize,
    pub hotcomments: Vec<HotComment>,
    pub errors: Vec<ParseError>,
    pub comment_locations: Vec<Comment>,
    pub cst_node_map: CstNodeMap,
}