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
use crate::records::fragment_parse_resume_settings::FragmentParseResumeSettings;

#[derive(Debug, Clone, Default)]
pub struct ParseOptions {
    pub allow_declaration_syntax: bool,
    pub capture_comments: bool,
    pub parse_fragment: Option<FragmentParseResumeSettings>,
    pub store_cst_data: bool,
    pub no_error_limit: bool,
}