Ejemplo n.º 1
0
 public override string ToString()
 {
     if (boundType != null)
     {
         return(boundType.ToString());
     }
     if (floatType)
     {
         return("float literal");
     }
     else
     {
         return("integer literal");
     }
 }
Ejemplo n.º 2
0
 public override string ToString()
 {
     return(type.ToString());
 }
Ejemplo n.º 3
0
 public ParserVariableTypeMismatch(FrontendType varType, FrontendType otherType, Token t)
     : base(string.Format("Type of expression does not match variable type: variable type \"{0}\" != expression type {1}", varType.ToString(), otherType.ToString()), t)
 {
 }
Ejemplo n.º 4
0
 public ParserTypeMismatch(FrontendType type1, FrontendType type2, Token t)
     : base(string.Format("Type mismatch: type {0} is not equal to {1}", type1.ToString(), type2.ToString()), t)
 {
 }
Ejemplo n.º 5
0
 public ParserExpectedArgumentType(FrontendType expected, FrontendType got, int idx, Token t)
     : base(string.Format("function argument {2} has type \"{0}\", but got type \"{1}\"", expected.ToString(), got.ToString(), idx), t)
 {
 }
Ejemplo n.º 6
0
 public ParserExpectedType(FrontendType expected, FrontendType got, Token t)
     : base(string.Format("expected type \"{0}\", but got type \"{1}\"", expected.ToString(), got.ToString()), t)
 {
 }