ErrorInvalidNumber creates an error for an invalid number format. This is used when a number token has invalid syntax, such as: - Decimal point without digits: "123." - Exponent without digits: "123e" - Multiple decimal points: "12.34.56" Parameters: - value: The invalid number string - location:
(value string, location models.Location)
| 112 | // |
| 113 | // Example: "invalid number format: 123.e at line 1, column 10" |
| 114 | func ErrorInvalidNumber(value string, location models.Location) *Error { |
| 115 | return NewError(fmt.Sprintf("invalid number format: %s", value), location) |
| 116 | } |
| 117 | |
| 118 | // ErrorInvalidIdentifier creates an error for an invalid identifier. |
| 119 | // |