public class VeniceInterpreter
extends java.lang.Object
| Constructor and Description |
|---|
VeniceInterpreter() |
| Modifier and Type | Method and Description |
|---|---|
Env |
createEnv(java.io.PrintStream stdout) |
VncVal |
eval_ast(VncVal ast,
Env env) |
VncVal |
EVAL(VncVal orig_ast,
Env env) |
boolean |
is_macro_call(VncVal ast,
Env env)
Returns true if ast is a list that contains a symbol as the first element
and that symbol refers to a function in the env environment and that
function has the is_macro attribute set to true.
|
static boolean |
is_pair(VncVal x) |
VncVal |
macroexpand(VncVal ast,
Env env)
Recursively expands a macro.
|
java.lang.String |
PRINT(VncVal exp) |
static VncVal |
quasiquote(VncVal ast) |
VncVal |
RE(java.lang.String script,
java.lang.String filename,
Env env) |
VncVal |
READ(java.lang.String script,
java.lang.String filename) |
public VncVal READ(java.lang.String script, java.lang.String filename)
public static boolean is_pair(VncVal x)
public boolean is_macro_call(VncVal ast, Env env)
ast - astenv - envpublic VncVal macroexpand(VncVal ast, Env env)
ast - astenv - envpublic java.lang.String PRINT(VncVal exp)
public Env createEnv(java.io.PrintStream stdout)