ROSE
0.9.6a
|
Numeric expression. More...
#include <broadway_expr.h>
Public Member Functions | |
virtual | ~numericExprAnn () |
Right-hand side expression. More... | |
numericExprAnn (const parserID *lhs, int line) | |
Create a constant test. More... | |
virtual void | lookup (propertyAnn *default_property, procedureAnn *procedure, Annotations *annotations) |
Create a numeric assignment. More... | |
virtual void | print (std::ostream &out) |
Report method. More... | |
Public Member Functions inherited from exprAnn | |
exprAnn (Broadway::Operator op, int line) | |
Create a new expression. More... | |
Broadway::Operator | op () const |
Operator. More... | |
Public Member Functions inherited from Ann | |
Ann (int line) | |
int | line () const |
Private Attributes | |
std::string | _lhs_name |
Left-hand side variable name. More... | |
REF annVariable * | _lhs |
Left-hand side variable. More... | |
Numeric expression.
There are basically three kinds of numeric expressions, distinguished by operator:
Definition at line 448 of file broadway_expr.h.
|
inlinevirtual |
Right-hand side expression.
Create a numeric evaluation
These expressions are only used for test expressions and reports.
Definition at line 473 of file broadway_expr.h.
numericExprAnn::numericExprAnn | ( | const parserID * | lhs, |
int | line | ||
) |
Create a constant test.
In the test() method, this kind of expression evaluates to true if the left-hand side value has a constant value.
|
virtual |
Create a numeric assignment.
Here, the expression is evaluated and assigned to the left-hand side variable. This kind of object is only used in the built-in "constants" analysis, to allow updating of the constant propagation information.
Implements exprAnn.
|
virtual |
Report method.
Interpret the expression as an informational query (for the report annotations). Write the result out to the given stream. Print method
Display the expression using the annotation syntax.
Implements exprAnn.
|
private |
Left-hand side variable name.
Definition at line 454 of file broadway_expr.h.
|
private |
Left-hand side variable.
Definition at line 458 of file broadway_expr.h.