Blame view

src/expressionParser/ExpressionParser.hh 833 Bytes
e3ca4c3f   Benjamin Renard   adding structure ...
1
2
3
4
5
6
7
8
9
/*
 * ExpressionParser.hh
 *
 *  Created on: 02/2019
 *      Author: akka
 */

#ifndef EXPRESSIONPARSER_HH_
#define EXPRESSIONPARSER_HH_
47755d13   Benjamin Renard   Minor changes
10
11
12

#include "Properties.hh"

e3ca4c3f   Benjamin Renard   adding structure ...
13
#include <iostream>
e3ca4c3f   Benjamin Renard   adding structure ...
14
15

namespace AMDA {
a7f2648e   Benjamin Renard   Parser: First imp...
16
namespace parser {
e3ca4c3f   Benjamin Renard   adding structure ...
17
18
19
20
21
22
23
24
25
26

/**
 * @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:
	/**
aae52524   Benjamin Renard   Parser: Write res...
27
	 * @brief Parse IHM expression and get Kernel expression + parameters list. Return true if success
a7f2648e   Benjamin Renard   Parser: First imp...
28
	 */ 
aae52524   Benjamin Renard   Parser: Write res...
29
	static bool parse(const std::string& s, AMDA::helpers::Properties& lProperties, std::string &kernelExpression, std::vector<std::string>& paramsList);
e3ca4c3f   Benjamin Renard   adding structure ...
30
31
};

a7f2648e   Benjamin Renard   Parser: First imp...
32
} /* naemspace parser */
e3ca4c3f   Benjamin Renard   adding structure ...
33
} /* namespace AMDA */
a7f2648e   Benjamin Renard   Parser: First imp...
34
#endif /* EXPRESSIONPARSER_HH_ */