public override string ToString() { if (boundType != null) { return(boundType.ToString()); } if (floatType) { return("float literal"); } else { return("integer literal"); } }
public override string ToString() { return(type.ToString()); }
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) { }
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) { }
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) { }
public ParserExpectedType(FrontendType expected, FrontendType got, Token t) : base(string.Format("expected type \"{0}\", but got type \"{1}\"", expected.ToString(), got.ToString()), t) { }