diff --git a/src/Core/CSMic.Core.csproj b/src/Core/CSMic.Core.csproj index 7ee23ad..99f82be 100644 --- a/src/Core/CSMic.Core.csproj +++ b/src/Core/CSMic.Core.csproj @@ -7,10 +7,11 @@ enable False CSMic.Core - 2.0.2 + 2.1.0 CSMic README.md latest + True diff --git a/src/Core/InputInterpreter.cs b/src/Core/InputInterpreter.cs index 448862a..e9ebc6b 100644 --- a/src/Core/InputInterpreter.cs +++ b/src/Core/InputInterpreter.cs @@ -313,7 +313,7 @@ namespace CSMic if (parser.errors.count > 0) { // Soft error: set numeric to 0 and report a parse error message - ProduceOutput(0m, parser.errors.errMsgFormat); + ProduceOutput(0m, Interpreter.Errors.errMsgFormat); } else { diff --git a/src/Core/cocor/Parser.frame b/src/Core/cocor/Parser.frame index 6878147..dcd8d3f 100644 --- a/src/Core/cocor/Parser.frame +++ b/src/Core/cocor/Parser.frame @@ -118,8 +118,8 @@ public class Parser { public class Errors { public int count = 0; // number of errors detected - public System.IO.TextWriter errorStream = Console.Out; // error messages go to this stream - public string errMsgFormat = "-- line {0} col {1}: {2}"; // 0=line, 1=column, 2=text + public static System.IO.TextWriter errorStream = Console.Error; // error messages go to this stream + public static string errMsgFormat = "-- line {0} col {1}: {2}"; // 0=line, 1=column, 2=text public virtual void SynErr (int line, int col, int n) { string s; diff --git a/src/StandardLibrary/CSMic.StandardLibrary.csproj b/src/StandardLibrary/CSMic.StandardLibrary.csproj index c415e6a..cc1970b 100644 --- a/src/StandardLibrary/CSMic.StandardLibrary.csproj +++ b/src/StandardLibrary/CSMic.StandardLibrary.csproj @@ -6,10 +6,11 @@ CSMic.StandardLibrary enable enable - 2.1.0 + 2.1.1 CSMic.StandardLibrary README.md latest + True