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

A single constant name = value pair. More...

#include <ast.hpp>

Public Member Functions

 ConstAssignment (const std::string &id, std::unique_ptr< ASTNode > val)

Public Attributes

std::string identifier
 constant name
std::unique_ptr< ASTNodevalue
 constant value expression

Detailed Description

A single constant name = value pair.

Definition at line 177 of file ast.hpp.

Constructor & Destructor Documentation

◆ ConstAssignment()

pascal::ConstDeclNode::ConstAssignment::ConstAssignment ( const std::string & id,
std::unique_ptr< ASTNode > val )
inline

Definition at line 181 of file ast.hpp.

References identifier, and value.

Member Data Documentation

◆ identifier

std::string pascal::ConstDeclNode::ConstAssignment::identifier

constant name

Definition at line 178 of file ast.hpp.

Referenced by ConstAssignment().

◆ value

std::unique_ptr<ASTNode> pascal::ConstDeclNode::ConstAssignment::value

constant value expression

Definition at line 179 of file ast.hpp.

Referenced by ConstAssignment().


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