[rust-dev] How are negative int/float literals handled during lexing/parsing?

2016-01-27 Thread Johan Tibell
Hi! I'm trying to read the compiler code (mostly because I'm curious) and right now I'm trying to understand the handling of negative integer/float literals. In token.rs we have: pub enum Lit { ... Integer(ast::Name), Float(ast::Name), ... } So at this st

Re: [rust-dev] How are negative int/float literals handled during lexing/parsing?

2016-01-27 Thread Starbuck Johnson
If you do make a post please post the link to the mailing list. I would like to know the answer to this question too. On Wed, Jan 27, 2016, 10:41 AM Kenneth Adam Miller < kennethadammil...@gmail.com> wrote: > Hey, > > Without answering your question, I think you might be better off posting > your

Re: [rust-dev] How are negative int/float literals handled during lexing/parsing?

2016-01-27 Thread Johan Tibell
I posted it to http://discuss.rust-lang.org/. Thanks! On Wed, Jan 27, 2016 at 5:41 PM, Kenneth Adam Miller < kennethadammil...@gmail.com> wrote: > Hey, > > Without answering your question, I think you might be better off posting > your question at reddit.com/r/rust because this mailing list has v

Re: [rust-dev] How are negative int/float literals handled during lexing/parsing?

2016-01-27 Thread Johan Tibell
Posted move to http://internals.rust-lang.org/t/how-are-negative-int-float-literals-handled-during-lexing-parsing/3120 as per this mailing list's auto reply instructions. On Wed, Jan 27, 2016 at 5:43 PM, Johan Tibell wrote: > I posted it to http://discuss.rust-lang.org/. Thanks! > > On Wed, Jan

Re: [rust-dev] How are negative int/float literals handled during lexing/parsing?

2016-01-27 Thread Kenneth Adam Miller
Hey, Without answering your question, I think you might be better off posting your question at reddit.com/r/rust because this mailing list has very low participation. On Wed, Jan 27, 2016 at 11:18 AM, Johan Tibell wrote: > Hi! > > I'm trying to read the compiler code (mostly because I'm curious