error.go 878 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. package main
  2. const errInvalidName = "invalid name"
  3. const errInvalidNumber = "invalid number"
  4. const errInvalidInteger = "invalid integer"
  5. const errInvalidBool = "invalid bool"
  6. const errUnmatchedBracket = "unmatched bracket"
  7. const errDivisionByZero = "division by zero"
  8. const errNegativeSquareRoot = "negative square root"
  9. const errNameReserved = "name reserved"
  10. const errNameNotFound = "name not found"
  11. const errUnexpectedEndOfInput = "unexpected end of input"
  12. const errValueExpected = "value expected"
  13. const errWordExpceted = "word expected"
  14. const errListExpected = "list expected"
  15. const errWordOrListExpected = "word or list expected"
  16. const errEmptyWordOrList = "empty word or list"
  17. const errIndexOutOfBound = "index out of bound"
  18. const errIllegalRange = "illegal range"
  19. const errIllegalOperandType = "illegal operand type"
  20. const errFileError = "file error"