-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use same format for parser errors as for evaluation errors (bug #45967).
* oct-parse.yy (get_file_line): Delete unused function. * oct-parse.yy (bison_error): New variable "in_file" to track whether parser is in a file or at the command line. Change format of output message when in a file to match that of an evaluation error. When at the command line, also print out the line of code that was incorrect and point to the error.
- Loading branch information
Rik
committed
Jan 17, 2024
1 parent
3c9c7f5
commit eebbfe1
Showing
1 changed file
with
30 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters