ExpressionParser.hh
833 Bytes
/*
* ExpressionParser.hh
*
* Created on: 02/2019
* Author: akka
*/
#ifndef EXPRESSIONPARSER_HH_
#define EXPRESSIONPARSER_HH_
#include "Properties.hh"
#include <iostream>
namespace AMDA {
namespace parser {
/**
* @class ExpressionParser
* @brief This class is to parse expression.
* @details This class takes as input user expression comming grom the frontend and tranform it to C++ expression that is handled by the
* Kernel
*/
class ExpressionParser {
public:
/**
* @brief Parse IHM expression and get Kernel expression + parameters list. Return true if success
*/
static bool parse(const std::string& s, AMDA::helpers::Properties& lProperties, std::string &kernelExpression, std::vector<std::string>& paramsList);
};
} /* naemspace parser */
} /* namespace AMDA */
#endif /* EXPRESSIONPARSER_HH_ */