Kiwi Script
KiwiScript Interpreter
|
IR for KSForStatement class. More...
Go to the source code of this file.
Data Structures | |
struct | KSForStatement |
Enumerations | |
enum | KSForStatementKind { KSForeachCollection, KSForeachRange } |
Functions | |
struct KSForStatement * | KSAllocateForeachCollectionStatement (struct KSVariable *var, struct KSExpression *collection, struct KSCompoundStatement *bodystmt, struct KELineInfo *linfo, struct CNResource *resource) |
Allocate for statement. More... | |
struct KSForStatement * | KSAllocateForeachRangeStatement (struct KSVariable *var, struct KSExpression *minexp, struct KSExpression *maxexp, struct KSCompoundStatement *bodystmt, struct KELineInfo *linfo, struct CNResource *resource) |
Allocate for statement. More... | |
IR for KSForStatement class.
enum KSForStatementKind |
Kind of for-statement
struct KSForStatement* KSAllocateForeachCollectionStatement | ( | struct KSVariable * | var, |
struct KSExpression * | collection, | ||
struct KSCompoundStatement * | bodystmt, | ||
struct KELineInfo * | linfo, | ||
struct CNResource * | resource | ||
) |
Allocate for statement.
var | Loop index variable |
collection | Collection expression |
bodystmt | Body statement |
linfo | Line information |
resource | Resource to allocate the object |
struct KSForStatement* KSAllocateForeachRangeStatement | ( | struct KSVariable * | var, |
struct KSExpression * | minexp, | ||
struct KSExpression * | maxexp, | ||
struct KSCompoundStatement * | bodystmt, | ||
struct KELineInfo * | linfo, | ||
struct CNResource * | resource | ||
) |
Allocate for statement.
var | Loop index variable |
minexp | Minumum value in range |
maxexp | Maximum value in range |
bodystmt | Body statement |
linfo | Line information |
resource | Resource to allocate the object |