erg icon indicating copy to clipboard operation
erg copied to clipboard

In REPL, if you can determine that an error has occurred on one line, you should not start a new line

Open C-BJ opened this issue 3 years ago • 2 comments

image

Here it should probably just report the error instead of starting a new line

C-BJ avatar Aug 18 '22 09:08 C-BJ

It will be necessary to have Parser inspect the input to determine if it is invalid, valid, or needs to be continued.

mtshiba avatar Aug 18 '22 09:08 mtshiba

Remember to delete the code added in #154 after thoroughly solving the issue

C-BJ avatar Oct 14 '22 13:10 C-BJ

Perhaps the option NeedNextLine should be added to ErrorKind: the REPL gives input to the parser, and when an error is returned, if the error type is NeedNextLine, it prompts for the next line of input.

mtshiba avatar Nov 26 '22 14:11 mtshiba