feat: add codegen, vm executor
Signed-off-by: Pakin <pakin.t@forth.co.th>
This commit is contained in:
parent
8a98f29c9d
commit
f9ae59c77f
15 changed files with 4632 additions and 336 deletions
|
|
@ -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};
|
||||
Loading…
Add table
Add a link
Reference in a new issue