Re: [9fans] 6c bug?

2012-02-27 Thread erik quanstrom
On Tue Feb 28 02:16:04 EST 2012, bruce.el...@gmail.com wrote: > what values of p[1] do you expect the test to be of use? > > On 28 February 2012 15:40, erik quanstrom wrote: > > for p = uchar*, Nbus==256, > > > >                if((uint)p[1] >= Nbus){ > > > > generates > > > >        warning: ./m

Re: [9fans] 6c bug?

2012-02-27 Thread Bruce Ellis
what values of p[1] do you expect the test to be of use? On 28 February 2012 15:40, erik quanstrom wrote: > for p = uchar*, Nbus==256, > >                if((uint)p[1] >= Nbus){ > > generates > >        warning: ./mp.c:212 useless or misleading comparison: UCHAR >= 0x100 > > i'm pretty sure that

[9fans] 6c bug?

2012-02-27 Thread erik quanstrom
for p = uchar*, Nbus==256, if((uint)p[1] >= Nbus){ generates warning: ./mp.c:212 useless or misleading comparison: UCHAR >= 0x100 i'm pretty sure that 6c is incorrectly issuing the diagnostic before applying the cast. (the cast is there to shut the compiler up.) - erik

Re: [9fans] Config File parsing

2012-02-27 Thread Nick LaForge
Are you certain you want to use Lex? If no, you may like this fascinating and instructive lecture by Rob Pike, which solves a lexing problem using Golang: http://www.youtube.com/watch?v=HxaD_trXwRE If you have "The Unix Programming Environment" handy, you will also find a lucid tutorial of Lex an

Re: [9fans] Config File parsing

2012-02-27 Thread arnold
O'Reilly's "lex & yacc" is somewhat more user-friendly a reference than the dragon book, although the latter certainly has its value. :-) Arnold

Re: [9fans] Config File parsing

2012-02-27 Thread Jack Norton
On 2/27/2012 7:18 AM, erik quanstrom wrote: For this could someone please tell me how to write a lex and yacc program. you may wish to consult the dragon book. just google it. - erik FYI I just bought my copy on Amazon used for $3.48 USD ($3.99 shipping). It is a hardcopy in great sh

Re: [9fans] Config File parsing

2012-02-27 Thread erik quanstrom
> For this could someone please tell me how to write a lex and yacc > program. you may wish to consult the dragon book. just google it. - erik

[9fans] Config File parsing

2012-02-27 Thread Mohanasundaram VIT
global{ verb test rl0 rand (or) rand =0 [Two cases] } thread{ frac_value = (0.2,(0.1,0.5)) random_thread } OUTPUT should be this: If i give the above input to lex and yacc, based upon the checking of [ rand (or) rand=0 ] if it is "rand", then it should print as " ve

Re: [9fans] GSoC 2012

2012-02-27 Thread JIghtuse
On Fri, Feb 24, 2012 at 11:30 PM, Calvin Morrison wrote: > > > On 24 February 2012 11:23, Devon H. O'Dell wrote: > >> Op 24 februari 2012 11:19 heeft Calvin Morrison >> het volgende geschreven: >> > >> > >> > On 24 February 2012 11:13, Anthony Sorace wrote: >> >> >> >> Folks: >> >>The f