![]() |
Kactus2
Kactus2 reference guide
|
Interface for expression parsers. More...
#include <ExpressionParser.h>
Public Member Functions | |
virtual | ~ExpressionParser ()=default |
The destructor. | |
virtual int | baseForExpression (QStringView expression) const =0 |
virtual bool | isPlainValue (QStringView expression) const =0 |
virtual QString | parseExpression (QStringView expression, bool *validExpression=nullptr) const =0 |
Interface for expression parsers.
Definition at line 21 of file ExpressionParser.h.
|
virtualdefault |
The destructor.
|
pure virtual |
Finds the common base in the expression.
[in] | expression | The expression to search in. |
Implemented in NullParser, and SystemVerilogExpressionParser.
|
pure virtual |
Checks if the given expression is a plain value and does not need evaluation.
[in] | expression | The expression to check. |
Implemented in NullParser, and SystemVerilogExpressionParser.
|
pure virtual |
Parses an expression to decimal number.
[in] | expression | The expression to parse. |
[out] | validExpression | Set to true, if the parsing was successful, otherwise false. |
Implemented in NullParser, and SystemVerilogExpressionParser.