Iterate a function over an array

2006-07-24 Thread Nicholas Crosbie
I'm new to the world of parsers. I want to pass an expression to Bison and have that expression return code which is then executed on each member of an array. So with an array like such: [x(1), x(2), x(3)...x(n-1)] x(i)' = FUNCTION(x(i)) My aims is to supply a FUNCTI

Boolean sets

2005-12-19 Thread Nicholas Crosbie
I would like to set a a Bison project which processes a an expresssion of the form gate = r3 AND r5 NOT (r5 OR r7) i.e. a Boolean expression of arbitrary length/complexity, where r3, r5 etc. are variables containing integer data (e.g. an array, or stored as a set or list). My prefered option woul