GrLibrary

Contains type information and D linked functions.

Members

Enums

Operator
enum Operator

Type of operator overloading

Functions

addCast
GrPrimitive addCast(GrCallback callback, GrType srcType, GrType dstType, bool isExplicit)

A cast operator allows to convert from one type to another. It have to have only one parameter and return the casted value.

addClass
GrType addClass(string name, string[] fields, GrType[] signature, string[] templateVariables, string parent, GrType[] parentTemplateSignature)

Define a class type.

addEnum
GrType addEnum(string name, string[] fields)

Define an enumeration

addForeign
GrType addForeign(string name, string[] templateVariables, string parent, GrType[] parentTemplateSignature)

Define an opaque pointer type.

addOperator
GrPrimitive addOperator(GrCallback callback, Operator operator, GrType[] inSignature, GrType outType)
GrPrimitive addOperator(GrCallback callback, string name, GrType[] inSignature, GrType outType)

An operator is a function that replace a binary or unary grimoire operator such as +, ==, etc The name of the function must be that of the operator like "+", "-", "or", etc.

addPrimitive
GrPrimitive addPrimitive(GrCallback callback, string name, GrType[] inSignature, GrType[] outSignature)

Define a new primitive.

addTypeAlias
GrType addTypeAlias(string name, GrType type)

Define a type alias

addVariable
void addVariable(string name, GrType type, bool isConstant)

Define a variable

addVariable
void addVariable(string name, GrType type, T defaultValue, bool isConstant)

Define a variable with a default value

Variables

_abstractClassDefinitions
GrClassDefinition[] _abstractClassDefinitions;

Object types.

_abstractForeignDefinitions
GrAbstractForeignDefinition[] _abstractForeignDefinitions;

Opaque pointer types. \ They're pointer only defined by a name. \ Can only be used with primitives.

_abstractPrimitives
GrPrimitive[] _abstractPrimitives;

All primitives, used for both the compiler and the runtime.

_aliasDefinitions
GrTypeAliasDefinition[] _aliasDefinitions;

Type aliases

_callbacks
GrCallback[] _callbacks;

All the primitive callbacks.

_enumDefinitions
GrEnumDefinition[] _enumDefinitions;

Enum types.

_variableDefinitions
GrVariableDefinition[] _variableDefinitions;

Variable types

Meta