grimoire.compiler.type

Members

Classes

GrAbstractForeignDefinition
class GrAbstractForeignDefinition

Define an arbitrary D pointer.

GrAnyData
class GrAnyData

Context for any validation

GrClassDefinition
class GrClassDefinition

Define the content of a class. \ Not to be confused with GrType used by the type system.

GrDeferBlock
class GrDeferBlock
Undocumented in source.
GrDeferrableSection
class GrDeferrableSection
Undocumented in source.
GrEnumDefinition
class GrEnumDefinition

Define the content of an enum. \ Not to be confused with GrType used by the type system.

GrForeignDefinition
class GrForeignDefinition

Define an arbitrary D pointer.

GrFunction
class GrFunction

Function/Task/Event definition.

GrFunctionCall
class GrFunctionCall
Undocumented in source.
GrTemplateFunction
class GrTemplateFunction
Undocumented in source.
GrTypeAliasDefinition
class GrTypeAliasDefinition

Define the content of a type alias. \ Not to be confused with GrType used by the type system.

GrVariable
class GrVariable

A local or global variable.

GrVariableDefinition
class GrVariableDefinition

Define a variable defined from a library

Enums

GrBaseType
enum GrBaseType

Type category.

Functions

grAny
GrType grAny(string name, bool function(GrType, GrAnyData) predicate)

Special type the matches another type with a predicate.

grArray
GrType grArray(GrType subType)

Returns an array GrType of subType subtype.

grChannel
GrType grChannel(GrType subType)

Returns a channel GrType of subType subtype.

grGetClassType
GrType grGetClassType(string name, GrType[] signature)

Create a GrType of class for the type system.

grGetEnumType
GrType grGetEnumType(string name)

Create a GrType of enum for the type system.

grGetForeignType
GrType grGetForeignType(string name, GrType[] signature)

Create a foreign GrType for the type system.

grGetFunctionAsType
GrType grGetFunctionAsType(GrFunction func)

Get the type of the function.

grIsKindOfFloat
bool grIsKindOfFloat(GrBaseType type)

The type is handled by a float based register

grIsKindOfInt
bool grIsKindOfInt(GrBaseType type)

The type is handled by a int based register

grIsKindOfObject
bool grIsKindOfObject(GrBaseType type)

The type is handled by a ptr based register

grIsKindOfString
bool grIsKindOfString(GrBaseType type)

The type is handled by a string based register

grPackTuple
GrType grPackTuple(GrType[] types)

Pack multiple types as a single one.

grUnpackTuple
GrType[] grUnpackTuple(GrType type)

Unpack multiple types from a single one.

Structs

GrInstruction
struct GrInstruction

A single instruction used by the VM.

GrType
struct GrType

Compiler type definition for Grimoire's type system. It doesn't mean anything for the VM.

Variables

grBool
GrType grBool;

Bool

grBoolArray
GrType grBoolArray;

Bool array

grBoolChannel
GrType grBoolChannel;

Bool channel

grFloat
GrType grFloat;

Float

grFloatArray
GrType grFloatArray;

Float array

grFloatChannel
GrType grFloatChannel;

Float channel

grInt
GrType grInt;

Integer

grIntArray
GrType grIntArray;

Int array

grIntChannel
GrType grIntChannel;

Int channel

grString
GrType grString;

String

grStringArray
GrType grStringArray;

String array

grStringChannel
GrType grStringChannel;

String channel

grVoid
GrType grVoid;

No type

Meta

License

Zlib

Authors

Enalye