Skip to content
Snippets Groups Projects
Commit 7dbd8e92 authored by Patrick Dular's avatar Patrick Dular
Browse files

(1) Added: Delete Struct; (2) Added: Structures in PrintParserSymbols

parent 723a181b
No related branches found
No related tags found
No related merge requests found
This diff is collapsed.
......@@ -2839,6 +2839,10 @@ Delete :
#endif
Free($2); Free($3);
}
| tDelete tDefineStruct tEND
{
nameSpaces.clear();
}
;
// C O L O R I F Y
......@@ -6225,6 +6229,16 @@ void PrintParserSymbols(bool help, std::vector<std::string> &vec)
vec.push_back(s);
}
}
if (nameSpaces.size()){
if(help){
vec.push_back("//");
vec.push_back("// Structures");
vec.push_back("//");
}
std::string s;
nameSpaces.sprint(s);
vec.push_back(s);
}
}
fullMatrix<double> ListOfListOfDouble2Matrix(List_T *list)
......
......@@ -139,6 +139,7 @@ public:
inline const std::map<K, T> & get() const { return _map; }
inline int count (const std::string key) const { return _map.count(key); }
inline int size () const { return _map.size(); }
void clear() { _map.clear(); }
public:
std::map<K, T> _map;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment