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

Model lexer is still wrong #15883

Closed
2 of 7 tasks
emberian opened this issue Jul 21, 2014 · 2 comments · Fixed by #24620
Closed
2 of 7 tasks

Model lexer is still wrong #15883

emberian opened this issue Jul 21, 2014 · 2 comments · Fixed by #24620
Labels
A-grammar Area: The grammar of Rust metabug Issues about issues themselves ("bugs about bugs")

Comments

@emberian
Copy link
Member

Tracking issue for all known problems with the lexer.

Todo:

@emberian emberian self-assigned this Jul 21, 2014
alexcrichton added a commit to alexcrichton/rust that referenced this issue Dec 30, 2014
I would like to look into some issues related to the model lexer  rust-lang#15883.

I stumbled upon 2 minor problems when I tried running the lexer tests:

* antlr did not put the generated files in the correct directory
* grammer/verify.rs did not work with the most recent version of rust

With these changes (and setting CLASSPATH=/usr/share/java/antlr-4.4-complete.jar:$CLASSPATH) I was able to execute the tests.

Note that I just fixed the syntax errors and added `None` as 2. argument of `Literal`. I am not sure if this is correct however. I still have to take a closer look at what verify.rs actually does. Are there any helpful pointers?
@fhahn
Copy link
Contributor

fhahn commented Feb 4, 2015

Does it stilll make sense to keep the antlr lexer after the flex/bison parser was added in #21452 ?

@emberian
Copy link
Member Author

emberian commented Feb 4, 2015

I initially wrote this lexer to serve as the reference because it is far simpler than the flex one.

@emberian emberian removed their assignment Mar 26, 2015
bors added a commit that referenced this issue Apr 21, 2015
steveklabnik added a commit to steveklabnik/rust that referenced this issue May 7, 2015
…, r=alexcrichton

I know this is the most trivial thing since it's *just* the model lexer, not the real lexer, but [it is simpler to read](rust-lang#15883 (comment)) and it'd be great if it was up to date but [it's been rotting](rust-lang#22379) and this is a tiny bit of that.

Thanks!!!!!!
steveklabnik added a commit to steveklabnik/rust that referenced this issue May 7, 2015
…, r=alexcrichton

I know this is the most trivial thing since it's *just* the model lexer, not the real lexer, but [it is simpler to read](rust-lang#15883 (comment)) and it'd be great if it was up to date but [it's been rotting](rust-lang#22379) and this is a tiny bit of that.

Thanks!!!!!!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-grammar Area: The grammar of Rust metabug Issues about issues themselves ("bugs about bugs")
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants