Error Logging + Documentation

Exposing error logging and changing the default output stream. Setting projects to include documentation files generated from XMLDocs.
This commit is contained in:
Jordan Wages 2026-06-30 01:39:36 -05:00
commit eb4a511355
4 changed files with 7 additions and 5 deletions

View file

@ -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;