SpookyFM / hscript

Automatically exported from code.google.com/p/hscript
0 stars 0 forks source link

compiling error with some options #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

Attachments:

GoogleCodeExporter commented 9 years ago
Oops, sorry.
This issue already was here and patch was attached.

Original comment by Ed.Ryz...@gmail.com on 17 Sep 2011 at 8:16

GoogleCodeExporter commented 9 years ago

Original comment by ncanna...@gmail.com on 24 May 2012 at 9:53