Re: Using the "output" from yacc

2009-01-27 Thread Hans Aberg
On 27 Jan 2009, at 01:14, Alex Ryu wrote: I have a series of large arrays of floating point data. "Attached" to each array is a smaller array of integers, call it c. What I would like to do is perform operations on c of this nature: if c[1] < 54 and c[13] != 7 then c[3] = 16, etc. These

Re: Using the "output" from yacc

2009-01-27 Thread Alex Ryu
On Tue, Jan 27, 2009 at 8:59 AM, Hans Aberg wrote: > On 27 Jan 2009, at 01:14, Alex Ryu wrote: > > I have a series of large arrays of floating point data. "Attached" to >> each >> array is a smaller array of integers, call it c. What I would like to do >> is perform operations on c of this na

Re: Using the "output" from yacc

2009-01-27 Thread Hans Aberg
On 27 Jan 2009, at 16:25, Alex Ryu wrote: Thank you for your reply. I would prefer to keep everything in the project straight C for various reasons. Your idea is interesting, however, I would prefer things to be the other way around - my main function to only call yyparse to parse the in

Re: Using the "output" from yacc

2009-01-27 Thread Alex Ryu
One last question, and then I think I understand. I have read the various examples in the manual, and none of them look like they are doing anything "external," so to speak. The following is copied from the mfcalc example, grammar section: exp: NUM{ $$ =

Re: Using the "output" from yacc

2009-01-27 Thread Hans Aberg
On 27 Jan 2009, at 17:40, Alex Ryu wrote: PS Is top posting or bottom posting the custom here? The style I use, inserting comments, is normal on all technical lists of some age that I know - easier to follow technical details. Top posting is a younger style. Why do you top post, if you f

Re: Using the "output" from yacc

2009-01-27 Thread Alex Ryu
On Tue, Jan 27, 2009 at 12:36 PM, Hans Aberg wrote: > On 27 Jan 2009, at 17:40, Alex Ryu wrote: > PS Is top posting or bottom posting the custom here? >>> >>> The style I use, inserting comments, is normal on all technical lists of >>> some age that I know - easier to follow technical details

Re: Using the "output" from yacc

2009-01-27 Thread Hans Aberg
On 27 Jan 2009, at 20:11, Alex Ryu wrote: PS Is top posting or bottom posting the custom here? The style I use, inserting comments, is normal on all technical lists of some age that I know - easier to follow technical details. Top posting is a younger style. Why do you top post, if you