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
37
38
39
//! A BASIC-like language interpreter and virtual machine.
//!
//! This crate provides a parser, compiler, and virtual machine for a simple
//! BASIC-like programming language. It can be used to parse and execute
//! programs written in this language.
//!
//! # Example
//!
//! ```
//! use verbena::prep;
//! use verbena::parse;
//! use verbena::Process;
//!
//! fn main() -> Result<(), Box<dyn std::error::Error>> {
//! // Prepare the source code
//! let source = "PRINT \"Hello, world!\"";
//! let chars = prep(source);
//!
//! // Parse the program
//! let program = parse(&chars)?;
//!
//! // Execute the program
//! let mut process = Process::new(program);
//! process.run()?;
//!
//! Ok(())
//! }
//! ```
/// Re-export all error handling types and functions.
/// Parser module for converting source code to bytecode.
/// Virtual machine for executing compiled programs.
pub use *;
pub use *;
pub use *;