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.1.0.37 tracks/rust/exercises/forth/src/lib.rs
trackler-2.1.0.36 tracks/rust/exercises/forth/src/lib.rs
trackler-2.1.0.34 tracks/rust/exercises/forth/src/lib.rs
trackler-2.1.0.33 tracks/rust/exercises/forth/src/lib.rs
trackler-2.1.0.32 tracks/rust/exercises/forth/src/lib.rs
trackler-2.1.0.31 tracks/rust/exercises/forth/src/lib.rs
trackler-2.1.0.30 tracks/rust/exercises/forth/src/lib.rs