Amir Karger <[EMAIL PROTECTED]> wrote:
> Hi.

> I get the following error when I try to parrot -o basic.pbc
> merged_basic.pasm (in parrot 0.0.10 on Win32):

[ missing commas ]

> I also got an error from the "puts" function on line 120 of alpha.pasm.
> I don't know what puts means, but changing it to "print" allows that to
> compile.

Yep. puts was obsoleted.
I'll put in these fixes.

> The bad news is that when I then try to parrot it, Windows throws me an
> error window saying parrot died. I don't know why.

linux SIGSEGVs.  The problem is expr.pasm:419 containing a string
with 1024 chars in one line.  This is one of the known problems of
imcc/parrot. There is no official limit on lines, strings or identifier
length, while internally its assumed that there is one. This is of
course a bug.

We have to define some reasonable limits on identifier and line length.
Long strings need some syntax (here doc, continuation marker, C-like,
whatever) that allow for arbitrary length. And of course the string
internals needs fixing, implement snprintf or Parrot strings.

Thanks for reporting

> -Amir

leo

Reply via email to