luaur-compiler 0.1.1

Luau source-to-bytecode compiler (Rust).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
extern crate alloc;

use alloc::string::String;
use luaur_ast::records::location::Location;

#[derive(Debug, Clone)]
pub struct CompileError {
    pub(crate) location: Location,
    pub(crate) message: String,
}

impl core::fmt::Display for CompileError {
    fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
        write!(f, "{}", self.message)
    }
}

impl std::error::Error for CompileError {}