Hi, I am interested in parsing projects between Julia and Python.
There is a good use case for converting Python code in a symbolic computational library like
sympy into equivalent Julia forms.
Example would be converting this
inverse_fourier_transform(sqrt(pi)*exp(-(pi*k)**2), k, x) into a AST , then a low level IR that adds optimizations etc finally resulting in efficient code recognizable using Symbolics.jl or so on.
The Ast representation of Julia is pretty good, to make this work in Sympy, a wrapper can be made since there isn’t any Python equivalent library.
An example of a AST library is this ast in
lfortran which does the same for Fortran variant.
I’m not sure if this a right place to post. Is this a good feature to add related to Julia or are there already good tools for this?
Examples of various language AST’s for sympy ( sympy/sympy/parsing at master · sympy/sympy (github.com))