OpenMW
Public Types | Public Member Functions | Private Attributes
MWScript::CompilerContext Class Reference

#include <compilercontext.hpp>

List of all members.

Public Types

enum  Type { Type_Full, Type_Dialgoue, Type_Console }

Public Member Functions

 CompilerContext (Type type)
virtual bool canDeclareLocals () const
 Is the compiler allowed to declare local variables?
virtual char getGlobalType (const std::string &name) const
 'l: long, 's': short, 'f': float, ' ': does not exist.
virtual char getMemberType (const std::string &name, const std::string &id) const
 'l: long, 's': short, 'f': float, ' ': does not exist.
virtual bool isId (const std::string &name) const
 Does name match an ID, that can be referenced?

Private Attributes

Type mType

Member Enumeration Documentation

Enumerator:
Type_Full 
Type_Dialgoue 
Type_Console 

Constructor & Destructor Documentation


Member Function Documentation

Is the compiler allowed to declare local variables?

Implements Compiler::Context.

char MWScript::CompilerContext::getGlobalType ( const std::string &  name) const [virtual]

'l: long, 's': short, 'f': float, ' ': does not exist.

Implements Compiler::Context.

char MWScript::CompilerContext::getMemberType ( const std::string &  name,
const std::string &  id 
) const [virtual]

'l: long, 's': short, 'f': float, ' ': does not exist.

Implements Compiler::Context.

bool MWScript::CompilerContext::isId ( const std::string &  name) const [virtual]

Does name match an ID, that can be referenced?

Implements Compiler::Context.


Member Data Documentation


The documentation for this class was generated from the following files: