hscript
hscript copied to clipboard
Parser and interpreter for Haxe expressions
https://github.com/HaxeFoundation/hscript/blob/891a085f2b75acbf4700cfdffa80fb0b9532d325/hscript/Interp.hx#L627   I was able to resolve the issue, will make a PR now.
Fixes #114, tested and found no difference in the behavior of scripts.
This PR seeks to add full Haxe language support. It also adds support for custom CheckerTypes collections (so as to allow importing types from other sources than Haxe RTTI XML...
What file extension should be used for storing hscript code in a file? Some of my ideas were `.hs` (which is already used by Haskell) and `.hxs`, and I’ve seen...
Added tests to check if `var x;` and `var a, b = X;` syntax was still working. Closes #107
This works, while it shouldn't. ```hx var script = " var sum == 1; // Or any other operator? Same with `var sum > 1;` sum; "; var parser =...
Hej, I try to use both hscript on compile-time with hscript.Macro and on run-time. For run-time I use -D hscriptPos but it fails on compile-time : ``` haxe.macro.Position has no...
@ncannasse There were other issues about that last year and you've referred them to Async.hx toAsync() comment for explanation but that doesn't help all that much on how to use...
This pull is for a variation on Interp; IterativeInterp. It makes it possible to step through hscript blocks of arbitrary complexity in discrete steps while maintaining variables and so on....
While trying to follow the example code ```haxe var script = " var sum = 0; for( a in angles ) sum += Math.cos(a); sum; "; var parser = new...