2012-12-06 17:41:16 +00:00
|
|
|
/*
|
|
|
|
* IncorrectExpression.h
|
|
|
|
*
|
|
|
|
* Created on: Dec 6, 2012
|
|
|
|
* Author: attero
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef INCORRECTEXPRESSION_H_
|
|
|
|
#define INCORRECTEXPRESSION_H_
|
|
|
|
|
|
|
|
#include "ASTExpression.h"
|
|
|
|
#include <iostream>
|
|
|
|
|
|
|
|
class IncorrectExpression: public ASTExpression {
|
|
|
|
public:
|
|
|
|
|
|
|
|
std::string error_message;
|
|
|
|
|
|
|
|
virtual SenchaObject evaluate() ;
|
|
|
|
|
|
|
|
void execute() { std::cout << debug(); }
|
2012-12-09 11:57:51 +00:00
|
|
|
void execute_quietly() { //do nothing
|
2012-12-06 17:41:16 +00:00
|
|
|
|
2012-12-09 11:57:51 +00:00
|
|
|
}
|
2012-12-06 17:41:16 +00:00
|
|
|
std::string debug() { return "Incorrect Expression:\n" + error_message; }
|
|
|
|
|
|
|
|
IncorrectExpression(ASTNode * parent, std::string error_message);
|
|
|
|
virtual ~IncorrectExpression();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* INCORRECTEXPRESSION_H_ */
|