prelude compiles: WAT
This commit is contained in:
parent
b3e0af41bb
commit
92d0915a71
|
@ -277,7 +277,7 @@ impl Chunk {
|
|||
let idx = ((high as usize) << 8) + low as usize;
|
||||
let value = &self.constants[idx].show();
|
||||
println!("{i:04}: {:16} {idx:05}: {value}", op.to_string());
|
||||
*i += 1;
|
||||
*i += 2;
|
||||
}
|
||||
PushBinding | MatchTuple | MatchSplattedTuple | LoadSplattedTuple | MatchList
|
||||
| MatchSplattedList | LoadSplattedList | MatchDict | MatchSplattedDict
|
||||
|
|
|
@ -79,8 +79,8 @@ pub fn run(src: &'static str) {
|
|||
// in any event, the AST should live forever
|
||||
let parsed: &'static Spanned<Ast> = Box::leak(Box::new(parse_result.unwrap()));
|
||||
|
||||
// let prelude = prelude();
|
||||
let prelude = imbl::HashMap::new();
|
||||
let prelude = prelude();
|
||||
// let prelude = imbl::HashMap::new();
|
||||
|
||||
let mut compiler = Compiler::new(parsed, "test", src, None, prelude);
|
||||
// let base = base::make_base();
|
||||
|
|
Loading…
Reference in New Issue
Block a user