Open darmie opened 7 years ago
@jishi9 Thanks, those were not supposed to make it to the PR, I would make neccessary corrections and push.
Could you please add tests for Haxe similar to the JavaScript tests in test/
(added in #45)?
Also, I wonder if this support Unicode when compiled to JavaScript? For the native JavaScript runtime, Unicode support is added in #47.
@glebm I'll work on the /test
and would look into how Unicode is supported in Haxe.
There's a Haxe API for ensuring Unicode support across target platforms.
Using UTF-8 is a bit inefficient in languages that use UTF-16 natively (JavaScript, Java, C#).
I was hoping Haxe had a solution for Unicode support using native String types on each platform, but looks like that is still a work in progress.
https://github.com/HaxeFoundation/haxe/issues/3072 https://try.haxe.org/#d9D04
@glebm thanks for pointing this out. My knowledge of unicode is somewhat limited. I would sleep on it and see what solutions are out there. 👍
It seems that the linked Haxe issue had been solved in 2018, so it might be worthwhile to look into this question again. I'd really find support of either Haxe (or PHP directly via #104) useful, as it is a pretty common freely hosted server side language.
@bkil waxeye has really evolved since I opened this PR. There have been lots of changes in the Haxe ecosystem too. Maybe I'll work on this again.
I have written a parser generator for Haxe based on the Javascript implementation. Parser has been tested and it's working.
Please see https://github.com/darmie/waxeye-hx-sample for full implementation of the Calculator example.
Build Waxeye source and Generate Parser code
waxeye -g haxe . grammars/calc.waxeye
Generated Code
Implementation of the calculator
How to run implementation
Download and Install Haxe
Install haxe binary from http://haxe.org
Clone Repo
git clone https://github.com/darmie/waxeye-hx-sample.git waxeye-sample
Build and Run Project
Tested and Works on the following Haxe supported Targets