Repeat works as it should. Assigning arguments to functions.
parent
c862bad33f
commit
9847a9ead0
|
@ -43,7 +43,7 @@ SenchaObject ConstantExpression::evaluate()
|
|||
{
|
||||
if(value.name != "" && context != NULL)
|
||||
{
|
||||
value = context->get(value.name);
|
||||
return context->get(value.name);
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
|
|
@ -42,7 +42,7 @@ void PostfixExpression::execute() {
|
|||
{
|
||||
auto value = argument->evaluate();
|
||||
|
||||
std::cout << argument->evaluate().str();
|
||||
std::cout << value.str();
|
||||
|
||||
}
|
||||
std::cout << std::endl;
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
@ -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_ */
|
BIN
Sencha-lang/core
BIN
Sencha-lang/core
Binary file not shown.
Loading…
Reference in New Issue