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

Handle range in model lexer correctly #15877 #20310

Merged
merged 1 commit into from
Dec 30, 2014

Conversation

fhahn
Copy link
Contributor

@fhahn fhahn commented Dec 29, 2014

This patch for #15877 uses Antlr's input lookahead (_input.LA(1) != '.') to solve the conflict between the LIT_FLOAT and the range syntax.

Note that in order to execute the grammar tests, #20245 should land first.

@rust-highfive
Copy link
Collaborator

r? @huonw

(rust_highfive has picked a reviewer for you, use r? to override)

@huonw
Copy link
Member

huonw commented Dec 29, 2014

r? @cmr

@huonw huonw assigned emberian and unassigned huonw Dec 29, 2014
@emberian
Copy link
Member

This is an extremely unfortunate aspect of our lexical syntax...

alexcrichton added a commit to alexcrichton/rust that referenced this pull request Dec 30, 2014
This patch for rust-lang#15877 uses Antlr's input lookahead (`_input.LA(1) != '.'`) to solve the conflict between the LIT_FLOAT and the range syntax.

Note that in order to execute the grammar tests, rust-lang#20245 should land first.
@bors bors merged commit 808945c into rust-lang:master Dec 30, 2014
@fhahn fhahn deleted the issue-15877-model-lexer-range branch December 30, 2014 12:11
@brson
Copy link
Contributor

brson commented Jan 5, 2015

@fhahn Woo! I'm glad somebody is maintaining this. I swear we will start regression testing it at some point.

@fhahn
Copy link
Contributor Author

fhahn commented Jan 5, 2015

I think at the moment, about 30-40 lexer tests are still failing. I think most problems should be covered by the issues mentioned in #15883.

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.

6 participants