Rename error variants

This commit is contained in:
2025-11-18 18:30:56 -07:00
parent 5a78e25469
commit 4e6096fd3f
8 changed files with 330 additions and 145 deletions

View File

@@ -9,14 +9,12 @@ fn compile_from_string(
input: &safer_ffi::string::String,
output: &mut safer_ffi::string::String,
) -> bool {
let buffer = Vec::<u8>::new();
let mut writer = BufWriter::new(buffer);
let mut writer = BufWriter::new(Vec::new());
let tokenizer = Tokenizer::from(input.to_string());
let parser = Parser::new(tokenizer);
let compiler = Compiler::new(parser, &mut writer);
let compiler = Compiler::new(parser, &mut writer, None);
let Ok(()) = compiler.compile() else {
return false;