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

Support all operators #21

Open
doriath opened this issue Dec 7, 2024 · 1 comment
Open

Support all operators #21

doriath opened this issue Dec 7, 2024 · 1 comment

Comments

@doriath
Copy link
Contributor

doriath commented Dec 7, 2024

https://www.nushell.sh/book/operators.html

Some of the operators on the official documentation are not currently supported by the parser. Some examples include floor division (//), mod, bit operators (like bit-or).

@InnocentZero
Copy link
Contributor

To add on (so that everything is consolidated in one place), flags for keywords like while, for etc are not supported yet.

kubouch pushed a commit that referenced this issue Jan 12, 2025
As part of #21, this PR
adds binary operators that are either symbols or single barewords. I
couldn't figure out an easy way to handle operators that span multiple
tokens, such as `starts-with`. I also didn't add `not`.

I threw in some code for `++=` but no tests. I assume we'll get to that
once we implement typechecking for assignment oeprators, which this PR
doesn't do.
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