Sha256: 82f5f274c1996170f02ffef71111ccc204af84ddcd04a561da7111505a6b9706
Contents?: true
Size: 366 Bytes
Versions: 87
Compression:
Stored size: 366 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 { } pub fn stack(&self) -> Vec<Value> { } pub fn eval(&mut self, input: &str) -> ForthResult { } }
Version data entries
87 entries across 87 versions & 1 rubygems