Hello,
I am writing an XSLT 2.0 processor, and I want to give users the
option to write their own message and error handling routines and the
like in their favourite scripting language. So I thought of using
parrot.
But when I look at http://www.parrotcode.org/docs/embed.html, I can
see no way of
> "Jeff" == Jeff Horwitz <[EMAIL PROTECTED]> writes:
Jeff> you'll probably want to use the Parrot_call_sub_* API to
Jeff> call individual subroutines and get return values. "perldoc
Jeff> extend.c" in the parrot source for more info. you might
Thanks - I'll take a look at that.
> "Autrijus" == Autrijus Tang <[EMAIL PROTECTED]> writes:
Autrijus> You may wish to use Parrot_call_sub's "SS" form, where
Autrijus> you pass in a string and get back a string.
I take it SS stands for String-to-String?
Which section within http://www.parrotcode.org/docs/ covers this
> "Jeff" == Jeff Horwitz <[EMAIL PROTECTED]> writes:
>> Why's that a but? Haskell's a good language.
Jeff> no argument there -- just assumed you were looking for
Jeff> examples in C! :)
Actually, examples in any language are fine.
I'm actually writing in Eiffel, but I shall use
> "Autrijus" == Autrijus Tang <[EMAIL PROTECTED]> writes:
Autrijus> On Tue, May 17, 2005 at 03:00:14PM +0100, Colin Paul
Autrijus> Adams wrote:
>> But when I look at http://www.parrotcode.org/docs/embed.html, I
>> can see no way of getting information back from the script -
I've nearly got my first Eiffel program with an embedded parrot VM to compile
- well, actually, it DOES compile, just one remaining link problem,
which I can't figure out:
gcc -o hello -O2 -m486 -pipe
-I/opt/Eiffel55/studio/spec/linux-glibc2.1/include -I.
-I/home/colin/parrot/include -I/home/co
> "Jeff" == Jeff Horwitz <[EMAIL PROTECTED]> writes:
Jeff> you need to link with src/parrot_config.o (a recent change).
Thanks, that did the trick.
--
Colin Adams
Preston Lancashire
This function declaration does not appear to have a definition.
I commented out the declaration, in order to get my code to compile.
Is this the right thing to do? embed.c has a reference to it commented out.
--
Colin Adams
Preston Lancashire
> "Autrijus" == Autrijus Tang <[EMAIL PROTECTED]> writes:
Autrijus> You may wish to use Parrot_call_sub's "SS" form, where
Autrijus> you pass in a string and get back a string. Something
Autrijus> like this:
Autrijus> my $interp = Parrot_new(undef);
Autrijus> # .
> "Jeff" == Jeff Horwitz <[EMAIL PROTECTED]> writes:
>> What headers do I need to read for the parrot_find_global call?
Jeff> Parrot_PMC is the public type, and behind the scenes it's
Jeff> defined as PMC *.
Jeff> all you should need to include is embed.h, extend.h and for
> "Jeff" == Jeff Horwitz <[EMAIL PROTECTED]> writes:
Jeff> all you should need to include is embed.h, extend.h and for
Jeff> now, resources.h. i'm actually working on fleshing these
Jeff> files out to be more consistent wrt the public API.
I'm getting real close now.
But I'm hav
>>>>> "Colin" == Colin Paul Adams <[EMAIL PROTECTED]> writes:
>>>>> "Jeff" == Jeff Horwitz <[EMAIL PROTECTED]> writes:
Colin> Can't make 'UTF-8' charset strings
Colin> Despite what the documentation sa
> "Leopold" == Leopold Toetsch <[EMAIL PROTECTED]> writes:
Leopold> Yeah. I'm sorry to say that: you are just hitting a part
Leopold> of Parrot labeled "under (re)construction" and the docs
Leopold> aren't all up to date.
>> So does that mean I'm limited to singlebyte string
> "Autrijus" == Autrijus Tang <[EMAIL PROTECTED]> writes:
Autrijus> On Tue, May 17, 2005 at 03:00:14PM +0100, Colin Paul
Autrijus> Adams wrote:
>> But when I look at http://www.parrotcode.org/docs/embed.html, I
>> can see no way of getting information back from the script -
> "Autrijus" == Autrijus Tang <[EMAIL PROTECTED]> writes:
Autrijus> On Fri, May 20, 2005 at 10:34:39AM +0100, Colin Paul
Autrijus> Adams wrote:
>> I have a problem with this - namely that the function is
>> variadic, and the interface generator can't cope with this.
Autrij
>>>>> "Leopold" == Leopold Toetsch <[EMAIL PROTECTED]> writes:
Leopold> Colin Paul Adams <[EMAIL PROTECTED]> wrote:
>> I have a problem with this - namely that the function is
>> variadic, and the interface generator can't cop
I am trying to work out how to compile a perl script using pugs.
(Am I on the right mailing list?)
If I do pugs -h, then it suggests to me the -C option will do the
trick, but does not say what value the backend might be.
But I'm also having trouble running the script. It runs OK with perl
5, but
> "Autrijus" == Autrijus Tang <[EMAIL PROTECTED]> writes:
Autrijus> You may wish to use Parrot_call_sub's "SS" form, where
Autrijus> you pass in a string and get back a string. Something
Autrijus> like this:
Autrijus> my $interp = Parrot_new(undef);
Autrijus> # .
>>>>> "Leopold" == Leopold Toetsch <[EMAIL PROTECTED]> writes:
Leopold> Colin Paul Adams <[EMAIL PROTECTED]> wrote:
>> I have a problem with this - namely that the function is
>> variadic, and the interface generator can't cop
> "Dan" == Dan Sugalski <[EMAIL PROTECTED]> writes:
Dan> So, I see four real options:
Dan> 1) Someone fixes the Eiffel interface generator to understand
Dan> C variadic functions. 2) We provide a function and method
Dan> call interface that assumes you've already pre-filled i
> "Leopold" == Leopold Toetsch <[EMAIL PROTECTED]> writes:
Leopold> What's the difference WRT va_list? If the interface code
Leopold> can stuff things into an array, it sould as well be able
Leopold> to prepare a va_list.
You are quite right. I'll harass the author of the interfac
>>>>> "Leopold" == Leopold Toetsch <[EMAIL PROTECTED]> writes:
Leopold> Colin Paul Adams wrote:
>>>>>>> "Leopold" == Leopold Toetsch <[EMAIL PROTECTED]> writes:
Leopold> What's the difference WRT va_list?
> "Leopold" == Leopold Toetsch <[EMAIL PROTECTED]> writes:
Leopold> BTW (again) which interface generator for which Eiffel?
Oops. I missed that last bit.
All current Eiffel compilers are supported.
--
Colin Adams
Preston Lancashire
>>>>> "Colin" == Colin Paul Adams <[EMAIL PROTECTED]> writes:
>>>>> "Leopold" == Leopold Toetsch <[EMAIL PROTECTED]> writes:
Leopold> What's the difference WRT va_list? If the interface code
Leopold> can stuff
I'm getting the following error message:
Cross-type string appending (fixed_8/ascii) (fixed_8/ascii) unsupported
Just looking at the text alone suggests an incorrect error text (at
best).
--
Colin Adams
Preston Lancashire
25 matches
Mail list logo