Expand description
Lucia Language Compiler and VM.
+-------+ +--------+ +----------+
str -> | lexer | - Tokens -> | parser | - AST -> | analyzer |
+-------+ +--------+ +----------+
|
+----- AST with semantic information ------+
|
v
+---------+ +-----------------------+
| codegen | - Code -> | Lucia Virtual Machine |
+---------+ +-----------------------+
§Examples
use lucia_lang::{compiler::code::Code, Lucia};
let input = r#"
import std::io::{println}
println("Hello World!")
"#;
let code = Code::try_from(input).unwrap();
let mut lucia = Lucia::new();
lucia.run_code(code);
Re-exports§
pub use context::*;
Modules§
- compiler
- The Lucia lang compiler.
- context
- errors
- Errors of this crate.
- frame
- libs
- The Lucia Standard Library.
- meta_
ops - The meta method used in lucia lang.
- objects
- The Lucia Objects.