fix a few bugs with the new precedence rules
This commit is contained in:
parent
29a80854a4
commit
9808d3227f
3 changed files with 113 additions and 59 deletions
|
@ -432,22 +432,23 @@ unsafe extern "C" fn haku_compile_brush(
|
|||
);
|
||||
debug!("compiling: {closure_spec:?}");
|
||||
|
||||
// debug!("bytecode: {:?}", chunk.bytecode);
|
||||
// {
|
||||
// let mut cursor = 0_usize;
|
||||
// for info in &chunk.span_info {
|
||||
// let slice = &chunk.bytecode[cursor..cursor + info.len as usize];
|
||||
// debug!(
|
||||
// "{:?} | 0x{:x} {:?} | {:?}",
|
||||
// info.span,
|
||||
// cursor,
|
||||
// slice,
|
||||
// info.span.slice(src.code),
|
||||
// );
|
||||
// cursor += info.len as usize;
|
||||
// }
|
||||
// }
|
||||
|
||||
/*
|
||||
debug!("bytecode: {:?}", chunk.bytecode);
|
||||
{
|
||||
let mut cursor = 0_usize;
|
||||
for info in &chunk.span_info {
|
||||
let slice = &chunk.bytecode[cursor..cursor + info.len as usize];
|
||||
debug!(
|
||||
"{:?} | 0x{:x} {:?} | {:?}",
|
||||
info.span,
|
||||
cursor,
|
||||
slice,
|
||||
info.span.slice(src.code),
|
||||
);
|
||||
cursor += info.len as usize;
|
||||
}
|
||||
}
|
||||
// */
|
||||
instance.compile_result2 = Some(CompileResult {
|
||||
defs_string: instance.defs.serialize_defs(),
|
||||
tags_string: instance.defs.serialize_tags(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue