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.54 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.53 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.52 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.51 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.50 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.49 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.48 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.47 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.46 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.45 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.44 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.43 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.42 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.41 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.40 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.39 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.38 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.37 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.36 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.35 tracks/rust/exercises/forth/src/lib.rs