luaur-ast 0.1.3

Lexer, parser, and AST for Luau (faithful Rust port).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::records::location::Location;
use crate::records::parse_error::ParseError;

impl ParseError {
    pub fn new(location: Location, message: String) -> Self {
        Self { location, message }
    }
}

#[allow(non_snake_case)]
pub fn parse_error_parse_error(location: Location, message: String) -> ParseError {
    ParseError::new(location, message)
}