SymPy justs uses Python's syntax, so the EBNF file for Python will give you the grammar for SymPy (it will also give you the grammar for the whole language, but you can probably reduce it to just expressions if you want).
You can get this from the Python source code (http://www.python.org/getit/source/). It's in the Grammar directory. Aaron Meurer On Sat, Nov 5, 2011 at 7:51 AM, Ricardo Martins <[email protected]> wrote: > Dear colleagues, > > I would like to know if someone have the grammar of sympy for constructing > mathematical expressions. > I am preparing a grammatical evolution program to generated functions based > on sympy expression. > Actually, I need this grammar in BNF or EBNF format, but if you have it in > other format, no problem. > > Thank you so much > Best Regards > Ricardo > > -- > You received this message because you are subscribed to the Google Groups > "sympy" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/sympy?hl=en. > -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sympy?hl=en.
