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

parrot reading from stdin

Thread Next
Stephen Rawls
July 31, 2002 18:49
parrot reading from stdin
Message ID:
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 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
Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About