in reply to Re: Parsing and executing a psuedo-language
in thread Parsing and executing a psuedo-language

how would one introduce order of operations? In the language definition, or somewhere else? No order of operations
1+2*3 = 9

Proper order of operations 1+2*3 = 7

Others may call it order of precedence... I learned it as PEMDAS in school, parens, exponents, mult, div, add, subtract

                - Ant
                - Some of my best work - (1 2 3)

  • Comment on Re^2: Parsing and executing a psuedo-language

Replies are listed 'Best First'.
Re^3: Parsing and executing a psuedo-language
by samtregar (Abbot) on May 25, 2005 at 21:56 UTC
    This is running in a FastCGI so if the module takes a little while to initiate, that is fine... the language rules could be loaded at initialization too, I assume... If it takes a second or so to parse after all that, that is fine...

    I think Parse::RecDescent should be fine then.

    how would one introduce order of operations? In the language definition, or somewhere else?

    I don't know what you mean by "order of operations".

    -sam