develooper Front page | perl.perl6.internals | Postings from July 2002

parrot reading from stdin

Thread Next
From:
Stephen Rawls
Date:
July 31, 2002 18:49
Subject:
parrot reading from stdin
Message ID:
20020731221818.83390.qmail@web14502.mail.yahoo.com
I'm sure this has been thought out before, but I'll
press on anyway.  Assuming parrot shouldn't always
create intermediate files (.pbc), then shouldn't
parrot be able to take an input stream as an argument
instead of a filename?  That way, one just has to pipe
the output from assemble.pl to parrot.  Of course,
there will be times you want to create an intermediate
file, so I propose we leave that as default, and add a
command line option to take an input stream.  Below is
a quick implementation of that (using -s as the
option), but I'm not sending it over the parrot bugs
route, because I don't know if this is something you
all want or not.  There is one problem with this,
though: if there is no 'end' command in the code, then
you get an error that says "Error: Control left bounds
of byte-code block (now at location [LINE_NUMBER])!"

Stephen Rawls


__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com
Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About