Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Punie
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Leopold Toetsch  
View profile  
 More options Jul 12 2005, 9:33 am
Newsgroups: perl.perl6.internals
From: l...@toetsch.at (Leopold Toetsch)
Date: Tue, 12 Jul 2005 15:33:27 +0200
Local: Tues, Jul 12 2005 9:33 am
Subject: Re: Punie

Allison Randal wrote:
> I'd like to add Punie to the Parrot repository.

Great. And for more fun I've created the basics of a NCI interface [1]
for ast functions. Heavily underdocumented and unfinished (as of an hour
hacking time ;-), but maybe someone takes it over and continues it. It
needs trunk rev 8598 for some added NCI signatures in src/call_list.txt.

It needs probably also a split into a "Past" and "Node" classes.
Compiling the resulting top node is also missing, but it should be quite
simple to either call the ast compile / emit functions with NCI or
create a better interface for that (I didn't look yet).

PS due to upcoming changes in parrot opcodes, you might avoid the
'compile' opcode. Instead:

   compi = compreg 'PIR'
   prog = compile compi, 'the_code'

the future is:

   prog = compi('the_code')

i.e. just invoke the compiler.

> Thanks,
> Allison

leo

[1]
$ tar -tzf libpast.tar.gz
ast.pir
libpast.pir
$ tar -xzf libpast.tar.gz
$ ./parrot ast.pir
libast loaded
open_unit ok

Py_Module(
   Py_Print(
     Const(hello
n)))
done

  libpast.tar.gz
1K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.