Last active
January 29, 2017 14:24
-
-
Save deque-blog/d196d36e8d7432be1786a0804b16cb42 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 cst(int i) { return expression(i); }; | |
expression var(id id) { return expression(id); }; | |
expression add(std::vector<expression> const& rands) | |
{ | |
return expression(add_op<expression>{ rands }); | |
} | |
expression mul(std::vector<expression> const& rands) | |
{ | |
return expression(mul_op<expression>{ rands }); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment