Crates.io | rtforth |
lib.rs | rtforth |
version | 0.6.8 |
source | src |
created_at | 2017-01-21 11:34:33.871702 |
updated_at | 2022-09-23 02:45:48.228218 |
description | Forth implemented in Rust for realtime application |
homepage | |
repository | https://github.com/chengchangwu/rtforth.git |
max_upload_size | |
id | 8156 |
size | 825,644 |
Forth implemented in Rust, designed to be embeddable in real-time applications.
Documentation in traditional Chinese at rtForth 入門.
cargo install --path ./rtf
rtf --help # Display help information.
rtf <file> # Load forth commands in <file>.
rtf lib.fth <file> # Load lib.fth before <file>.
$ rtf # Execute debug version of rtForth.
rtForth v0.6.6, Copyright (C) 2022 Mapacode Inc.
Type 'bye' or press Ctrl-D to exit.
: star
42 emit ; ok
: stars
0 ?do star loop ; ok
5 stars ***** ok
bye
rtForth is designed to be used in a real-time system. After startup most of the words other than input and output words do not use system calls.
Input and output words can be implemented by applications according to the operating system used.
See examples/simple.rs and examples/multitask.rs to get know how to embedded rtforth in a rust application.