diff options
Diffstat (limited to 'compiler/ast.nim')
-rwxr-xr-x | compiler/ast.nim | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/compiler/ast.nim b/compiler/ast.nim index 870b2c016..88cf5fd61 100755 --- a/compiler/ast.nim +++ b/compiler/ast.nim @@ -277,6 +277,13 @@ const # getting ready for the future expr/stmt merge nkWhen* = nkWhenStmt nkWhenExpr* = nkWhenStmt + nkEffectList* = nkArgList + # hacks ahead: an nkEffectList is a node with 4 children: + exceptionEffects* = 0 # exceptions at position 0 + readEffects* = 1 # read effects at position 1 + writeEffects* = 2 # write effects at position 2 + tagEffects* = 3 # user defined tag ('gc', 'time' etc.) + effectListLen* = 4 # list of effects list type TTypeKind* = enum # order is important! |