Using latest flashdevelop, latest haxe, latest hscript, latest everything.
Code:
var script = "1+2";
var parser = new hscript.Parser();
var program = parser.parseString(script);
var interp = new hscript.Interp();
var res = interp.execute(program);
Compile options:
-lib hscript
-lib format
-swf-version 11
-D hscriptPos
Result:
C:\Program Files\Motion-Twin\haxe\lib\hscript/1,6/hscript/Interp.hx:206:
characters 14-15 : Identifier 'c' is not part of enum hscript.Const
C:\Program Files\Motion-Twin\haxe\lib\hscript/1,6/hscript/Interp.hx:206:
characters 7-16 : hscript.Expr should be hscript.ExprDef
C:\Program Files\Motion-Twin\haxe\lib\hscript/1,6/hscript/Interp.hx:206:
characters 7-16 : { pmin : Int, pmax : Int, e : hscript.ExprDef } should be
hscript.ExprDef
C:\Program Files\Motion-Twin\haxe\lib\hscript/1,6/hscript/Interp.hx:213:
characters 14-16 : Unknown identifier : id
C:\Program Files\Motion-Twin\haxe\lib\hscript/1,6/hscript/Interp.hx:213:
characters 7-17 : hscript.Expr should be hscript.ExprDef
C:\Program Files\Motion-Twin\haxe\lib\hscript/1,6/hscript/Interp.hx:213:
characters 7-17 : { pmin : Int, pmax : Int, e : hscript.ExprDef } should be
hscript.ExprDef
C:\Program Files\Motion-Twin\haxe\lib\hscript/1,6/hscript/Interp.hx:221:
characters 12-13 : Unknown identifier : n
Attached full output.
Without "-D hscriptPos" all works good, but not compile other part of project.
Maybe I'm doing something wrong?
Original issue reported on code.google.com by Ed.Ryz...@gmail.com on 17 Sep 2011 at 6:19
Original issue reported on code.google.com by
Ed.Ryz...@gmail.com
on 17 Sep 2011 at 6:19Attachments: