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

Version Path
trackler-2.2.1.14 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.13 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.12 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.11 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.10 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.9 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.8 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.7 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.6 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.5 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.4 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.3 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.2 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.1 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.0 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.0.6 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.0.5 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.0.4 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.0.3 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.0.2 tracks/rust/exercises/forth/src/lib.rs