Skip to content

Instantly share code, notes, and snippets.

@sejr
Last active May 29, 2016 03:00
Show Gist options
  • Select an option

  • Save sejr/eeb89b00a3b0a4619d3c3dbd146454d2 to your computer and use it in GitHub Desktop.

Select an option

Save sejr/eeb89b00a3b0a4619d3c3dbd146454d2 to your computer and use it in GitHub Desktop.
class ExpressionAST {
public:
virtual ~ExpressionAST() {}
};
// Function call
class FunctionCallAST : public ExpressionAST {
std::string m_callee;
std::vector<std::unique_ptr<ExpressionAST> > m_arguments;
public:
FunctionCallAST(
const std::string &callee,
std::vector<std::unique_ptr<ExpressionAST> > arguments) :
m_callee(callee), m_arguments(std::move(arguments)) {}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment