This commit is contained in:
nora 2022-06-27 12:44:38 +02:00
parent 72687d4167
commit e4f0dee8a9
6 changed files with 48 additions and 33 deletions

View file

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