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

Math and comparisons #23

Merged
merged 51 commits into from
Feb 2, 2024
Merged

Math and comparisons #23

merged 51 commits into from
Feb 2, 2024

Conversation

jaredoconnell
Copy link
Contributor

Changes introduced with this PR

This PR:

  • Adds missing literals (bool and float)
  • Adds binary math, comparison, and logical operators
  • Adds unary operators (negation and not)

For the convenience of the reader, I created comments that show the tree structure in the grammar section.

Things to note:

  • Typing is struct with binary operations. If you want to mix types, you need to use a cast function.

By contributing to this repository, I agree to the contribution guidelines.

jaredoconnell

This comment was marked as resolved.

webbnh

This comment was marked as resolved.

webbnh

This comment was marked as resolved.

webbnh

This comment was marked as resolved.

webbnh

This comment was marked as resolved.

webbnh

This comment was marked as resolved.

webbnh

This comment was marked as resolved.

Copy link
Contributor

@webbnh webbnh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@jaredoconnell jaredoconnell merged commit 2499906 into main Feb 2, 2024
2 checks passed
@jaredoconnell jaredoconnell deleted the math-and-comparisons branch February 2, 2024 16:25
This was referenced May 15, 2024
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.

4 participants