Minsky
valueId.h File Reference
#include <memory>
#include <string>
Include dependency graph for valueId.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 minsky
 Creation and access to the minskyTCL_obj object, which has code to record whenever Minsky's state changes.
 

Functions

bool minsky::isValueId (const std::string &name)
 check that name is a valid valueId (useful for assertions) More...
 
string minsky::valueIdCanonical (size_t scope, const std::string &name)
 construct a valueId @ name should be canonicalised More...
 
string minsky::valueId (const std::string &name)
 construct a valueId from fully qualified name @ name should not be canonicalised More...
 
string minsky::valueId (const GroupPtr &ref, const std::string &name)
 construct a valueId. @ name should not be canonicalised if name has leading :, then heirarchy is searched for matching local name More...
 
string minsky::canonicalName (const std::string &name)
 convert a raw name into a canonical name - this is not idempotent. More...
 
GroupPtr minsky::scope (GroupPtr ref, const std::string &name)
 starting from reference group ref, applying scoping rules to determine the actual scope of name If name prefixed by :, then search up group heirarchy for locally scoped var, otherwise return ref More...
 
string minsky::valueIdFromScope (const GroupPtr &scope, const std::string &name)
 value Id from scope and canonical name name More...
 
size_t minsky::scope (const std::string &name)
 extract scope from a qualified variable name More...
 
std::string minsky::uqName (const std::string &name)
 extract unqualified portion of name More...