MXVM 1.8.1
Virtual Machine, Compiler, and Pascal Frontend
Loading...
Searching...
No Matches
pascal::CaseStmtNode::CaseBranch Struct Reference

A single case branch (one or more values mapping to a statement). More...

#include <ast.hpp>

Public Member Functions

 CaseBranch (std::vector< std::unique_ptr< ASTNode > > vals, std::unique_ptr< ASTNode > stmt)

Public Attributes

std::vector< std::unique_ptr< ASTNode > > values
 match values
std::unique_ptr< ASTNode > statement
 branch body

Detailed Description

A single case branch (one or more values mapping to a statement).

Definition at line 403 of file ast.hpp.

Constructor & Destructor Documentation

◆ CaseBranch()

pascal::CaseStmtNode::CaseBranch::CaseBranch ( std::vector< std::unique_ptr< ASTNode > > vals,
std::unique_ptr< ASTNode > stmt )
inline

Definition at line 407 of file ast.hpp.

References statement, and values.

Member Data Documentation

◆ statement

std::unique_ptr<ASTNode> pascal::CaseStmtNode::CaseBranch::statement

branch body

Definition at line 405 of file ast.hpp.

Referenced by CaseBranch().

◆ values

std::vector<std::unique_ptr<ASTNode> > pascal::CaseStmtNode::CaseBranch::values

match values

Definition at line 404 of file ast.hpp.

Referenced by CaseBranch().


The documentation for this struct was generated from the following file: