Re: Support for interactive interpreters... by Dan Sugalski- January 17, 2001 At 11:03 AM 11701 -0200, Branden wrote:>Hi.>>I&39;m actually not following this list from close and I searching the archives>isn&39;t that easy yet, so pardon me if this was already brought up.As Simon&39;s pointed out, there&39;s an RFC for this already.It&39;s actually not that tough to do now with eval, with two problems:) Eval won&39;t extend scope, so each statement you execute stands alone. (So lexicals go missing immediately)) Figuring out where a statement ends is a...http://www.nntp.perl.org/group/perl.perl6.internals.api.parser/2001/01/msg215.html Re: Support for interactive interpreters... by Tim Jenness- January 17, 2001 On Wed, 17 Jan 2001, Branden wrote:> I&39;m actually not following this list from close and I searching the archives> isn&39;t that easy yet, so pardon me if this was already brought up.>> I work with Perl and I also work with Tcl, and one thing I actually like> about Tcl is that it&39;s interactive like a shell, i.e. it gives you a prompt,> where you type commands in and, if you type a whole command by the end of> the line, it executes it, otherwise, it gives you another...http://www.nntp.perl.org/group/perl.perl6.internals.api.parser/2001/01/msg214.html Re: Support for interactive interpreters... by Simon Cozens- January 17, 2001 On Wed, Jan 17, 2001 at 11:03:05AM -0200, Branden wrote:> I work with Perl and I also work with Tcl, and one thing I actually like> about Tcl is that it&39;s interactive like a shell, i.e. it gives you a prompt,> where you type commands in and, if you type a whole command by the end of> the line, it executes it, otherwise, it gives you another prompt and keeps> reading more lines until the whole command is typed, when it&39;s executed.Sounds like http:dev.perl.orgrfc184.html to...http://www.nntp.perl.org/group/perl.perl6.internals.api.parser/2001/01/msg213.html Support for interactive interpreters... by Branden- January 17, 2001 Hi.I&39;m actually not following this list from close and I searching the archivesisn&39;t that easy yet, so pardon me if this was already brought up.I work with Perl and I also work with Tcl, and one thing I actually likeabout Tcl is that it&39;s interactive like a shell, i.e. it gives you a prompt,where you type commands in and, if you type a whole command by the end ofthe line, it executes it, otherwise, it gives you another prompt and keepsreading more lines until the whole command is...http://www.nntp.perl.org/group/perl.perl6.internals.api.parser/2001/01/msg212.html Re: Now, to try again... by Simon Cozens- January 3, 2001 On Tue, Jan 02, 2001 at 06:22:31PM -0800, Steve Fink wrote:> Just in looking at your example, it seems like some complex replacements> would be a bit of a pain to generate. It would be nice to have a> specification for those opcode replacements. Like, say, perl code. How> hard would it be to do:Trivial. Use B::svref_2object(sub your code here ) to create an op tree ina variable. Splice it in as before.-- "There is no statute of limitations on stupidity."-- Randomly...http://www.nntp.perl.org/group/perl.perl6.internals.api.parser/2001/01/msg211.html Re: Now, to try again... by Steve Fink- January 2, 2001 That is way cool.Though I&39;m not sure that all of the constructs of another language aregoing to be that easy to map into perl opcodes. Arithmetic, sure. Butperl opcodes aren&39;t exactly a universal intermediate language.Just in looking at your example, it seems like some complex replacementswould be a bit of a pain to generate. It would be nice to have aspecification for those opcode replacements. Like, say, perl code. Howhard would it be to do:use constant SUBTRACT_TWO_THINGS =>...http://www.nntp.perl.org/group/perl.perl6.internals.api.parser/2001/01/msg210.html |