Changeset 4c0b674 for src/Parser
- Timestamp:
- Feb 27, 2024, 10:56:31 AM (6 months ago)
- Branches:
- master
- Children:
- dc3fbe5
- Parents:
- bc61563
- Location:
- src/Parser
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/DeclarationNode.cc
rbc61563 r4c0b674 82 82 83 83 DeclarationNode::~DeclarationNode() { 84 delete name; 85 84 86 // delete variable.name; 85 87 delete variable.assertions; -
src/Parser/DeclarationNode.h
rbc61563 r4c0b674 131 131 DeclarationNode * get_last() { return (DeclarationNode *)ParseNode::get_last(); } 132 132 133 const std::string * name = nullptr; 134 133 135 struct Variable_t { 134 136 // const std::string * name; -
src/Parser/ParseNode.h
rbc61563 r4c0b674 48 48 public: 49 49 ParseNode() {}; 50 virtual ~ParseNode() { delete next; delete name;};50 virtual ~ParseNode() { delete next; }; 51 51 virtual ParseNode * clone() const = 0; 52 52 … … 73 73 74 74 ParseNode * next = nullptr; 75 const std::string * name = nullptr;76 75 CodeLocation location = yylloc; 77 76 }; // ParseNode
Note: See TracChangeset
for help on using the changeset viewer.