Files
whetstone_DSL/editor/src/ast/Parameter.h
Bill 25b9d5c480 Sprint 2 Step 3: all Statement, Expression, Type, and Parameter concepts
Ports all 33 SemAnno concepts from MPS into C++ headers grouped by category.
Test builds the exact Calculator model from Phase1Test.mps as a 27-node C++
object graph and verifies every property, child link, and parent chain.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-06 19:01:35 -07:00

15 lines
420 B
C++

#pragma once
#include "ASTNode.h"
class Parameter : public ASTNode {
public:
std::string name;
Parameter() { conceptType = "Parameter"; }
Parameter(const std::string& id, const std::string& name) : name(name) {
this->id = id;
this->conceptType = "Parameter";
}
// children: type (1) via setChild("type", ...)
// children: defaultValue (0..1) via setChild("defaultValue", ...)
};