Waxeye Parser Generator for the Haxe Language Target#43
Conversation
There was a problem hiding this comment.
Thanks darmie for doing this! :)
I haven't taken a detailed look yet, but jiust some things I noticed skimming through.
- There are some extra files and changes which are checked in that should be deleted, like:
.vscode/tasks.json
edit to build/exe.bat
lib/*.dll
-
Some changes probably belong in a separate pull request, like:
src/waxeye/header.txt
test/java/Example.java -
Some commented out code in Continuations.hx:35 and ParseError.hx:42, Util.hx:2,4
-
ParseError.hx:57 also has a 'trace', maybe accidental?
|
@jishi9 Thanks, those were not supposed to make it to the PR, I would make neccessary corrections and push. |
|
@glebm I'll work on the |
|
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. |
|
@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.waxeyeGenerated 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-sampleBuild and Run Project
Tested and Works on the following Haxe supported Targets
It is expected to work on all Haxe supported targets