Skip to content

ExpressionNode

INCLUDE FILE
#include "ExpressionNode.h"

class ExpressionNode

Represents an expression corresponding to an argument for the instruction.

DEFINITION
class ExpressionNode;

constructor ExpressionNode

Initialize an ExpressionNode with a specific expression.

DEFINITION
ExpressionNode ( Expression  expression );
PARAMETERDESCRIPTION
expression

The expression corresponding to the argument in the instruction notation.

method get_locationconst virtual

Get the location of the node in the source code.

Subclasses must implement this method.

DEFINITION
virtual const Location & get_location ( ) const;
RETURNSDESCRIPTION
const Location &

The location of the node.

method typeconst virtual

Get the type of the node.

Subclasses must implement this method.

DEFINITION
virtual Type  type ( ) const;
RETURNSDESCRIPTION
Type

The type of the node.

member expression

The expression corresponding to the argument.

DEFINITION
Expression  expression;