Re: The external interface for the parser piece

2000-11-30 Thread Damien Neil
On Mon, Nov 27, 2000 at 05:29:36PM -0500, Dan Sugalski wrote: int perl6_parse(PerlInterp *interp, void *source, int flags, void *extra_pointer); Count me in with the people who prefer: int perl6_parse(PerlInterp *interp, PerlIO

Re: Backtracking through the source

2000-11-30 Thread Simon Cozens
On Wed, Nov 29, 2000 at 02:57:23PM -0500, Dan Sugalski wrote: My only worry is, how do we reconcile this with the idea of Perl having an easily modifiable grammar and being a good environment for little-language stuff? That's a good question, and it depends on what Larry's thinking of for

Re: Backtracking through the source

2000-11-30 Thread Simon Cozens
On Thu, Nov 30, 2000 at 11:54:31AM +, Simon Cozens wrote: I categorically do *NOT* want perl6-internals to turn into a basic course in compiler design, purely for the benefit of those who know nothing at all about what they're trying to achieve. I'd like Perl 6 to be a masterwork, and

Re: Backtracking through the source

2000-11-30 Thread Bryan C. Warnock
On Thu, 30 Nov 2000, Simon Cozens wrote: On Thu, Nov 30, 2000 at 11:54:31AM +, Simon Cozens wrote: I categorically do *NOT* want perl6-internals to turn into a basic course in compiler design, purely for the benefit of those who know nothing at all about what they're trying to achieve.

Re: The external interface for the parser piece

2000-11-30 Thread Nick Ing-Simmons
Nicholas Clark [EMAIL PROTECTED] writes: We're trying to make this an easy embedding API. Yes, and we are in danger of "premature optimization" of the _interface_. What we need to start with is a list of "what we need to know" - they may as well be separate parameters at this point - then

Re: Opcodes (was Re: The external interface for the parser piece)

2000-11-30 Thread Buddha Buck
At 05:59 PM 11-30-2000 +, Nicholas Clark wrote: On Thu, Nov 30, 2000 at 12:46:26PM -0500, Dan Sugalski wrote: (Note, Dan was writing about "$a=1.2; $b=3; $c = $a + $b") $a=1; $b =3; $c = $a + $b If they don't exist already, then something like: newscalar a, num, 1.2

Re: Opcodes (was Re: The external interface for the parser piece)

2000-11-30 Thread Dan Sugalski
At 05:59 PM 11/30/00 +, Nicholas Clark wrote: On Thu, Nov 30, 2000 at 12:46:26PM -0500, Dan Sugalski wrote: (Moved over to -internals, since it's not really a parser API thing) At 11:06 AM 11/30/00 -0600, Jarkko Hietaniemi wrote: Presumably. But why are you then still talking about

Re: Opcodes (was Re: The external interface for the parser piece)

2000-11-30 Thread Chaim Frenkel
"DS" == Dan Sugalski [EMAIL PROTECTED] writes: The "add" op would, in C code, do something like: void add() { P6Scaler *addend; P6Scaler *adder; addend = pop(); adder = pop(); push addend-vtable-add(addend, adder); } it would be up to the addend-vtable-add() to figure out how to