MXVM 1.8.1
Virtual Machine, Compiler, and Pascal Frontend
Loading...
Searching...
No Matches
pascal::SetTypeNode Class Reference

AST node for a set type declaration (set of <base type>). More...

#include <ast.hpp>

Inheritance diagram for pascal::SetTypeNode:

Public Member Functions

 SetTypeNode (const std::string &base)
void accept (ASTVisitor &visitor) override
 Accept an ASTVisitor (double-dispatch).
std::string toString () const override
 Return a human-readable description of this node.
Public Member Functions inherited from pascal::ASTNode
virtual ~ASTNode ()=default
virtual void print (std::ostream &out, int indent=0) const
 Pretty-print this node to a stream with indentation.
void setLineNumber (int line)
 Set the originating source line number.
int getLineNumber () const
 Get the originating source line number.

Public Attributes

std::string baseTypeName
 the ordinal base type of the set

Detailed Description

AST node for a set type declaration (set of <base type>).

Definition at line 716 of file ast.hpp.

Constructor & Destructor Documentation

◆ SetTypeNode()

pascal::SetTypeNode::SetTypeNode ( const std::string & base)
inline

Definition at line 720 of file ast.hpp.

References baseTypeName.

Member Function Documentation

◆ accept()

void pascal::SetTypeNode::accept ( ASTVisitor & visitor)
overridevirtual

Accept an ASTVisitor (double-dispatch).

Implements pascal::ASTNode.

Definition at line 458 of file ast.cpp.

References pascal::ASTVisitor::visit().

◆ toString()

std::string pascal::SetTypeNode::toString ( ) const
inlineoverridevirtual

Return a human-readable description of this node.

Implements pascal::ASTNode.

Definition at line 723 of file ast.hpp.

References baseTypeName.

Member Data Documentation

◆ baseTypeName

std::string pascal::SetTypeNode::baseTypeName

the ordinal base type of the set

Definition at line 718 of file ast.hpp.

Referenced by SetTypeNode(), and toString().


The documentation for this class was generated from the following files: