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.34 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.33 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.32 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.31 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.30 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.29 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.28 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.27 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.26 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.25 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.24 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.23 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.22 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.21 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.20 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.19 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.18 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.17 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.16 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.15 tracks/rust/exercises/forth/src/lib.rs