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>
15 lines
420 B
C++
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", ...)
|
|
};
|