ddmd.dinterpret

Members

Classes

Interpreter
class Interpreter

Functions

ctfeCompile
void ctfeCompile(FuncDeclaration fd)

Compile this function for CTFE. At present, this merely allocates variables.

ctfeInterpret
Expression ctfeInterpret(Expression e)

Entry point for CTFE. A compile-time result is required. Give an error if not possible.

hasValue
bool hasValue(VarDeclaration vd)

CTFE Sanity Checks

interpret
Expression interpret(Statement s, InterState* istate)

Interpret the statement.

interpret
Expression interpret(FuncDeclaration fd, InterState* istate, Expressions* arguments, Expression thisarg)

Attempt to interpret a function given the arguments. Input: istate state for calling function (NULL if none) arguments function arguments thisarg 'this', if a needThis() function, NULL if not.

interpret_length
Expression interpret_length(InterState* istate, Expression earg)

Special Functions

Structs

CompiledCtfeFunction
struct CompiledCtfeFunction

CTFE-object code for a single function

CtfeStack
struct CtfeStack

The values of all CTFE variables

Meta