REPL feedback

Roy van Rijn roy.van.rijn at gmail.com
Thu Nov 27 10:23:11 UTC 2014


After some more hours of playing with the actual REPL environment,
I've come across some unlisted bugs/TODO items.

It seems to be fairly easy to get stuck in an endless
ReplParser.parseCompilationUnit loop, for example when you forget
'class':

-> A {
>> int i = 0;
>> }
*endless loop here, never reaches EOF in while loop*

And testing the parsing, the following (valid Java) isn't correctly parsed:

-> int[] i = {1,2,3};
|  Error --
|  illegal start of expression
|  int[] i = {1,2,3};
|            ^
|  Error --
|  not a statement
|  int[] i = {1,2,3};
|             ^^
|  Error --
|  ';' expected
|  int[] i = {1,2,3};
|

Is this kind of testing appreciated and/or needed at this point in
time, and are patches or tests welcome?


More information about the kulla-dev mailing list