[svn] r5808: nemerle/trunk/tools/nemerlish/eval.n

nazgul svnadmin at nemerle.org
Thu Oct 6 22:47:32 CEST 2005


Log:
Fix compilation

Author: nazgul
Date: Thu Oct  6 22:47:18 2005
New Revision: 5808

Modified:
   nemerle/trunk/tools/nemerlish/eval.n

Modified: nemerle/trunk/tools/nemerlish/eval.n
==============================================================================
--- nemerle/trunk/tools/nemerlish/eval.n	(original)
+++ nemerle/trunk/tools/nemerlish/eval.n	Thu Oct  6 22:47:18 2005
@@ -193,8 +193,9 @@
           } );
         } );
         
+        def lexer = LexerCompletion (Evaluator.code, Evaluator.code.Length);
         my_method.GetHeader ().body =
-          FunBody.Parsed (MainParser.ParseExpr (my_method.DeclaringType.GlobalEnv, Evaluator.code + " ", Evaluator.code.Length));
+          FunBody.Parsed (MainParser.ParseExpr (my_method.DeclaringType.GlobalEnv, lexer));
       
         Evaluator.compiled = false
       }
@@ -245,7 +246,8 @@
                                                } ]>);
       mutable body = null;
       if (IsCompletionMode) {
-        body = MainParser.ParseExpr (env, Evaluator.code, Evaluator.code.Length);
+        def lexer = LexerCompletion (Evaluator.code, Evaluator.code.Length);
+        body = MainParser.ParseExpr (env, lexer);
       }
       else {
         body = MainParser.ParseExpr (env, Evaluator.code); 



More information about the svn mailing list