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

Add integer literal's grammar #108

Merged
merged 2 commits into from
Sep 23, 2017

Conversation

brauliobz
Copy link
Contributor

Part of #84

Copy link
Contributor

@Havvy Havvy left a comment

Choose a reason for hiding this comment

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

LGTM other than the literals with underscores.

src/tokens.md Outdated
> HEX_LITERAL :
> &nbsp;&nbsp; `0x` (HEX_DIGIT|`_`)<sup>\*</sup> HEX_DIGIT (HEX_DIGIT|`_`)<sup>\*</sup>
>
> BIN_DIGIT : [`0`-`1` `_`]
Copy link
Contributor

Choose a reason for hiding this comment

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

As you have the or underscore in BIN_LITERAL, there shouldn't be an underscore in BIN_DIGIT or the other digits.

@Havvy Havvy merged commit 4b358ac into rust-lang:master Sep 23, 2017
@Havvy
Copy link
Contributor

Havvy commented Sep 23, 2017

💟 Thanks!

@brauliobz brauliobz deleted the grammar_integer_literals branch September 25, 2017 11:31
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.

2 participants