Sha256: 225b3c7fff536a5551930a64db9b2eb44c45625f353d11e02d6b7e34c83b9d10

Contents?: true

Size: 441 Bytes

Versions: 74

Compression:

Stored size: 441 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!()
    }
}

Version data entries

74 entries across 74 versions & 1 rubygems

Version Path
trackler-2.2.1.129 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.128 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.127 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.126 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.125 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.124 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.123 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.122 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.121 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.120 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.119 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.118 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.117 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.116 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.115 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.114 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.113 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.111 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.110 tracks/rust/exercises/forth/src/lib.rs
trackler-2.2.1.109 tracks/rust/exercises/forth/src/lib.rs