BenchGen
BenchGen is a tool for generating benchmarks to stress-test a computing system.
Loading...
Searching...
No Matches
StatementCode Class Reference

Represents a block of statements in the AST. More...

#include <ast.h>

Inheritance diagram for StatementCode:
Collaboration diagram for StatementCode:

Public Member Functions

 StatementCode (std::shared_ptr< Node > stmt, std::shared_ptr< Node > code)
 
void gen (Generator &) override
 Generates code for this AST node.
 
void print (int) override
 Prints the structure of this AST node.
 
- Public Member Functions inherited from Node
virtual ~Node ()=default
 

Detailed Description

Represents a block of statements in the AST.

Contains a statement and the following code block.

Constructor & Destructor Documentation

◆ StatementCode()

StatementCode::StatementCode ( std::shared_ptr< Node > stmt,
std::shared_ptr< Node > code )
inline

Member Function Documentation

◆ gen()

void StatementCode::gen ( Generator & )
overridevirtual

Generates code for this AST node.

Parameters
generatorThe generator object used to manage code generation.

Implements Node.

◆ print()

void StatementCode::print ( int indent)
overridevirtual

Prints the structure of this AST node.

Parameters
indentThe number of spaces to indent the output.

Implements Node.


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