Closed Upabjojr closed 5 years ago
I think that it will not be difficult to change this generator once future features of C++ are introduced. So I think this is a good start.
I am closing this PR in favour of https://github.com/symengine/symengine/pull/1497
This is an initial draft for a code generator targeting the C++ language. It is meant to work with SymEngine expressions.
The final purpose is to compile the Rubi rules by first translating them into C++.
The generated decision tree is split into multiple sub-blocks. I use C++ function pointers to simulate a Python generator (apparently coroutines are scheduled to be introduced in C++20, so not yet available).