Offchain scaffolding.

This commit is contained in:
zjkree
2024-12-24 06:32:46 +01:00
parent 50288eb30c
commit ae908ee23d
14 changed files with 1824 additions and 1 deletions
+15
View File
@@ -0,0 +1,15 @@
#[derive(Debug, Clone)]
pub enum Expr {
IntLiteral(i32),
Instruction(InstructionKind, Vec<Expr>),
// You might have a variant for sublists if needed,
// or keep it all in the same structure.
}
#[derive(Debug, Clone)]
pub enum InstructionKind {
// e.g. Plus, Minus, Mult, etc.
Plus,
Minus,
Mult,
}