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

IR for KSFunctionExpression class. More...

#include "KSExpression.h"

Go to the source code of this file.

Data Structures

struct  KSFunctionExpression
 Expression IR to present function definition. More...
 

Functions

struct KSFunctionExpressionKSAllocateFunctionExpression (struct KSFunction *func, struct KELineInfo *linfo, struct CNResource *resource)
 Allocate function expression. More...
 
CNBoolean KSIsFunctionExpression (const struct KSExpression *src)
 Check the expression class. More...
 

Detailed Description

IR for KSFunctionExpression class.

Copyright
Copyright (C) 2014 Steel Wheels Project

Function Documentation

struct KSFunctionExpression* KSAllocateFunctionExpression ( struct KSFunction func,
struct KELineInfo *  linfo,
struct CNResource *  resource 
)

Allocate function expression.

Returns
Allocated expression
Parameters
functSource function definition
linfoLine information of the expression
resourceResource to allocate the expression
CNBoolean KSIsFunctionExpression ( const struct KSExpression src)

Check the expression class.

Return values
TrueThe source expression is an object of the class
FalseThe source expression is NOT an object of the class
Parameters
srcSource expression