1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
//! This crate implements a Forth language interpreter in Rust that can be
//! embedded in Rust applications as a scripting language.
//!
//! Also provided is a Forth executable [rtf] as an example application
//! using this library.
//!
//! [rtf]: https://crates.io/crates/rtf

extern crate approx;
pub extern crate hibitset;
extern crate uom;

pub mod core;
pub mod env;
pub mod exception;
pub mod facility;
pub mod file_access;
pub mod float;
pub mod loader;
pub mod memory;
mod mock_vm;
pub mod output;
pub(crate) mod parser;
pub mod tools;
pub mod units;

use core::Core;
use exception::Exception;
use memory::Memory;
use std::result;

pub const TRUE: isize = -1;
pub const FALSE: isize = 0;
pub const NUM_TASKS: usize = 5;

pub type Result = result::Result<(), Exception>;