Crate tokay

source · []
Expand description

Tokay

A programming language designed for ad-hoc parsing.

Visit https://tokay.dev for more information.

Re-exports

pub use reader::Reader;
pub use value::Dict;
pub use value::List;
pub use value::Str;
pub use value::Value;
pub use vm::Accept;
pub use vm::Reject;

Modules

Tokay built-in functions

Tokay compiler, parsing a program source into a VM program

Implementation of an error object that can occur during Tokay’s program compilation or execution

Universal low-level interface to let Tokay read input from different sources.

Tokay repeat-eval-print-loop

Tokay value and object representation

Tokay virtual machine

Macros

Macro to define a Tokay program embedded in Rust code without using the Tokay parser. In fact, this macro is used to bootstrap the Tokay parser as a Tokay program itself.

Value construction macro

Structs

Tokay compiler instance

Contexts represent stack frames for parselet calls.

Programs are containers holding statics and a pointer to the main parselet.

Enums

Captures are stack items where the VM operates on.

Traits

Describes an interface to a callable object.

Functions

Compiles a Tokay source and runs the resulting program with an input stream from a &str.