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

Parse arithmetic #14

Open
wants to merge 20 commits into
base: master
Choose a base branch
from
Open

Parse arithmetic #14

wants to merge 20 commits into from

Conversation

forivall
Copy link
Contributor

I feel like this is ready for initial PR review. There's still cleanup todo, there's still one failing arithmetic test case (but it's because it has to do with escaped newlines, which requires fixes elsewhere, to discuss), but otherwise, it works.

I also need feedback on the names of nodes; i roughly named them after estree, but the consistency changed later on as I reused existing rules.

It's also a lot looser than what zsh or bash allows, w.r.t. strings inside of arithmetic expressions -- i need to see what shellcheck bases these tests on, or if there's specific flags in bash/zsh to allow strings / concatenation in arithmetic expressions.

🎉

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