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

Backport new parser AST syntaxes to mainline for v1 testing support #1029

Closed
TwitchBronBron opened this issue Jan 24, 2024 · 3 comments
Closed
Milestone

Comments

@TwitchBronBron
Copy link
Member

We really want to start having teams test out the v1.0.0 branch of code, but there are many places that require explicit typecasting to work (or a few other slight additions to the AST Parser).

To make it easier for teams to migrate (or even just test out) the v1 branch, it would be nice to start adding the new syntax to the master branch. So that way teams can install v1 alphas, add a bunch of type casting or other as <whatever> items in their code, then remove v1 alpha and their code still validates properly.The transpiler in master would just strip out these new AST items for now.

This would go a long way in allowing teams to test v1, and should be a minimal amount of work.

@TwitchBronBron TwitchBronBron added this to the v1.0.0 milestone Jan 24, 2024
@markwpearce
Copy link
Collaborator

I think this is the list of syntax changes:

  • typed arrays (eg. string[])
  • type casts (eg. x = y as SomeType)
  • allowing built-in interfaces & custom component names as types
  • allowing union types (eg. sub foo(x as string or integer))

@TwitchBronBron
Copy link
Member Author

Yeah that's all I can think of.

@markwpearce
Copy link
Collaborator

markwpearce commented Jan 30, 2024

closed with #1034

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

No branches or pull requests

2 participants