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

AST node for an empty statement (no-op). More...

#include <ast.hpp>

Inheritance diagram for pascal::EmptyStmtNode:

Public Member Functions

 EmptyStmtNode ()
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.

Detailed Description

AST node for an empty statement (no-op).

Definition at line 560 of file ast.hpp.

Constructor & Destructor Documentation

◆ EmptyStmtNode()

pascal::EmptyStmtNode::EmptyStmtNode ( )
inline

Definition at line 562 of file ast.hpp.

Member Function Documentation

◆ accept()

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

Accept an ASTVisitor (double-dispatch).

Implements pascal::ASTNode.

Definition at line 277 of file ast.cpp.

References pascal::ASTVisitor::visit().

◆ toString()

std::string pascal::EmptyStmtNode::toString ( ) const
overridevirtual

Return a human-readable description of this node.

Implements pascal::ASTNode.

Definition at line 281 of file ast.cpp.


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