From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: From: erik quanstrom Date: Sun, 18 Feb 2007 17:40:37 -0500 To: 9fans@cse.psu.edu Subject: Re: [9fans] cc lexer bug? In-Reply-To: <31f9a933eb03172e356de753a5092e5a@plan9.jp> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: 11629efe-ead2-11e9-9d60-3106f5b1d025 On Sun Feb 18 17:08:00 EST 2007, JoelCSalomon@Gmail.com wrote: > I think you mean the one on 788. I'm far from comfortable enough with > the code here to suggest a patch, though. Certainly not comfortable > enough to incorporate it into my lexer. > sorry. i was using an older version of the lexer. line 788 is the correct one to delete. i read the current code like this [...] assert(first digit is '0'); if(not octal(c)) goto dc; while(is octal(c)) GETC(); goto ncu; // i.e. this can't be floating point. dc: /* check for floating point */ [...] ncu: /* check integer size suffixes */