{"issue":{"state":"open","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"milestone":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/d1588981e0248aaa0174906c99df180e?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"d1588981e0248aaa0174906c99df180e","url":"https://api.github.com/users/petdance","login":"petdance","id":41100},"assignee":null,"updated_at":"2011-11-01T05:41:42Z","labels":[{"name":"bug","color":"4C4A3F","url":"https://api.github.com/repos/petdance/scratch/labels/bug"},{"name":"imcc","color":"916EEE","url":"https://api.github.com/repos/petdance/scratch/labels/imcc"},{"name":"Pri-normal","color":"02600F","url":"https://api.github.com/repos/petdance/scratch/labels/Pri-normal"},{"name":"Sev-medium","color":"2F47CA","url":"https://api.github.com/repos/petdance/scratch/labels/Sev-medium"}],"comments":0,"closed_at":null,"url":"https://api.github.com/repos/petdance/scratch/issues/234","body":"This script:\n{{{\r\nperl -e 'print \".sub foo\\n\\tsay \\\"Hello, world\\\"\\n.end\\n# Last line\"' > x.pir \r\n}}}\r\n\r\nproduces a .pir file with no newline at the end. (Vim really WANTS to add a trailing newline, so beware how you look at it.)\r\n\r\nYou can check with\r\n{{{\r\nod -tx1z x.pir\r\n}}}\r\nwhich outputs something like:\r\n{{{\r\n0000000 2e 73 75 62 20 66 6f 6f 0a 09 73 61 79 20 22 48  >.sub foo..say \"H<\r\n0000020 65 6c 6c 6f 2c 20 77 6f 72 6c 64 22 0a 2e 65 6e  >ello, world\"..en<\r\n0000040 64 0a 23 20 4c 61 73 74 20 6c 69 6e 65           >d.# Last line<\r\n0000055\r\n}}}\r\n\r\nAt any rate, feeding that input to parrot (v2.0) produces:\r\n{{{\r\naustin@andLinux:~/kakapo$ parrot --output x.pbc x.pir\r\nerror:imcc:syntax error, unexpected $undefined, expecting $end (' ')\r\n\tin file 'x.pir' line 4\r\n}}}\r\n\r\nAppending a newline satisfies the parser.\r\n\r\nOriginally http://trac.parrot.org/parrot/ticket/1424","html_url":"https://github.com/petdance/scratch/issues/234","title":"Parrot will not parse PIR missing newline at EOF","number":234,"id":2107320,"created_at":"2011-11-01T05:41:42Z"},"action":"opened"}