feat(tazjin/rlox): Bootstrap VM for Lox bytecode
Change-Id: I479e20bf2087e5c4aa20e31b364c57ed0d961bcf Reviewed-on: https://cl.tvl.fyi/c/depot/+/2416 Tested-by: BuildkiteCI Reviewed-by: tazjin <mail@tazj.in>
This commit is contained in:
parent
b1d0e22b1f
commit
7fb93fb490
7 changed files with 89 additions and 25 deletions
|
|
@ -2,8 +2,8 @@ use std::fmt;
|
|||
use std::time::{SystemTime, UNIX_EPOCH};
|
||||
|
||||
use crate::treewalk::errors::Error;
|
||||
use crate::treewalk::parser::Literal;
|
||||
use crate::treewalk::interpreter::Value;
|
||||
use crate::treewalk::parser::Literal;
|
||||
|
||||
pub trait Builtin: fmt::Debug {
|
||||
fn arity(&self) -> usize;
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
use crate::*;
|
||||
|
||||
mod errors;
|
||||
pub mod interpreter;
|
||||
mod parser;
|
||||
mod resolver;
|
||||
mod scanner;
|
||||
pub mod interpreter;
|
||||
|
||||
pub fn main() {
|
||||
let mut args = env::args();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue