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

IR for KSUnaryExpression class. More...

#include "KSExpression.h"

Go to the source code of this file.

Data Structures

struct  KSUnaryExpression
 

Enumerations

enum  KSUnaryOperator { KSUnaryNegate, KSUnaryBitNot, KSUnaryLogicalNot }
 

Functions

struct KSUnaryExpressionKSAllocateUnaryExpression (KSUnaryOperator op, struct KSExpression *srcexp, struct KELineInfo *linfo, struct CNResource *resource)
 Allocate unary-expression object. More...
 
CNBoolean KSIsUnaryExpression (const struct KSExpression *src)
 Check the expression class. More...
 

Detailed Description

IR for KSUnaryExpression class.

Copyright
Copyright (C) 2014 Steel Wheels Project

Enumeration Type Documentation

Operators for KSUnaryExpression

Function Documentation

struct KSUnaryExpression* KSAllocateUnaryExpression ( KSUnaryOperator  op,
struct KSExpression srcexp,
struct KELineInfo *  linfo,
struct CNResource *  resource 
)

Allocate unary-expression object.

Returns
Allocated object
Parameters
opUnary operator
srcexpSource expression
linfoLine information
resourceResource to allocate the object
CNBoolean KSIsUnaryExpression ( 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