error.go 927 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 errFunctionExpected = "function expected"
  16. const errWordOrListExpected = "word or list expected"
  17. const errEmptyWordOrList = "empty word or list"
  18. const errIndexOutOfBound = "index out of bound"
  19. const errIllegalRange = "illegal range"
  20. const errIllegalOperandType = "illegal operand type"
  21. const errFileError = "file error"