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

AST node for a source-level comment. More...

#include <ast.hpp>

Inheritance diagram for mxvm::CommentNode:

Public Member Functions

 CommentNode (const std::string &commentText)
void accept (ASTVisitor &visitor) override
std::string toString () const override
Public Member Functions inherited from mxvm::ASTNode
virtual ~ASTNode ()=default

Public Attributes

std::string text

Detailed Description

AST node for a source-level comment.

Definition at line 156 of file ast.hpp.

Constructor & Destructor Documentation

◆ CommentNode()

mxvm::CommentNode::CommentNode ( const std::string & commentText)
inline

Definition at line 159 of file ast.hpp.

References text.

Member Function Documentation

◆ accept()

void mxvm::CommentNode::accept ( ASTVisitor & visitor)
overridevirtual

Implements mxvm::ASTNode.

Definition at line 103 of file ast.cpp.

References mxvm::ASTVisitor::visit().

◆ toString()

std::string mxvm::CommentNode::toString ( ) const
overridevirtual

Implements mxvm::ASTNode.

Definition at line 107 of file ast.cpp.

References text.

Member Data Documentation

◆ text

std::string mxvm::CommentNode::text

Definition at line 158 of file ast.hpp.

Referenced by CommentNode(), and toString().


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