feat: execute source control flow and exact real arithmetic

This commit is contained in:
2026-11-12 10:48:27 +08:00
parent f3e1670c58
commit 5ff1c68f5f
28 changed files with 1045 additions and 117 deletions
+5
View File
@@ -36,6 +36,8 @@ pub enum Opcode {
MakeFunction = 28,
BuildClass = 29,
Await = 30,
BinaryArithmetic = 31,
UnaryNegate = 32,
ExtendedArg = 255,
}
@@ -73,6 +75,8 @@ impl Opcode {
28 => Self::MakeFunction,
29 => Self::BuildClass,
30 => Self::Await,
31 => Self::BinaryArithmetic,
32 => Self::UnaryNegate,
255 => Self::ExtendedArg,
_ => return None,
})
@@ -88,6 +92,7 @@ impl Opcode {
| Self::ToBool
| Self::UnaryNot
| Self::Await
| Self::UnaryNegate
| Self::BuildClass
)
}