Nick
Many thx ... I think not 'getting' the ChainOperator plus Brads post
got me sorted.
On Jul 9, 1:10 am, Nicholas Blumhardt <
nicholas.blumha...@gmail.com>
wrote:
> This parser shows an example of expressions with support for parens:
>
>
http://code.google.com/p/sprache/source/browse/LinqyCalculator/Expres...
>
> Cheers,
> Nick
>
> On 9 July 2011 09:50, Brad Williams <
brad...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Logically I think this would do it:
>
> > A Val can be:
> > a variable like a or x
> > OR
> > a left paren + a Val + a right paren
> > OR
> > a Combination
>
> > A Combination can be:
> > a Val + an Operator + Val
>
> > An Operator can be:
> > +
> > OR
> > *
>
> > On Fri, Jul 8, 2011 at 10:35 AM, Simon Woods <
simonwoods2...@gmail.com>