On Sat Nov 17 11:40:48 2012, coke wrote: > On Mon Jun 07 14:23:47 2010, cognominal wrote: > > I am probably a lousy programmer but I hit again and again that > > unhelpful message. > > > > How to reproduce : > > > > eval "{\n\n\n\n\'}" > > > > Unable to parse blockoid, couldn't find final '}' at line 1 > > Getting closer (I'm assuming the \n's above were meant to be newlines, > but I did it both ways > below) although the given line numbers are wrong below: > > $ cat a.p6 > eval "{\n\n\n\n\'}" > $ ./perl6 a.p6 > ===SORRY!=== > Unable to parse expression in block; couldn't find final '}' at line > 2, near "\\n\\n\\n\\n\\'" > $ cat b.p6 > eval "{ > > > > \'}" > $ ./perl6 b.p6 > ===SORRY!=== > Unable to parse expression in quote:sym<apos>; couldn't find final "'" > at line 7, near ""
Slight improvements; line number in the second one is now only off by one, error messages now reference the file. $ cat a.p6 eval "{\n\n\n\n\'}" $ ./perl6 a.p6 ===SORRY!=== Error while compiling a.p6 Confused at a.p6:1 ------> eval "{\n\⏏n\n\n\'}" $ cat b.p6 eval "{ \'}" $ ./perl6 b.p6 ===SORRY!=== Error while compiling b.p6 Unable to parse expression in single quotes; couldn't find final "'" at b.p6:6 ------> <BOL>⏏<EOL> expecting any of: single quotes term$ ./perl6 --version This is perl6 version 2015.07.1-898-g3655638 built on MoarVM version 2015.08-34-g113c3b5 -- Will "Coke" Coleda