1 #ifndef CSM_WORLD_SCRIPTCONTEXT_H
2 #define CSM_WORLD_SCRIPTCONTEXT_H
18 mutable std::vector<std::string>
mIds;
20 mutable std::map<std::string, Compiler::Locals>
mLocals;
33 const std::string&
id)
const;
39 virtual bool isId (
const std::string&
name)
const;
Definition: scriptcontext.hpp:15
virtual std::pair< char, bool > getMemberType(const std::string &name, const std::string &id) const
Definition: scriptcontext.cpp:39
Definition: context.hpp:10
std::vector< std::string > mIds
Definition: scriptcontext.hpp:18
void invalidateIds()
Definition: scriptcontext.cpp:110
virtual bool canDeclareLocals() const
Is the compiler allowed to declare local variables?
Definition: scriptcontext.cpp:15
const Data & mData
Definition: scriptcontext.hpp:17
virtual bool isJournalId(const std::string &name) const
Does name match a journal ID?
Definition: scriptcontext.cpp:105
bool clearLocals(const std::string &script)
Definition: scriptcontext.cpp:122
virtual bool isId(const std::string &name) const
Does name match an ID, that can be referenced?
Definition: scriptcontext.cpp:90
ScriptContext(const Data &data)
Definition: scriptcontext.cpp:13
virtual char getGlobalType(const std::string &name) const
'l: long, 's': short, 'f': float, ' ': does not exist.
Definition: scriptcontext.cpp:20
void clear()
Remove all cached data.
Definition: scriptcontext.cpp:115
std::map< std::string, Compiler::Locals > mLocals
Definition: scriptcontext.hpp:20
bool mIdsUpdated
Definition: scriptcontext.hpp:19
const char * name
Definition: crashcatcher.cpp:59