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

[TODO] Slightly better hyphen support #2

Open
mesalu opened this issue Sep 5, 2020 · 0 comments
Open

[TODO] Slightly better hyphen support #2

mesalu opened this issue Sep 5, 2020 · 0 comments

Comments

@mesalu
Copy link
Owner

mesalu commented Sep 5, 2020

Current grammar doesn't support a hyphen as part of a term (which becomes relevant on the very first term, or on terms following an operator), so things like the following would be rejected:

  • -2 + d20
  • 2d10 + -5

The grammar should be reworked (and how the bot acts on the parse nodes for that matter) to permit tighter binding of the hyphen.
(Negative n-values for diecasts should still be illegal.)

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

1 participant