repeat {
#cat("EVAL: ", .pr_str(ast,TRUE), "\n", sep="")
- if (!.list_q(ast)) {
- return(eval_ast(ast, env))
- }
+ if (!.list_q(ast)) { return(eval_ast(ast, env)) }
+ if (length(ast) == 0) { return(ast) }
# apply list
ast <- macroexpand(ast, env)
args <- commandArgs(trailingOnly = TRUE)
if (length(args) > 0) {
- Env.set(repl_env, "*ARGV*", new.listl(slice(list(args),2)))
+ Env.set(repl_env, "*ARGV*", new.listl(slice(as.list(args),2)))
. <- rep(concat("(load-file \"", args[[1]], "\")"))
quit(save="no", status=0)
}