Skip to content

Node

INCLUDE FILE
#include "Node.h"

class Node

Represents a node in instruction notation. It can be an expression, keyword, or punctuation.

DEFINITION
class Node;

enum Type

The type of the node.

DEFINITION
enum Type;
VALUEDESCRIPTION
EXPRESSION

The node is an expression, corresponding to an argument of the instruction.

KEYWORD

The node is a keyword, corresponding to a reserved word in the instruction notation.

PUNCTUATION

The node is a punctuation, corresponding to a punctuation symbol in the instruction notation.

destructor ~Nodevirtual

DEFINITION
virtual ~Node ( );

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 = 0;
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 = 0;
RETURNSDESCRIPTION
Type

The type of the node.