OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Namespaces | Classes | Typedefs | Functions | Variables
Compiler Namespace Reference

script compiler More...

Namespaces

 Ai
 
 Animation
 
 Cell
 
 Console
 
 Container
 
 Control
 
 Dialogue
 
 Generator
 
 Gui
 
 Misc
 
 Sky
 
 Sound
 
 Stats
 
 Transformation
 
 User
 

Classes

class  Context
 
class  ControlParser
 
class  DeclarationParser
 
class  DiscardParser
 Parse a single optional numeric value or string and discard it. More...
 
class  ErrorHandler
 Error handling. More...
 
class  ErrorDowngrade
 
class  SourceException
 Exception: Error while parsing the source. More...
 
class  FileException
 Exception: File error. More...
 
class  EOFException
 Exception: EOF condition encountered. More...
 
class  ExprParser
 
class  Extensions
 Collection of compiler extensions. More...
 
class  FileParser
 
class  JunkParser
 Parse an optional single junk token. More...
 
class  LineParser
 Line parser, to be used in console scripts and as part of ScriptParser. More...
 
class  GetArgumentsFromMessageFormat
 
class  Literals
 Literal values. More...
 
class  Locals
 Local variable declarations. More...
 
class  NullErrorHandler
 Error handler implementation: Ignore all error messages. More...
 
class  Output
 
class  Parser
 Parser base class. More...
 
class  QuickFileParser
 File parser variant that ignores everything but variable declarations. More...
 
class  Scanner
 Scanner. More...
 
class  ScriptParser
 
class  SkipParser
 
class  StreamErrorHandler
 Error handler implementation: Write errors into stream. More...
 
class  StringParser
 
struct  TokenLoc
 Location of a token in a source file. More...
 

Typedefs

typedef std::string ScriptArgs
 Typedef for script arguments string. More...
 
typedef char ScriptReturn
 Typedef for script return char. More...
 

Functions

void registerExtensions (Extensions &extensions, bool consoleOnly)
 

Variables

static const char * sKeywords []
 

Detailed Description

script compiler

Typedef Documentation

typedef std::string Compiler::ScriptArgs

Typedef for script arguments string.

Every character reperesents an argument to the command. All arguments are required until a /, after which every argument is optional.
Eg: fff/f represents 3 required floats followed by one optional float
f - Float
c - String, case smashed
l - Integer
s - Short
S - String, case preserved
x - Optional, ignored string argument. Emits a parser warning when this argument is supplied.
X - Optional, ignored numeric expression. Emits a parser warning when this argument is supplied.
z - Optional, ignored string or numeric argument. Emits a parser warning when this argument is supplied.
j - A piece of junk (either . or a specific keyword)

typedef char Compiler::ScriptReturn

Typedef for script return char.

The character represents the type of data being returned.
f - float
S - String (Cell names)
l - Integer

Function Documentation

void Compiler::registerExtensions ( Extensions &  extensions,
bool  consoleOnly 
)

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

const char* Compiler::sKeywords[]
static
Initial value:
=
{
"begin", "end",
"short", "long", "float",
"if", "endif", "else", "elseif",
"while", "endwhile",
"return",
"messagebox",
"set", "to",
"getsquareroot",
"menumode",
"random",
"startscript", "stopscript", "scriptrunning",
"getdistance",
"getsecondspassed",
"enable", "disable", "getdisabled",
0
}