Пример #1
0
 public SemanticError(Module module, IParseTree place, ITokenStream tokens, string msg)
     : base(ErrorUtils.MakeMessage(module, place, tokens, msg))
 {
     this.text   = msg;
     this.module = module;
     this.place  = place;
     this.tokens = tokens;
 }
Пример #2
0
 public SyntaxError(string file, int line, int char_pos, string msg)
     : base(ErrorUtils.MakeMessage(file, line, char_pos, msg))
 {
     this.text     = msg;
     this.line     = line;
     this.char_pos = char_pos;
     this.file     = file;
 }
Пример #3
0
 public SymbolError(Symbol symbol, string text)
     : base(ErrorUtils.MakeMessage(symbol, text))
 {
     this.text   = text;
     this.symbol = symbol;
 }
Пример #4
0
 public BuildError(string file, Exception inner)
     : base(ErrorUtils.MakeMessage(file, 0, 0, inner.Message), inner)
 {
     this.text = inner.Message;
     this.file = file;
 }
Пример #5
0
 public BuildError(string file, string msg)
     : base(ErrorUtils.MakeMessage(file, 0, 0, msg))
 {
     this.text = msg;
     this.file = file;
 }