Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Haxe Language Support #110

Draft
wants to merge 21 commits into
base: master
Choose a base branch
from

Conversation

piboistudios
Copy link

@piboistudios piboistudios commented Sep 30, 2021

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 API; e.g. from a .NET class library)

To-Do:

  • Parsing
    • Enums
    • Abstracts
    • Interfaces
    • Enum Abstracts
    • Multiple var declarations
    • Generic module decls
  • Type-Checking
    • Interfaces
    • Enums (?)
    • Abstracts
    • Macro
  • Interpreting (macro)
    • Enums
    • Pattern-matching
      • Structure-matching
      • Array matching
      • Enum Matching
      • Guards
      • Or patterns
      • Variable Capture
      • Extractors
    • Abstracts
    • Macros

@piboistudios piboistudios marked this pull request as draft October 1, 2021 10:44
@Simn
Copy link
Member

Simn commented Oct 2, 2021

I don't really want to stop you, but please note that I don't know if we actually want to extend hscript like this...

@piboistudios
Copy link
Author

piboistudios commented Oct 2, 2021

I don't really want to stop you, but please note that I don't know if we actually want to extend hscript like this...

This is really more an effort at making hscript a viable Haxe-in-Haxe parser/type-checker (and interpreter/eval runtime), as I am using hscript for hxgenPE (and believe me, there were many other considerations... hscript is definitely the closest to a full Haxe-in-Haxe solution here, mainly because it has the workings of an interpreter and type checker for a complete Haxe subset; I could have used hxparse and check style, but how then would I implement macros? Writing yet another eval platform, basically, is the answer to that question).

Also, I like the prospect of using hscript as a unified runtime codegen solution (much like Reflection.Emit/LINQ, but better because working with those is ugly, and not Haxe) that could be used for all new haxe-in-haxe platforms, assuming they use the same approach as hxgenPE.

I think, even if this draft is never merged, it will be referenced elsewhere at some point in the future (e.g. some new Haxe-in-Haxe compiler repo..)

@skial skial mentioned this pull request Oct 6, 2021
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants