Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Last active January 29, 2017 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deque-blog/d196d36e8d7432be1786a0804b16cb42 to your computer and use it in GitHub Desktop.
Save deque-blog/d196d36e8d7432be1786a0804b16cb42 to your computer and use it in GitHub Desktop.
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