diff core/src/luan/impl/LuanParser.java @ 694:b620b8e1010f

remove Luan.load() allow_expression param and add Luan.eval()
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 20 Apr 2016 20:56:08 -0600
parents ca169567ce07
children 61b36d5895df
line wrap: on
line diff
--- a/core/src/luan/impl/LuanParser.java	Tue Apr 19 15:54:11 2016 -0600
+++ b/core/src/luan/impl/LuanParser.java	Wed Apr 20 20:56:08 2016 -0600
@@ -187,9 +187,9 @@
 	private final Parser parser;
 	private final Stmts top;
 
-	LuanParser(String sourceName,String sourceText) {
+	LuanParser(String sourceText,String sourceName) {
 		this.frame = new Frame();
-		this.parser = new Parser(sourceName,sourceText);
+		this.parser = new Parser(sourceText,sourceName);
 		this.top = new Stmts();
 	}
 
@@ -247,7 +247,7 @@
 	private Expr newFnExp(Stmts stmt,String name) {
 		return toFnExp( stmt, frame.upValueSymbols, name );
 	}
-
+/*
 	Class Expression() throws ParseException {
 		Spaces();
 		parser.begin();
@@ -261,7 +261,7 @@
 		}
 		return parser.failure(null);
 	}
-
+*/
 	Class RequiredModule() throws ParseException {
 		GetRequiredModule();
 		return newFnClass(top);