I am try to learn in depth how Haxe backends are working and created, less documentation is available, and I think that knowing the internals will give the ability to solve many questions.
As well as I am thinking about a go generator, and a pascal generator…
I see that craxe (nim) is overriding a class BaseGenerator,
Can anyone point to some existing documentation in this noseh
If you would like guidance on a go generator for Haxe, I can help as I know how a lot of Go language features can be supported in Haxe (working on a project that compiles Go → Haxe)
I think the best documentation you will find is the talks by the lua target creator, I think there is a few other talks as well, at the moment this is the one I have found: "Shooting for the Moon: Haxe lands on Lua" by Justin Donaldson - YouTube
He said at one point that you can learn a lot by reading the commits of the Haxe lua target.
It seems if you want a very well supported Haxe target it’s best to write it in Ocaml inside the Haxe compiler.
Yes, the video is very informative.
I’ve reviewed the GitHub commits seems to be a lot of work, not sure I could do it on my own.
In terms of expressions and operators I guess Golang is more flexible and will not have all issues he had with Lua.
I wonder if this mentioned approach will be easier to implement if not that pretty