o
c
This commit is contained in:
nora 2022-07-04 12:44:40 +02:00
parent 8d03964f76
commit f7e862a8fd
6 changed files with 50 additions and 100 deletions

View file

@ -228,9 +228,7 @@ impl InterpretCtx {
}
}
// tag::interpret[]
pub fn interpret(stmts: Vec<Stmt>) -> Result<()> {
// end::interpret[]
let mut ctx = InterpretCtx {
memory: vec![0; MEMORY_SIZE],
registers: [0; 16],