Hello
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 instructions will be
contained in a char buffer, which I think I can use as the input to lex.
After the operations are made, then I just want to output/write to disk the
arrays. Is this possible using lex and bison? It seems like it should be,
but I can't quite find a way. How do I make yyparse() "see" the arrays?
Would I have to directly modify the output of bison? Thanks for any help
you can provide.
Outline:
Say c = {1,3,5,9,-8}, and instructs = "if c[1] < 54 and c[0] != 7 then c[3]
= 16" Then I would want yyparse() to change c to {1,3,5,16,-8}. Remember
that we have a lot of "c's", so I suppose one would make the substitution 1
for c[0], etc, before passing to yylex().
_______________________________________________
help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison