Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 3
0
 public SymbolError(Symbol symbol, string text)
     : base(ErrorUtils.MakeMessage(symbol, text))
 {
     this.text   = text;
     this.symbol = symbol;
 }
Exemplo n.º 4
0
 public BuildError(string file, Exception inner)
     : base(ErrorUtils.MakeMessage(file, 0, 0, inner.Message), inner)
 {
     this.text = inner.Message;
     this.file = file;
 }
Exemplo n.º 5
0
 public BuildError(string file, string msg)
     : base(ErrorUtils.MakeMessage(file, 0, 0, msg))
 {
     this.text = msg;
     this.file = file;
 }