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

breaking syntax changes! #24

Merged
merged 1 commit into from
Jun 8, 2024
Merged

breaking syntax changes! #24

merged 1 commit into from
Jun 8, 2024

Conversation

NotAFlyingGoose
Copy link
Member

  • added parenthetical expressions
  • arrays literals are now created with Type.[item1, item2, itemn]
  • struct literals are now created with Type.{ field1 = value1, field2 = value2, fieldn = valuen }
  • array declarations (array types) and struct declarations have remained unchanged, and the parser will detect and help correct older syntax
  • few more little things + bug fixes

there are more changes I want to make but I'm keeping this commit to syntax related changes only (other than a few bugs)

- added parenthetical expressions
- arrays literals are now created with `Type.[item1, item2, itemn]`
- struct literals are now created with `Type.{
    field1 = value1,
    field2 = value2,
    fieldn = valuen
  }`
- array declarations (array types) and struct declarations have remained
  unchanged, and the parser will detect and help correct older syntax
- few more little things + bug fixes

there are more changes I want to make but I'm keeping this commit to
syntax related changes only (other than a few bugs)
@NotAFlyingGoose NotAFlyingGoose merged commit 52489f0 into master Jun 8, 2024
3 checks passed
@NotAFlyingGoose NotAFlyingGoose deleted the syntax-changes branch June 8, 2024 16:10
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.

1 participant