Mercurial Hosting > luan
diff core/src/luan/impl/Parser.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 | 43522473599d |
children |
line wrap: on
line diff
--- a/core/src/luan/impl/Parser.java Tue Apr 19 15:54:11 2016 -0600 +++ b/core/src/luan/impl/Parser.java Wed Apr 20 20:56:08 2016 -0600 @@ -9,17 +9,17 @@ } // private final LuanSource src; + public final String text; public final String sourceName; - public final String text; private final int len; private Frame[] stack = new Frame[256]; private int frame = 0; private int iHigh; - public Parser(String sourceName,String text) { + public Parser(String text,String sourceName) { // this.src = src; + this.text = text; this.sourceName = sourceName; - this.text = text; this.len = text.length(); stack[0] = new Frame(); } @@ -78,7 +78,7 @@ } public ParseException exception(String msg) { - return new ParseException(msg,sourceName,text,i(),iHigh); + return new ParseException(msg,text,sourceName,i(),iHigh); } public ParseException exception() {