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

IR for KSBinaryExpression class. More...

#include "KSExpression.h"

Go to the source code of this file.

Data Structures

struct  KSBinaryExpression
 

Enumerations

enum  KSBinaryOperator {
  KSBinaryAdd, KSBinarySub, KSBinaryMul, KSBinaryDiv,
  KSBinaryMod, KSBinaryLeftShift, KSBinaryRightShift, KSBinaryLesserThan,
  KSBinaryLessEqual, KSBinaryGreaterThan, KSBinaryGreateEqual, KSBinaryEqual,
  KSBinaryNotEqual, KSBinaryBitAnd, KSBinaryBitOr, KSBinaryBitXor,
  KSBinaryLogicalAnd, KSBinaryLogicalOr
}
 

Functions

struct KSBinaryExpressionKSAllocateBinaryExpression (KSBinaryOperator op, struct KSExpression *leftexp, struct KSExpression *rightexp, struct KELineInfo *linfo, struct CNResource *resource)
 Allocate unary-expression object. More...
 
CNBoolean KSIsBinaryExpression (const struct KSExpression *src)
 Check the expression class. More...
 

Detailed Description

IR for KSBinaryExpression class.

Copyright
Copyright (C) 2014 Steel Wheels Project

Enumeration Type Documentation

Operators for KSBinaryExpression

Function Documentation

struct KSBinaryExpression* KSAllocateBinaryExpression ( KSBinaryOperator  op,
struct KSExpression leftexp,
struct KSExpression rightexp,
struct KELineInfo *  linfo,
struct CNResource *  resource 
)

Allocate unary-expression object.

Returns
Allocated object
Parameters
opBinary operator
leftexpSource left expression
rightexpSource right expression
linfoLine information
resourceResource to allocate the object
CNBoolean KSIsBinaryExpression ( 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