Kiwi Script
KiwiScript Interpreter
 All Data Structures Files Functions Variables Typedefs Enumerations Macros
Data Structures | Functions
KSFunction.h File Reference

IR for program class. More...

#include <KiwiEngine/KiwiEngine.h>
#include "KSForwarders.h"

Go to the source code of this file.

Data Structures

struct  KSFunction
 

Functions

struct KSFunctionKSAllocateFunction (struct CNResource *resource)
 Alloxate Function object. More...
 
void KSSetFunctionBody (struct KSFunction *dst, struct KSCompoundStatement *stmt)
 Set body statement to function. More...
 

Detailed Description

IR for program class.

Copyright
Copyright (C) 2014 Steel Wheels Project

Function Documentation

struct KSFunction* KSAllocateFunction ( struct CNResource *  resource)

Alloxate Function object.

Returns
Allocated object
Parameters
resourceResource to allocate the object
void KSSetFunctionBody ( struct KSFunction dst,
struct KSCompoundStatement stmt 
)

Set body statement to function.

Parameters
dstDestination function
stmtSource statement