WIP: elaborate on Hyphae in instructions.toml
All checks were successful
per-push tests / build (push) Successful in 1m26s
per-push tests / test-frontend (push) Successful in 1m35s
per-push tests / test-utility (push) Successful in 1m41s
per-push tests / test-backend (push) Successful in 1m50s
per-push tests / timed-decomposer-parse (push) Successful in 1m50s
All checks were successful
per-push tests / build (push) Successful in 1m26s
per-push tests / test-frontend (push) Successful in 1m35s
per-push tests / test-utility (push) Successful in 1m41s
per-push tests / test-backend (push) Successful in 1m50s
per-push tests / timed-decomposer-parse (push) Successful in 1m50s
Signed-off-by: Ava Affine <ava@sunnypup.io>
This commit is contained in:
parent
f48867db42
commit
258ee56149
3 changed files with 307 additions and 45 deletions
|
|
@ -255,7 +255,7 @@ impl VM {
|
|||
// stack ops
|
||||
i::PUSH => self.stack.push_current_stack(
|
||||
access!(&instr.1[0]).deep_copy()),
|
||||
i::POP => _ = self.stack.pop_current_stack(),
|
||||
i::POP => self.expr = self.stack.pop_current_stack(),
|
||||
i::ENTER => self.stack.add_stack(),
|
||||
i::EXIT => self.stack.destroy_top_stack(),
|
||||
|
||||
|
|
@ -326,7 +326,7 @@ impl VM {
|
|||
};
|
||||
|
||||
let Datum::Number(ref r) = **access!(&instr.1[1]) else {
|
||||
e!("illgal argument to IDIV instruction");
|
||||
e!("illegal argument to IDIV instruction");
|
||||
};
|
||||
|
||||
let Fraction(l, 1) = l.make_exact() else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue