Retro68/Rez/RezWorld.h

26 lines
512 B
C
Raw Normal View History

#ifndef REZWORLD_H
#define REZWORLD_H
#include <map>
#include <stack>
#include "ResourceDefinitions.h"
#include "Expression.h"
class RezWorld
{
friend class RezParser;
std::map<TypeSpec, TypeDefinitionPtr> types;
std::stack<FieldListPtr> fieldLists;
2014-10-07 22:41:40 +00:00
std::stack<IdentifierExprPtr> functionCalls;
2014-10-07 23:17:17 +00:00
std::stack<SwitchFieldPtr> switches;
public:
RezWorld();
void addTypeDefinition(TypeSpec spec, TypeDefinitionPtr type);
TypeDefinitionPtr getTypeDefinition(ResType type, int id);
};
#endif // REZWORLD_H