brainfuck interpreter
brainfuck cli rust
5

Configure Feed

Select the types of activity you want to include in your feed.

evaluator: switched from unreachable macro to debug_assert

better middle ground. also the unreachable line itself was...
unreachable

digi.rip (Jun 10, 2026, 4:34 PM EDT) 00bd34ad bda2a470

+1 -1
+1 -1
src/evaluator.rs
··· 466 466 } 467 467 468 468 _ => { 469 + debug_assert!(false, "tokenizer should have filtered this non-BF chars"); 469 470 Err(RuntimeError::InvalidToken { 470 471 src: NamedSource::new(Arc::clone(&self.filename), Arc::clone(&self.source)), 471 472 span: (current.offset, 1).into(), 472 473 })?; 473 - unreachable!("tokenizer should have filtered this"); 474 474 } 475 475 } 476 476