Kiwi Script
KiwiScript Interpreter
 All Data Structures Files Functions Variables Typedefs Enumerations Macros
KSUnaryExpression.h
Go to the documentation of this file.
1 
8 #ifndef KSUNARYEXPRESSION_H
9 #define KSUNARYEXPRESSION_H
10 
11 #include "KSExpression.h"
12 
14 typedef enum {
15  KSUnaryNegate,
16  KSUnaryBitNot,
17  KSUnaryLogicalNot,
19 
30 } ;
31 
40 struct KSUnaryExpression *
41 KSAllocateUnaryExpression(KSUnaryOperator op, struct KSExpression * srcexp, struct KELineInfo * linfo, struct CNResource * resource) ;
42 
49 CNBoolean
50 KSIsUnaryExpression(const struct KSExpression * src) ;
51 
52 #endif /* KSUNARYEXPRESSION_H */
53 
IR for KSExpression class.
struct KSExpression superClass
Definition: KSUnaryExpression.h:25
Definition: KSExpression.h:15
struct KSExpression * sourceExpression
Definition: KSUnaryExpression.h:29
KSUnaryOperator
Definition: KSUnaryExpression.h:14
KSUnaryOperator unaryOperator
Definition: KSUnaryExpression.h:27
Definition: KSUnaryExpression.h:23
CNBoolean KSIsUnaryExpression(const struct KSExpression *src)
Check the expression class.
struct KSUnaryExpression * KSAllocateUnaryExpression(KSUnaryOperator op, struct KSExpression *srcexp, struct KELineInfo *linfo, struct CNResource *resource)
Allocate unary-expression object.