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

Version Path
trackler-2.2.1.159 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.158 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.157 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.156 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.155 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.154 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.153 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.152 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.151 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.150 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.149 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.148 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.147 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.146 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.145 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.144 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.143 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.142 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.141 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.140 tracks/rust/exercises/forth/src/lib.rs