Closed Gama11 closed 8 years ago
Did you try that with the development version? I'm pretty sure I have parsed the entire standard library with haxeparser.
The development version of what, Haxe? I'm currently on 3.2.0.
Of haxeparser
There doesn't really seem to be a development version right now, since master is up to date with the latest haxelib release? And haxe-checkstyle uses that version (3.2.0).
Oh, I didn't remember I actually made a haxelib release at some point.
This actually works as expected, if you check Std.hx you'll find that the message you're seeing is the one coming from the #error
itself. Try defining "cross" via https://github.com/Simn/haxeparser/blob/master/src/haxeparser/HaxeParser.hx#L259.
P.S.: I just checked, haxeparser makes it through the entire std directory with the defines "cross", "scriptable" and "unsafe". See https://github.com/Simn/haxeparser/blob/master/test/TestStd.hx.
P.S.2: If you know how to we can add that to travis by the way. All it requires is adding this with the correct path to build.hxml:
-D haxe_std_path=C:\github\haxe\std
Discovered this when running haxe-checkstyle on the std lib. Seems like haxeparser simply doesn't know about
#error
.