[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

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 <johan.tib...@gmail.com> wrote: > I posted it to http://discuss.rust

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

2016-01-27 Thread Johan Tibell
s mailing list has very low > participation. > > On Wed, Jan 27, 2016 at 11:18 AM, Johan Tibell <johan.tib...@gmail.com> > wrote: > >> Hi! >> >> I'm trying to read the compiler code (mostly because I'm curious) and >> right now I'm trying t