parrot reading from stdin
by Stephen Rawls other posts by this author
Jul 31 2002 10:18PM messages near this date
Re: Lexical variables, scratchpads, closures, ...
|
Re: parrot reading from stdin
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
Attachments:
test_main.c.patch.txt
unknown1
test_main.c.patch.txt
Thread:
Stephen Rawls
Melvin Smith
Stephen Rawls
|