feat: add codegen, vm executor

Signed-off-by: Pakin <pakin.t@forth.co.th>
This commit is contained in:
Pakin 2026-05-25 09:05:39 +07:00
parent 8a98f29c9d
commit f9ae59c77f
15 changed files with 4632 additions and 336 deletions

View file

@ -4,3 +4,16 @@ pub mod error;
pub mod ffi_node;
pub mod node;
pub mod parser;
pub mod vm;
pub use error::ParserResult;
pub use parser::ScriptParser;
pub use ast::nodes::{
AssignmentType, BinaryOpKind, Expression, LiteralValue, Program, Statement, UnaryOpKind,
};
pub use codegen::CodeGen;
pub use codegen::rust::RustCodeGen;
pub use codegen::python::PythonCodeGen;
pub use codegen::javascript::JavaScriptCodeGen;
pub use codegen::java::JavaCodeGen;
pub use vm::{Vm, Value, VmError, Environment};