Kiwi Script
KiwiScript Interpreter
|
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 KSBinaryExpression * | KSAllocateBinaryExpression (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... | |
IR for KSBinaryExpression class.
enum KSBinaryOperator |
Operators for KSBinaryExpression
struct KSBinaryExpression* KSAllocateBinaryExpression | ( | KSBinaryOperator | op, |
struct KSExpression * | leftexp, | ||
struct KSExpression * | rightexp, | ||
struct KELineInfo * | linfo, | ||
struct CNResource * | resource | ||
) |
Allocate unary-expression object.
op | Binary operator |
leftexp | Source left expression |
rightexp | Source right expression |
linfo | Line information |
resource | Resource to allocate the object |
CNBoolean KSIsBinaryExpression | ( | const struct KSExpression * | src | ) |
Check the expression class.
True | The source expression is an object of the class |
False | The source expression is NOT an object of the class |
src | Source expression |