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

Implement basic method syntax and i16 math functions #668

Merged
merged 1 commit into from
Mar 4, 2024

Conversation

dfellis
Copy link
Member

@dfellis dfellis commented Mar 4, 2024

Two of the tests for the i16 math used methods, so that's why I went with them to test the method syntax.

It currently only supports "direct" method access, not via properties, so something like http.request("https://google.com") would work but calling a method off of a property of a variable name would not (eg http.request("https://google.com").response.status() would fail to compile).

I've also set up grouping syntax (eg (1 + 2)) but since operators don't exist yet, that's not actually tested, yet.

@dfellis dfellis self-assigned this Mar 4, 2024
@dfellis
Copy link
Member Author

dfellis commented Mar 4, 2024

67 passed; 144 failed

Progress! :)

@dfellis dfellis merged commit 17c51e0 into main Mar 4, 2024
1 of 2 checks passed
@dfellis dfellis deleted the basic-method-syntax branch March 4, 2024 20:30
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