ErrorUnterminatedString creates an error for an unterminated string literal. This occurs when a string literal (single or double quoted) is not properly closed before the end of the line or input. Parameters: - location: Position where the string started Returns an Error indicating the string was
(location models.Location)
| 94 | // |
| 95 | // Example: "unterminated string literal at line 3, column 15" |
| 96 | func ErrorUnterminatedString(location models.Location) *Error { |
| 97 | return NewError("unterminated string literal", location) |
| 98 | } |
| 99 | |
| 100 | // ErrorInvalidNumber creates an error for an invalid number format. |
| 101 | // |