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

malekith svnadmin at nemerle.org
Mon May 15 12:00:57 CEST 2006


Log:
*Don't* hide problems. Assign Parsing and Scanning pipelines in the beginning of Eval() in case completion engine screws it up.

Author: malekith
Date: Mon May 15 12:00:56 2006
New Revision: 6286

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	Mon May 15 12:00:56 2006
@@ -97,6 +97,8 @@
       Evaluator.code = code;
 
       Passes.LexingPipeline = fun (_) { null };
+      Passes.ParsingPipeline = fun (_) { [null] };
+      Passes.ScanningPipeline = DoTheStuff;
 
 //    Options.DumpTypedTree = true;
 //    Options.AdditionalDebug = true;
@@ -134,7 +136,8 @@
                     Evaluator.locals = prevlocals;
                     Evaluator.newvals = List.Rev (prevvals);
                     Evaluator.compiled = false;
-                    //System.Console.WriteLine (e);
+                    unless (e.Message == "Nothing to parse.")
+                      System.Console.WriteLine ($"Warning: $e");
                   }
                   else throw;
 



More information about the svn mailing list