Last active
March 30, 2017 15:37
-
-
Save deque-blog/0650ec9e5d0619710eef46d6c9260e9e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
expression e = add({ | |
cst(1), | |
cst(2), | |
mul({cst(0), var("x"), var("y")}), | |
mul({cst(1), var("y"), add({cst(2), var("x")})}), | |
add({cst(0), var("x")}) | |
}); | |
std::cout << para<std::string>(print_infix, e) << std::endl; | |
// Outputs => | |
1 + 2 + 0 * x * y + 1 * y * (2 + x) + 0 + x |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment