Repeat works as it should. Assigning arguments to functions.

functions
Justyna Att Ilczuk 2012-12-10 09:43:16 +01:00
parent c862bad33f
commit 9847a9ead0
5 changed files with 39 additions and 2 deletions

View File

@ -43,7 +43,7 @@ SenchaObject ConstantExpression::evaluate()
{
if(value.name != "" && context != NULL)
{
value = context->get(value.name);
return context->get(value.name);
}
return value;
}

View File

@ -42,7 +42,7 @@ void PostfixExpression::execute() {
{
auto value = argument->evaluate();
std::cout << argument->evaluate().str();
std::cout << value.str();
}
std::cout << std::endl;

View File

@ -0,0 +1,18 @@
/*
* WhileNode.cpp
*
* Created on: Dec 10, 2012
* Author: attero
*/
#include "WhileNode.h"
WhileNode::WhileNode() {
// TODO Auto-generated constructor stub
}
WhileNode::~WhileNode() {
// TODO Auto-generated destructor stub
}

View File

@ -0,0 +1,19 @@
/*
* WhileNode.h
*
* Created on: Dec 10, 2012
* Author: attero
*/
#ifndef WHILENODE_H_
#define WHILENODE_H_
#include "ASTStatement.h"
class WhileNode: public ASTStatement {
public:
WhileNode();
virtual ~WhileNode();
};
#endif /* WHILENODE_H_ */

Binary file not shown.