Punie
flag
3 messages - Collapse all
/groups/adfetch?adid=JS5o4hAAAADiLuMGohRsnon9g4IKs7PN
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
 
1.  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

    Reply to author    Forward  
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.
2.  Leopold Toetsch  
View profile  
 More options Jul 12 2005, 9:52 am
Newsgroups: perl.perl6.internals
From: l...@toetsch.at (Leopold Toetsch)
Date: Tue, 12 Jul 2005 15:52:00 +0200
Subject: Re: Punie

Leopold Toetsch wrote:
> needs trunk rev 8598 for some added NCI signatures in src/call_list.txt.

or branches/leo-ctx5 r8599.

leo


    Reply to author    Forward  
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.
3.  Bernhard Schmalhofer  
View profile  
 More options Jul 12 2005, 3:15 pm
Newsgroups: perl.perl6.internals
From: Bernhard.Schmalho...@gmx.de (Bernhard Schmalhofer)
Date: Tue, 12 Jul 2005 21:15:15 +0200
Local: Tues, Jul 12 2005 3:15 pm
Subject: Re: Punie
Autrijus Tang schrieb:

>If the goal is to demonstrate the capability of the upcoming expression
>parser and minimal AST, I think "bc", the arbitrary precision calculator
>language, is a good candidate.

Indeed it is. The nice thing about 'bc' is that is fairly simple, but
still has variables and subroutines.
It might also be a neat test case for a future BigNum PMC, as the specs
that it must support multi precission decimal coded numbers.

For my humble efforts, I'm just trying to make the step from evaluationg
'1+1' to evaluating '1+1+1'.

Anybody knows about a bc test suite?

CU, Bernhard


    Reply to author    Forward  
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.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google