luaur-compile-cli 0.1.3

Command-line Luau source-to-bytecode compiler (Rust).
Documentation
1
2
3
4
5
6
7
8
9
use core::ffi::c_char;

use luaur_ast::records::parse_error::ParseError;

use crate::functions::report::report;

pub fn report_error_c_char_luau_parse_error(name: *const c_char, error: &ParseError) {
    report(name, error.get_location(), "SyntaxError", error.what());
}