summary refs log tree commit diff stats
path: root/nim/evals.pas
diff options
context:
space:
mode:
authorAndreas Rumpf <andreasrumpf@noname>2009-09-15 23:22:22 +0200
committerAndreas Rumpf <andreasrumpf@noname>2009-09-15 23:22:22 +0200
commit66a7e3d37c0303997a6b1a3b7ec263dfb8c07748 (patch)
tree40ae1ab8aeb9086b7310ea73ab8a2ed6b597f88b /nim/evals.pas
parent300430fbba28b408f7ac86ca46b03d9d50839399 (diff)
downloadNim-66a7e3d37c0303997a6b1a3b7ec263dfb8c07748.tar.gz
added tools and web dirs
Diffstat (limited to 'nim/evals.pas')
-rwxr-xr-x[-rw-r--r--]nim/evals.pas6
1 files changed, 4 insertions, 2 deletions
diff --git a/nim/evals.pas b/nim/evals.pas
index d522dfaf0..b88fa3304 100644..100755
--- a/nim/evals.pas
+++ b/nim/evals.pas
@@ -278,11 +278,13 @@ begin
   case t.kind of
     tyBool, tyChar, tyInt..tyInt64: result := newNodeIT(nkIntLit, info, t);
     tyFloat..tyFloat128: result := newNodeIt(nkFloatLit, info, t);
-    tyVar, tyPointer, tyPtr, tyRef, tyCString, tySequence, tyString:
+    tyVar, tyPointer, tyPtr, tyRef, tyCString, tySequence, tyString, tyExpr,
+    tyStmt, tyTypeDesc:
       result := newNodeIT(nkNilLit, info, t);
     tyObject: begin
       result := newNodeIT(nkPar, info, t);
       internalError(info, 'init to implement');
+      // XXX
     end;
     tyArray, tyArrayConstr: begin
       result := newNodeIT(nkBracket, info, t);
@@ -1283,7 +1285,7 @@ begin
     nkType..pred(nkNilLit): result := copyNode(n);
     nkNilLit: result := n; // end of atoms
 
-    nkCall, nkHiddenCallConv, nkMacroStmt, nkCommand: 
+    nkCall, nkHiddenCallConv, nkMacroStmt, nkCommand, nkCallStrLit: 
       result := evalMagicOrCall(c, n);
     nkCurly, nkBracket, nkRange: begin
       a := copyNode(n);