Kiwi Script
KiwiScript Interpreter
 All Data Structures Files Functions Variables Typedefs Enumerations Macros
KSConstantExpression.h
Go to the documentation of this file.
1 
8 #ifndef KSCONSTANTEXPRESSION_H
9 #define KSCONSTANTEXPRESSION_H
10 
11 #include "KSExpression.h"
12 
20  struct KEValue constantValue ;
21 } ;
22 
30 struct KSConstantExpression *
31 KEAllocateBooleanExpression(CNBoolean val, struct KELineInfo * linfo, struct CNResource * resource) ;
32 
40 struct KSConstantExpression *
41 KEAllocateSignedIntegerExpression(int64_t val, struct KELineInfo * linfo, struct CNResource * resource) ;
42 
50 struct KSConstantExpression *
51 KEAllocateUnsignedIntegerExpression(uint64_t val, struct KELineInfo * linfo, struct CNResource * resource) ;
52 
60 struct KSConstantExpression *
61 KEAllocateFloatExpression(double val, struct KELineInfo * linfo, struct CNResource * resource) ;
62 
70 struct KSConstantExpression *
71 KEAllocateStringExpression(struct CNString * val, struct KELineInfo * linfo, struct CNResource * resource) ;
72 
79 CNBoolean
80 KSIsConstantExpression(const struct KSExpression * src) ;
81 
82 #endif /* KSCONSTANTEXPRESSION_H */
83 
IR for KSExpression class.
Definition: KSExpression.h:15
struct KSConstantExpression * KEAllocateFloatExpression(double val, struct KELineInfo *linfo, struct CNResource *resource)
Allocate floating point value expression.
struct KSConstantExpression * KEAllocateStringExpression(struct CNString *val, struct KELineInfo *linfo, struct CNResource *resource)
Allocate boolean string expression.
struct KSConstantExpression * KEAllocateBooleanExpression(CNBoolean val, struct KELineInfo *linfo, struct CNResource *resource)
Allocate boolean constant expression.
struct KSConstantExpression * KEAllocateSignedIntegerExpression(int64_t val, struct KELineInfo *linfo, struct CNResource *resource)
Allocate signed integer constant expression.
struct KEValue constantValue
Definition: KSConstantExpression.h:20
struct KSExpression superClass
Definition: KSConstantExpression.h:18
CNBoolean KSIsConstantExpression(const struct KSExpression *src)
Check the expression class.
Definition: KSConstantExpression.h:16
struct KSConstantExpression * KEAllocateUnsignedIntegerExpression(uint64_t val, struct KELineInfo *linfo, struct CNResource *resource)
Allocate unsigned integer constant expression.