public static void Output(CodeError Error) { if (Error.Level >= ErrorLevel.Error) ErrorStream.WriteLine("{0}: {1}{2} (at line {3} in file {4})", Error.Level.ToString(), Error.Type.ToString(), (Error.Remarks != "") ? " " + Error.Remarks : "", Error.Line.Number, Error.Line.File); else Console.WriteLine("{0}: {1}{2} (at line {3} in file {4})", Error.Level.ToString(), Error.Type.ToString(), (Error.Remarks != "") ? " " + Error.Remarks : "", Error.Line.Number, Error.Line.File); }
public static void Output(CodeError Error) { if (Error.Level >= ErrorLevel.Error) { ErrorStream.WriteLine("{0}: {1}{2} (at line {3} in file {4})", Error.Level.ToString(), Error.Type.ToString(), (Error.Remarks != "") ? " " + Error.Remarks : "", Error.Line.Number, Error.Line.File); } else { Console.WriteLine("{0}: {1}{2} (at line {3} in file {4})", Error.Level.ToString(), Error.Type.ToString(), (Error.Remarks != "") ? " " + Error.Remarks : "", Error.Line.Number, Error.Line.File); } }
public ParserResult(ClawToken[] Tokens, CodeLine[] Lines, CodeError[] CodeErrors) { this.Errors = CodeErrors; this.Tokens = Tokens; }
public PreprocessorResult(CodeLine[] CodeLines, CodeError[] Errors) { this.CodeLines = CodeLines; this.Errors = Errors; }