refactor(tazjin/rlox): Move entrypoints into interpreters
Right now this introduces a simple mechanism to flip between the interpreters. Change-Id: I92ee920c53d76ab6b664ac671993a6d6426af61a Reviewed-on: https://cl.tvl.fyi/c/depot/+/2412 Reviewed-by: tazjin <mail@tazj.in> Tested-by: BuildkiteCI
This commit is contained in:
parent
861c0f0c79
commit
30a6fcccee
5 changed files with 69 additions and 48 deletions
|
|
@ -2,8 +2,8 @@ use std::fmt;
|
|||
use std::time::{SystemTime, UNIX_EPOCH};
|
||||
|
||||
use crate::errors::Error;
|
||||
use crate::treewalk::interpreter::Value;
|
||||
use crate::parser::Literal;
|
||||
use crate::treewalk::interpreter::Value;
|
||||
|
||||
pub trait Builtin: fmt::Debug {
|
||||
fn arity(&self) -> usize;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue