sencha-lang/Sencha-lang/Tests/TestASTInspector.cpp

39 lines
821 B
C++
Raw Normal View History

/*
* TestASTInspector.cpp
*
* Created on: Dec 18, 2012
* Author: att
*/
#include "TestASTInspector.h"
TestASTInspector::TestASTInspector() {
// TODO Auto-generated constructor stub
}
TestASTInspector::~TestASTInspector() {
// TODO Auto-generated destructor stub
}
std::string TestASTInspector::test_inspecting_basic_expression()
{
BasicExpression * be = build_basic_expression("+", SenchaObject(9), SenchaObject(122));
}
virtual std::string TestASTInspector::all_tests()
{
}
BasicExpression * TestASTInspector::build_basic_expression(std::string oper, SenchaObject arg1, SenchaObject arg2)
{
BasicExpression * be = new BasicExpression(NULL);
be->set_operator(oper);
be->set_left_operand(new ConstantExpression(be, arg1));
be->set_right_operand(new ConstantExpression(be, arg2));
return be;
}