summary refs log tree commit diff stats
path: root/lib/core
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2011-10-10 02:04:15 +0200
committerAraq <rumpf_a@web.de>2011-10-10 02:04:15 +0200
commit51e01879ba1dea65f18d7e5396b0408a2091dfd9 (patch)
tree5648390e4a4af7c5293e7b0f40b7d0b97d2aa0fc /lib/core
parentc138cc36b4b4ad34f982492939db5ae16f409a88 (diff)
downloadNim-51e01879ba1dea65f18d7e5396b0408a2091dfd9.tar.gz
'bind' as a declarative statement
Diffstat (limited to 'lib/core')
-rwxr-xr-xlib/core/macros.nim4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/core/macros.nim b/lib/core/macros.nim
index 9395366e7..8a589896d 100755
--- a/lib/core/macros.nim
+++ b/lib/core/macros.nim
@@ -42,7 +42,8 @@ type
     nnkYieldStmt, nnkTryStmt, nnkFinally, nnkRaiseStmt, 

     nnkReturnStmt, nnkBreakStmt, nnkContinueStmt, nnkBlockStmt, 

     nnkDiscardStmt, nnkStmtList, nnkImportStmt, nnkFromStmt, 

-    nnkIncludeStmt, nnkCommentStmt, nnkStmtListExpr, nnkBlockExpr, 

+    nnkIncludeStmt, nnkBindStmt,

+    nnkCommentStmt, nnkStmtListExpr, nnkBlockExpr, 

     nnkStmtListType, nnkBlockType, nnkTypeOfExpr, nnkObjectTy, 

     nnkTupleTy, nnkRecList, nnkRecCase, nnkRecWhen, 

     nnkRefTy, nnkPtrTy, nnkVarTy, 

@@ -195,6 +196,7 @@ proc toLisp*(n: PNimrodNode): string {.compileTime.} =
   ## You can use this as a tool to explore the Nimrod's abstract syntax 

   ## tree and to discover what kind of nodes must be created to represent

   ## a certain expression/statement

+

   if n == nil: return "nil"

 

   result = $n.kind