Sha256: 4c9e6d2dc56482c8c62f2e24de6b068e6f671878c46914fd9bebd8eb16c058f3
Contents?: true
Size: 475 Bytes
Versions: 50
Compression:
Stored size: 475 Bytes
Contents
pub type Value = i32; pub type ForthResult = Result<(), Error>; pub struct Forth; #[derive(Debug, PartialEq)] pub enum Error { DivisionByZero, StackUnderflow, UnknownWord, InvalidWord, } impl Forth { pub fn new() -> Forth { unimplemented!() } pub fn stack(&self) -> Vec<Value> { unimplemented!() } pub fn eval(&mut self, input: &str) -> ForthResult { unimplemented!("result of evaluating '{}'", input) } }
Version data entries
50 entries across 50 versions & 1 rubygems