public InterpretorException(string exception, Nodes.Node.Coords coords)
 {
     this.Exception = exception;
     this.Coords = coords;
 }
Exemple #2
0
 private void SetCoords()
 {
     StartCoords = new Nodes.Node.Coords(x, y);
     EndCoords = GetEndCoords();
 }
Exemple #3
0
 public Lexem(int start, int end)
 {
     LexType = LexType.String;
     Value = 0;
     VarName = expression.Substring(start, end - start + 1);
     StartCoords = default(Nodes.Node.Coords);
     EndCoords = default(Nodes.Node.Coords);
     SetCoords();
 }
Exemple #4
0
 public Lexem(string name)
 {
     LexType = LexType.Variable;
     Value = 0;
     VarName = name;
     StartCoords = default(Nodes.Node.Coords);
     EndCoords = default(Nodes.Node.Coords);
     SetCoords();
 }
Exemple #5
0
 public Lexem(float number)
 {
     LexType = LexType.Number;
     Value = number;
     VarName = "";
     StartCoords = default(Nodes.Node.Coords);
     EndCoords = default(Nodes.Node.Coords);
     SetCoords();
 }
Exemple #6
0
 public Lexem(LexType type)
 {
     LexType = type;
     Value = 0;
     VarName = "";
     StartCoords = default(Nodes.Node.Coords);
     EndCoords = default(Nodes.Node.Coords);
     SetCoords();
 }