ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl6-internals
perl6-internals
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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved