Re: [TODO] IMCC - improve error messages

2007-07-21 Thread Klaas-Jan
On Jul 19, 10:37 pm, [EMAIL PROTECTED] (Nuno Carvalho via RT) wrote: > Greetings, > > On Mon Sep 13 21:31:17 2004, coke wrote: > > > > > The compile error has changed: > > > error:imcc:Sub isn't a PMC > > in file 'bar.imc' line 5 > > > But, IMO, this should still barf on the declaration of "index"

Re: [PROPOSAL][IMCC] Make .pcc_begin_{yield,return} syntax a bit stricter

2007-09-13 Thread Klaas-Jan
On Sep 13, 6:18 am, [EMAIL PROTECTED] (Patrick R. Michaud) wrote: > On Wed, Sep 12, 2007 at 09:07:00AM -0700, Klaas-Jan Stol wrote: > > I propose to make IMCC a bit stricter and have it enforce to use the > > appropriate closing directive. So, close .pcc_begin_return with a >

Re: [PROPOSAL] [IMCC] Remove '.sym' directive for defining symbolic local vars.

2007-09-14 Thread Klaas-Jan
On Sep 14, 1:47 pm, [EMAIL PROTECTED] (Joshua Isom) wrote: > On Sep 13, 2007, at 9:00 PM, Allison Randal wrote: > > > Joshua Isom wrote: > >> And while we're add it, can we add the magic to do the same thing we > >> to do labels to variables as well? > > > What thing? > > > Allison > > It's the lit

Re: [RFE] Allow comment lines in PIR .param list

2007-10-18 Thread Klaas-Jan
On Oct 18, 1:28 am, [EMAIL PROTECTED] (Jerry Gay) wrote: > On 10/17/07, via RT Bernhard Schmalhofer > > <[EMAIL PROTECTED]> wrote: > > # New Ticket Created by Bernhard Schmalhofer > > # Please include the string: [perl #46499] > > # in the subject line of all future correspondence about this issu

Re: parrot ops: what's an op?

2007-11-28 Thread Klaas-Jan
On Nov 28, 9:04 am, [EMAIL PROTECTED] (Joshua Isom) wrote: > How can you know what opcodes a dynamically loaded library provides at > compile time? If there's no other method than interp, then you'll have > to use interp to find out what's valid and what's not, without > redesigning how dynops are

Re: [BUG] imcc register allocation does not consider PASM register usage

2007-12-09 Thread Klaas-Jan
On Dec 8, 7:26 pm, [EMAIL PROTECTED] (Chromatic) wrote: > On Friday 07 December 2007 11:22:10 Klaas-Jan Stol wrote: > > > According to the spec, this is a bug. > > > Now, this isn't a big deal, because the semantics of the program aren't > > changed. The only p

Re: [BUG] t/examples/tutorial.t if_unless failure (Win32)

2007-12-17 Thread Klaas-Jan
On Dec 17, 11:35 am, [EMAIL PROTECTED] (Paul Cochrane) wrote: > # New Ticket Created by Paul Cochrane > # Please include the string: [perl #48749] > # in the subject line of all future correspondence about this issue. > # http://rt.perl.org/rt3/Ticket/Display.html?id=48749> > > I'm currently gett

Re: parsing hangs forever, fixed with custom token ws

2007-12-24 Thread Klaas-Jan
On Dec 24, 3:01 am, [EMAIL PROTECTED] (Stephen Weeks) wrote: > # New Ticket Created by Stephen Weeks > # Please include the string: [perl #49061] > # in the subject line of all future correspondence about this issue. > # http://rt.perl.org/rt3/Ticket/Display.html?id=49061> > > Working on getting

Components of Parrot

2005-11-30 Thread Klaas-Jan Stol
ry much like to include some graphics, which helps the reader to see how Parrot is constructed of "components" with certain functionality. Anyway, help of any kind (pointers to docs, or whatever) would be greatly appreciated :-), kind regards, klaas-jan

Re: [perl #37815] Tcl: implement [flush]

2005-12-02 Thread Klaas-Jan Stol
Hi, attached a patch with a start on the implementation of flush.pir Note that ParrotIO.pmc doesn't seem to have a method to find out what mode it is opened in, so that check cannot be done. regards, kj Will Coleda (via RT) wrote: # New Ticket Created by Will Coleda # Please include the st

[PATCH] .lex syntax in PIR docs (imcc)

2005-12-05 Thread Klaas-Jan Stol
hi, attached is a patch that adds the new ".lex" syntax. The description is copy/paste from PDD20. regards, klaas-jan --- imcc/docs/syntax.pod2005-12-05 19:49:30.0 +0100 +++ imcc/docs/syntax2.pod 2005-12-05 20:15:53.0 +0100 @@ -207,6 +207,25 @@ them w

Global storage access

2005-12-05 Thread Klaas-Jan Stol
and set_globals $P0 # set the hash table referenced by $P0 as the global storage. regards, klaas-jan

Re: Global storage access

2005-12-06 Thread Klaas-Jan Stol
Leopold Toetsch wrote: On Dec 5, 2005, at 21:58, Klaas-Jan Stol wrote: hi, if I understood correctly, the global storage is implemented as a hash table. If so, will it be possible to load this global hash table in a P register? It is possible right now. See the introspection interface

Strange behaviour of PIR register $P0 vs others

2005-12-18 Thread Klaas-Jan Stol
it? I just got a fresh Parrot, shouldn't be the problem here) thanks, klaas-jan .sub _LuaMain :main LuaProto_1_0() end .end .sub LuaProto_1_0 .lex 'p', $P0 .lex 'q', $P1 $P0 = new .Float $P0 = 1 $P1 = new .Float $P1 = 2 $P2 = find_name &#x

Threading PDD?

2005-12-23 Thread Klaas-Jan Stol
Hi, I'm wondering, is there a PDD about Thread implementation in Parrot? I searched the list archive, and found a lot of info. Dan even mentioned writing a PDD on the subject, but I havent' been able to find it. Thanks, klaas-jan

Event system implementation

2006-01-04 Thread Klaas-Jan Stol
d, but I'm talking about the big picture here; making sure events are handled immediately). Thanks in advance for reading this, klaas-jan

Event sub-system implementation

2006-01-04 Thread Klaas-Jan Stol
d, but I'm talking about the big picture here; making sure events are handled immediately). Thanks in advance for reading this, klaas-jan

Paper on Parrot [2]

2006-01-06 Thread Klaas-Jan Stol
more work. I hope it's worthwhile to read. I'll be finishing it this weekend. If you read it and think to see incorrect information, please inform me. (most information is from mailing lists, docs and Perl6 essentials 2nd ed., so some info could be out-of-date) Kind regards, Klaas-Jan Stol

Lua2PIR translator

2006-01-10 Thread Klaas-Jan Stol
ee what kind of code the Lua compiler should more or less be generating. Kind regards, Klaas-Jan Stol

declaration of 'clone'

2006-01-12 Thread Klaas-Jan Stol
* Definitions of constants and data structure for POSIX 1003.1b-1993 scheduling interface. Copyright (C) 1996-1999,2001,2002,2003 Free Software Foundation, Inc. This file is part of the GNU C Library. regards, klaas-jan

Re: declaration of 'clone'

2006-01-13 Thread Klaas-Jan Stol
Joshua Hoblitt wrote: On Thu, Jan 12, 2006 at 04:53:26PM +0100, Leopold Toetsch wrote: Klaas-Jan Stol wrote: Hi, I'm trying to implement some functions into the Lua PMCs, but I'm having trouble to compile them. I want to add a clone method to the LuaNil PMC (which sho

[PATCH] Add new_from_string() to LuaNumber (was: Re: .const & HLL improvement)

2006-01-13 Thread Klaas-Jan Stol
.const .LuaNumber n = "12.34" I presume LuaNumber doesn't have new_from_string (Float hasn't either). Attached is a patch that implements new_from_string() for LuaNumber. In my opinion it's handy to say: .const .LuaNumber n = "12.34" kind r

[PATCH] changes for LuaNil

2006-01-13 Thread Klaas-Jan Stol
This patch changes LuaNil PMC, it used to be a singleton, this patch makes it a normal PMC. some other methods are implemented for morphing into other Lua types (LuaString, LuaNumber, LuaBoolean). regards, klaas-jan --- languages/lua/classes/luanil.pmc2006-01-13 16:34:42.0 +0100

[PATCH] Changes for LuaTable

2006-01-13 Thread Klaas-Jan Stol
register to register copying (due to the by-value semantics of Lua values) regards, klaas-jan --- languages/lua/classes/luatable.pmc 2006-01-13 16:34:42.0 +0100 +++ languages/lua/classes/newluatable.pmc 2006-01-13 16:37:42.0 +0100 @@ -68,6 +68,31 @@ return

Qs WRT params: flags using get_params and .param notation

2006-01-15 Thread Klaas-Jan Stol
in the docs. Should it be working? regards, klaas-jan

Parrot link failure imc_yyin_set/get

2006-01-16 Thread Klaas-Jan Stol
make: *** [miniparrot] Error 1 [EMAIL PROTECTED]:~/parrot$ imc.c is compiled, and the Makefile looks ok too. regards, klaas-jan

Re: Parrot link failure imc_yyin_set/get

2006-01-16 Thread Klaas-Jan Stol
Klaas-Jan Stol wrote: Hi, since yesterday, Parrot breaks during compiling, with the following output: c++ -o miniparrot -L/usr/local/lib -Wl,-E compilers/imcc/main.o \ -Wl,-rpath=/home/klaas/parrot/blib/lib -L/home/klaas/parrot/blib/lib -lparrot -lnsl -ldl -lm -lcrypt -lutil -lpthread

Q: Keys can be strings/ints only?

2006-01-20 Thread Klaas-Jan Stol
d as constant key Kind regards, klaas-jan

Re: Q: Keys can be strings/ints only?

2006-01-20 Thread Klaas-Jan Stol
Matt Fowles wrote: Klaas-Jan~ On 1/20/06, Klaas-Jan Stol <[EMAIL PROTECTED]> wrote: Hi, I tried to index aggregates using several types of keys (that is, several types of values), and it seems only string and integer values can be used as keys. A quick look at the source in compiler

Re: Perl 6 Summary for 2006-01-10 though 2006-01-24

2006-01-25 Thread Klaas-Jan Stol
Matt Fowles wrote: LuaNil Morphing Klaas-Jan Stol proffered a patch which changed LuaNil from a singleton and made it morph to other Lua types when asked. Warnock applies. Actually, François Perrad applied this patch, but I think he only sent a reply to me. <http://xrl

Re: What version of perl is required?

2006-04-24 Thread Klaas-Jan Stol
7; was introduced in 5.6.0, I have lowered the requirements for Configure.pl to 5.006. CU, Bernhard I'm not sure if this has anything to do with this, but I know that perl 5.6 on OS X had troubles with parsing pmc files. (in my case at least, then after an upgrade to 5.8, the problems were gone) Maybe this is it? klaas-jan

:immediate behaviour

2006-05-18 Thread Klaas-Jan Stol
be skipped (if they're at the top of the file, where execution starts when :main is missing) when running the program? regards, klaas-jan

Coroutine reset functionality?

2006-05-29 Thread Klaas-Jan Stol
Hi, I couldn't find any functionality to reset a coroutine. Sometimes you want to reset a coroutine, so it starts at the beginning of the sub body, but there doesn't seem to be any method to do that. Am I overlooking something? Thanks, klaas-jan

Re: Coroutine reset functionality?

2006-05-29 Thread Klaas-Jan Stol
Coroutine, but it seems to me it shouldn't be too hard. Kind regards, klaas-jan On 5/29/06, Elizabeth Mattijsen <[EMAIL PROTECTED]> wrote: At 11:04 PM +0200 5/29/06, Klaas-Jan Stol wrote: >I couldn't find any functionality to reset a coroutine. Sometimes you want >to res

coroutine segfaults

2006-05-30 Thread Klaas-Jan Stol
end If the last .yield() is uncommented, it works, but otherwise, the last result (5, in this case), is printed twice. Can this be a bug? regards, klaas-jan

Re: [perl #39313] [TODO] or [BUG] improve PMC compiler

2006-06-07 Thread Klaas-Jan Stol
I can't provide a real fix, but at least it's easier to fix now, hopefully. A more kludgy fix may be to check whether $type equals "METHOD", if so, then there is something wrong. And it may be that not everything is handled by this. kind regards, klaas-jan Leopold Toe

Re: Readonly PMCs and types

2006-06-16 Thread Klaas-Jan Stol
check would have to be done, although this is done in fast C code, it *is* yet another check to be done. My 2c, klaas-jan

Tcl windows make problems

2007-01-12 Thread Klaas-Jan Stol
hat's possible. If that's corrected, you'll find 1 more problem: if binary.obj is linked, it can't resolve the symbol _PMCNULL. As a quick hack, I #define'd PMCNULL as NULL. After these fixes, it worked. Hope this helps you further. regards, klaas-jan

Adjust copyright notice

2007-01-13 Thread Klaas-Jan Stol
Hi, I tried to write a little script that checks for the copyright notice and updates it if necessary. THere are some comments on what should be done (SVN date comparing and stuff. hope this helps, kjs # # Start of a script to recursively process all files in a directory to change the copyri

Re: [perl #41237] [TODO] PMC Class name IDs will require a dot in front

2007-01-15 Thread Klaas-Jan Stol
his case, but usually it may not be as clear as this simple example) Just a thought, klaas-jan

Re: Tcl, trace, profiling...

2007-01-20 Thread Klaas-Jan Stol
I like the idea. Write up a more complete proposal and we'll all review it. A few thoughts: - The same mechanism could be used to implement Perl 6 sub wrapping, so keep that in mind as you're thinking through the implementation options. Names like "trace_sub" may be too specific to one par

Language Testing

2007-01-30 Thread Klaas-Jan Stol
ould provide a patch after that for compiler FAQ, right below "Languages" explaining this) Thanks, Klaas-Jan

Re: Language Testing

2007-01-30 Thread Klaas-Jan Stol
This will require either an update to lib/Parrot/Test.pm, or that you use a different language name for the language arg and module. I recommend the latter, e.g. "PIR_PGE". You won't need to change the language DIR or the compiled .pbc you're using. Regards. On Jan 30,

On PASM and PIR registers

2007-01-31 Thread Klaas-Jan Stol
r maybe skip the $ altogether, but again, that's not the point here)? regards, klaas-jan

Q on PIR vs PASM

2007-02-02 Thread Klaas-Jan Stol
well, can every PIR construct be translated directly to PASM? That is, can one still get the same behaviour that is achieved by all those high-level PIR constructs like :outer(...), in PASM as well? thanks in advance, klaas-jan

[PATCH] Update copyright for Parrot --version

2007-02-02 Thread Klaas-Jan Stol
attached a patch that makes ./parrot --version respond copyright 2001-2007, instead of 2001-2006. regards, kjs Index: compilers/imcc/main.c === --- compilers/imcc/main.c (revision 16864) +++ compilers/imcc/main.c (working copy) @@ -

Copyright chang script and test

2007-02-02 Thread Klaas-Jan Stol
ile::Find... The test file can just be put in the parrot/t/configure directory, that one will be run first when doing make test (so you don't have to wait for it to run) hope this helps, klaas-jan #! perl # Copyright (C) 2007, The Perl Foundation. =head1 NAME adjustcopyright.t - check co

[PATCH] PIR updates

2007-02-03 Thread Klaas-Jan Stol
p PIR grammar; now's the chance, after a 1.0 release it's fixed) * HTML version of pirgrammar.pod: pirgrammar.html * added a few more tests. When I made the patch, *again* it contained the contents of the new files twice. I manually removed the double contents from the patch file. reg

Q on Calling conventions; parameter order

2007-02-05 Thread Klaas-Jan Stol
be too hard for newcomers. In order to explain the calling conventions, I think being very clear on this point is important to get new users started easily. IMHO, PDD03 has some gaps here and there. kind regards, klaas-jan

[PATCH] update docs/imcc/calling_conventions.pod

2007-02-05 Thread Klaas-Jan Stol
hi, I noticed the file calling_conventions.pod misses the sub pragmas :postcomp (and I understood this is the same as :immediate) and :outer(sub). This patch adds these pragmas. regards, kjs Index: docs/imcc/calling_conventions.pod ===

PIR syntax (was: Re: What Skills Do We Need to Finish Parrot?)

2007-02-06 Thread Klaas-Jan Stol
ntation (well, that's my goal :-), it should come *very* close to the language that IMCC accepts. Anyway, pirgrammar.pod is a human-readable, cleaned-up version of the languages/PIR PGE implementation (no error handling). I also sent a patch that embeds examples into it. Allison klaas-jan

Re: [PATCH] Updates for languages/PIR/docs/pirgrammar.pod

2007-02-07 Thread Klaas-Jan Stol
chromatic wrote: On Wednesday 07 February 2007 08:33, Klaas-Jan Stol wrote: attached a patch for pirgrammar.pod and its html variant. Keeping this HTML in the repository sucks. Is there a possibilty that we could generate it automatically? What's preventing us from doing so

[PATCH] Update ASTGrammar for lang/PIR

2007-02-08 Thread Klaas-Jan Stol
hi, attached an update for ASTGrammar.tg for languages/PIR In order to print the past tree to screen, set 'target' to 'past' in pirc.pir. Currently, it is set to 'parse' in order to pass the tests. regards, klaas-jan Index: l

[PATCH] Updates and fixes for docs/imcc/syntax.pod

2007-02-08 Thread Klaas-Jan Stol
icing part. Please note that there is not a clear description of what slicing should do. (or I overlooked). My guess is that $P0 = $P1[ 1 .. 3 ] should return an array with values from $P1[1], $P1[2] and $P[3]. Any confirmations or error marking would be appreciated. regards, klaas-jan Index:

[PATCH] languages/PIR fix string encoding, hex and binary numbers

2007-02-08 Thread Klaas-Jan Stol
hi attached a patch for languages/PIR fixing: * added optional "utf8:" encoding specifier (according to docs/imcc/syntax.pod) * fixed support for binary and hex. numbers * added test for these changes. regards, klaas-jan Index: languages/PIR/

[PATCH] languages/PIR add command line options for output of pirc.pir (Parse/PAST/PIR)

2007-02-12 Thread Klaas-Jan Stol
hi, attached a patch for lang/PIR fixing: * add command line options to specify the kind of output: - parse only (used for tests currently) - PAST - PIR - parse and dump parse tree. (I stole the code from tge.pir) regards, kjs Index: languages/PIR/pirc.pir ===

[PATCH] languages/PIR more Tree Transformations

2007-02-12 Thread Klaas-Jan Stol
hi attached a patch for lang/PIR fixing: * extended TGE, but far from complete * minor changes in .pg file regards, kjs Index: languages/PIR/lib/ASTGrammar.tg === --- languages/PIR/lib/ASTGrammar.tg (revision 16957) +++ languages/P

PAST-pm: only PAST::Block allowed at root of PAST

2007-02-14 Thread Klaas-Jan Stol
t be enclosed by a subroutine. Will PAST-pm be able to handle this? regards, klaas-jan

[PATCH] languages/PIR updates

2007-02-15 Thread Klaas-Jan Stol
hi, attached a patch for languages/PIR, fixing: * changed PIRGrammar into PIR::Grammar (changes many files) * updated pirgrammar.pod * updates to ASTGrammar.tg regards, kjs Index: languages/PIR/docs/pirgrammar.pod === --- languages

[PATCH] lang/PIR macros!

2007-02-16 Thread Klaas-Jan Stol
hi, * attached a patch that implements better macro parsing * begin of better heredoc parsing,but not finished yet. * added test for macro parsing regards, klaas-jan Index: languages/PIR/examples/macro2.pir === --- languages/PIR

[PATCH] languages/lua PGE grammar fix

2007-02-16 Thread Klaas-Jan Stol
tory) can be parsed correctly now. regards, klaas-jan Index: languages/lua/src/lua.pg === --- languages/lua/src/lua.pg (revision 17016) +++ languages/lua/src/lua.pg (working copy) @@ -128,14 +128,13 @@ [ | ]*

[PATCH] languages/PIR

2007-02-17 Thread Klaas-Jan Stol
attached a patch for fixing * some things for parsing PASM instructions correctly * minor updates to pir.pg regards, kjs Index: languages/PIR/lib/pasm_args.pg === --- languages/PIR/lib/pasm_args.pg (revision 17016) +++ languages/PIR/

[PATCH] #39615: [TODO] get_outer op not defined in PDDs

2007-02-18 Thread Klaas-Jan Stol
hi, I was browsing the TODO list for some low hanging fruit, and saw a request for updating PDD20. Attached a patch that adds a description of get_outer() according to t/op/lexicals.t to PDD20. regards, klaas-jan Index: docs/pdds/pdd20_lexical_vars.pod

[PATCH] updates for docs/faq.pod

2007-02-18 Thread Klaas-Jan Stol
hould be moved to perl 6 faq. * updating Pugs. * reduce humor to provide facts/refs. Hope this helps, klaas-jan Index: docs/faq.pod === --- docs/faq.pod (revision 17016) +++ docs/faq.pod (working copy) @@ -37,14 +37,19 @@ Yes. -P

:anon flag bug?

2007-02-18 Thread Klaas-Jan Stol
hi, I was working on a test for addmethod op (ticket #39196: [TODO] tests - need to test addmethod) and tried this: .sub main :main # this works: hello() # while this does not: $P0 = find_name "hello" $P0() .end .sub hello :anon print "Hello world!\n" .end My question is

[PATCH] retry pir/pasm updates for lang/pir

2007-02-18 Thread Klaas-Jan Stol
hi, attached a new patch, replacing the other one from 2/17. kjs Index: languages/PIR/lib/pasm_args.pg === --- languages/PIR/lib/pasm_args.pg (revision 17016) +++ languages/PIR/lib/pasm_args.pg (working copy) @@ -1,4 +1,4 @@ -grammar

[PATCH] lang/PIR updates

2007-02-19 Thread Klaas-Jan Stol
hi attached a patch for languages/PIR, fixing: * added unique_reg to allowed flags for parameters * updated pirgrammar.pod * removed pirgrammar.html (can be generated) * minor fixes for pir.pg (both syntax and comments, now in POD format) regards, kjs Index: languages/PIR/docs/pirgrammar.pod ===

Re: [perl #41237] [TODO] PMC Class name IDs will require a dot in front

2007-02-19 Thread Klaas-Jan Stol
so, if we decide that anything starting with a dot that doesn't have parens is a type, I could write: $I0 = typeof $P0 if $I0 == .Foo goto bar You can do that already. Klaas-Jan Stol wrote: A dot also indicates that this is not pure PASM, but rather PIR. Except that the dot is req

Q on: #37542: [TODO] core - document behavior of multiple :load subpragmas in same compilation unit

2007-02-19 Thread Klaas-Jan Stol
I'm not sure how to respond on TODO tickets, any pointers would be appreciated. Meanwhile, I'll just compose an email, like this one. Ticket: #37542: [TODO] core - document behavior of multiple :load subpragmas in same compilation unit states: the behavior of multiple subroutines marked with

Deprecated ops: emit warning?

2007-02-20 Thread Klaas-Jan Stol
more "pressure" to start using the new ops. Then, after a deprecation cycle, they can be removed completely. If this is desirable, I'd be happy to provide a patch. Regards, klaas-jan

[PATCH] languages/lua lua.pg Grammar fixes

2007-02-20 Thread Klaas-Jan Stol
hi, attached a patch for the Lua grammar file for PGE (lua.pg). fixing: * reorganized some rules w.r.t. "do end" * rule instead of "..." * fixed table constructor rules (they now work correctly) -- stolen from lua51.pg regards, kjs Index: languages/lua/src/lua.pg ==

[PATCH] PDD16 NCI update with simple example

2007-02-23 Thread Klaas-Jan Stol
t could be improved), because I didn't know if updating this doc is desirable at this moment (any big changes pending?). If desired, I'd be happy to do more updates. Please let me know. At least there's full working code to do a simple NCI invocation. regards, klaas-ja

[PATCH] languages/PIR update pirgrammar.pod

2007-02-23 Thread Klaas-Jan Stol
fixed some style issues. The document languages/PIR/docs/pirgrammar.html should be removed from the repository -- don't know how to do this. Then later, we can generated it via the make file. regards, klaas-jan Index: languages/PIR/docs/pirgramma

[PATCH] Update DEPRECATED.pod

2007-02-23 Thread Klaas-Jan Stol
hi, attached a patch updating DEPRECATED.pod. it adds the deprecated ops from http://www.parrotcode.org/docs/ops/var.html (ops: store_global and friends) regards, kjs Index: DEPRECATED.pod === --- DEPRECATED.pod (revision 17165) ++

Re: [perl #41604] [BUG] pbc_output_is doesn't work?

2007-02-24 Thread Klaas-Jan Stol
James Keenan via RT wrote: On Fri Feb 23 13:44:22 2007, [EMAIL PROTECTED] wrote: I couldn't find any other tests that run pbc_output_is() (but admittedly, I didnt' look for too long), so it might be this function is never used. [parrot] 577 $ find t -name '*.t' | xargs grep -n pbc_ou

Re: [perl #41604] [BUG] pbc_output_is doesn't work?

2007-02-25 Thread Klaas-Jan Stol
Leopold Toetsch wrote: Am Samstag, 24. Februar 2007 17:05 schrieb Klaas-Jan Stol: it seems the .pbc files are stored in the repository is that desirable? Yes for these files. IMO, it would be enough to store the PIR only, and have that compiled to PBC If you have a

[PATCH] Pynie updates

2007-02-25 Thread Klaas-Jan Stol
hi, attached a patch for languages/Pynie, adding: * more grammar rules * statement.t for testing statements -- kinda simple, should be extended * keyword rule, so that id's are not recognized as identifiers regards, kjs Index: languages/pynie/src/parser/Grammar.pg =

[PATCH] welcome message and prompt for HLLCompiler

2007-02-25 Thread Klaas-Jan Stol
nguages\pynie>..\..\parrot pynie.pbc Python 2.5 for Parrot Type "help", "copyright", "credits" or "license" for more information. >>> (although the "help" etc. commands are not implemented). I don&

Re: [PATCH] welcome message and prompt for HLLCompiler

2007-02-25 Thread Klaas-Jan Stol
Patrick R. Michaud wrote: On Sun, Feb 25, 2007 at 04:39:17PM +0100, Klaas-Jan Stol wrote: most languages that can run in interactive mode have some kind of welcome message and prompt that is printed before the user can give any input. Yes, this is helpful. But also one of the things

Re: [PATCH] welcome message and prompt for HLLCompiler

2007-02-25 Thread Klaas-Jan Stol
compiler object. Just call $P0.'set_prompt'(0, ">>>") $P0.'set_prompt'(1, "...") (in case of Python/Pynie) It should overwrite the prompt in that slot. kjs On Feb 25, 2007, at 11:24 AM, Klaas-Jan Stol wrote: Patrick R. Michaud wrote: On Sun,

[PATCH] PDD6 updates

2007-02-26 Thread Klaas-Jan Stol
hi, I made some additional changes to PDD16: * added an example to do a callback. I left in the "old" explanation, but Im' not sure how much of that is still relevant. * small text improvements wrt example nci * removed "CHANGES" section: it was just duplicating the history section. This PDD

Re: [PATCH] PDD6 updates

2007-02-26 Thread Klaas-Jan Stol
chromatic wrote: On Monday 26 February 2007 01:34, Klaas-Jan Stol wrote: I made some additional changes to PDD16: * added an example to do a callback. I left in the "old" explanation, but Im' not sure how much of that is still relevant. * small text improvements wrt exampl

[PATCH] languages/Pynie

2007-02-26 Thread Klaas-Jan Stol
hi, I've done some more work on the grammar of Pynie. This patch also includes the other patch I sent yesterday (so that one can be skipped). This grammar is ALMOST done, but now I'm kinda stuck, because there is some infinite recursion :-( It would also need some cleanup, and of course test

[PATCH] Complete Pynie Grammar

2007-02-26 Thread Klaas-Jan Stol
hi, attached a patch that adds the last few bits of the Python grammar. Please note that there may be bugs, but I put in all rules, (not using the optable, that one is commented out) I had to put some things into comments in the ASTgrammar, the expression stuff needs work. I removed the lef

Pynie Grammar

2007-02-26 Thread Klaas-Jan Stol
hi, attached is Grammar.pg for Pynie. It's complete, but it needs some rework: the optable needs to be welded in again, instead of rec.decent rules for parsing expressions. This mail is just for archiving purposes (or in case someone feels brave). I'll have a look at putting back the optable

Re: [perl #41604] [BUG] pbc_output_is doesn't work?

2007-02-26 Thread Klaas-Jan Stol
jerry gay wrote: On 2/26/07, Leopold Toetsch <[EMAIL PROTECTED]> wrote: Am Sonntag, 25. Februar 2007 12:28 schrieb Klaas-Jan Stol: > Can you tell whether pbc_output_is() can take PIR code and compile it > during running the test? Or does is always expect the pbc file to be > pr

[Pynie] Grammar mostly done, but help needed

2007-02-28 Thread Klaas-Jan Stol
hi, attached my current version of languages/pynie's grammar. I can't get the binary operators "is not" and "not in" working correctly. The problem seems to be that "is parsed()" does not work. When I specify a rule in the is parsed() annotation, and in the rule I emit some message (just calli

[Pynie] Updated grammar: is [not] and [not] in workin

2007-02-28 Thread Klaas-Jan Stol
hi, attached an updated grammar for pynie/python. The PAST stuff is still broken, have to work a bit on that. THis grammar does part of the expression parsing recursive descent, and from comparisons (==, != etc) to the power operator (**) through the operator table. regards, kjs ## $Id: gra

Parrot won't build on cygwin

2007-03-04 Thread Klaas-Jan Stol
hi, I'm trying to compile parrot on cygwin, but it won't compile: mpilers/imcc/parser_util.o compilers/imcc/pcc.o -lcrypt -lgmp -lreadline compilers/imcc/main.c /usr/bin/perl.exe tools/build/parrot_config_c.pl --mini > \ src/null_config.c src/null_config.c gcc -o miniparrot.exe compilers

Re: [perl #41602] [TODO] MS VS 2005 deprecates strdup

2007-03-04 Thread Klaas-Jan Stol
[EMAIL PROTECTED] via RT wrote: Hi, Applied in 17281, thanks. For your question, strdup is fine since these are not garbage collectable strings (STRING*), just normal C char*'s. There is loads of them used in IMCC. Unfortunately though, there is an issue in that we don't free a load of 'em, or

Re: [perl #41602] [TODO] MS VS 2005 deprecates strdup

2007-03-05 Thread Klaas-Jan Stol
On 3/5/07, jerry gay <[EMAIL PROTECTED]> wrote: On 3/5/07, Kevin Tew <[EMAIL PROTECTED]> wrote: > Defining _CRT_SECURE_NO_DEPRECATE on the compiler command line is > probably the right solution here. > Kevin > i disagree. the reason C, C and C were deprecated is because they're non-ansi. therefo

PIR Tutorial

2007-03-08 Thread Klaas-Jan Stol
hi, I've started a bit on a PIR tutorial on the wiki. If anybody can spare a few moments, some feedback would be very welcome! regards, kjs

Glossary is missing from parrotcode.org

2007-03-09 Thread Klaas-Jan Stol
hi, on http://www.parrotcode.org/resources.html there's a link named "glossary". clicking on that link results in an empty page. The glossary is in docs/glossary.pod It should be put it in the website repository too. regards, kjs

Q: Should Op names be allowed to be identifiers.

2007-03-09 Thread Klaas-Jan Stol
hi, In PIR, it's allowed to use ops as names for variables. For instance, it's allowed to write: .sub main .local pmc inc .end However, when trying to increment your variable 'inc', you could write .sub main .local pmc inc inc inc .end which not only looks strange, but will not even comp

Re: PIR Tutorial

2007-03-09 Thread Klaas-Jan Stol
James E Keenan wrote: Klaas-Jan Stol wrote: hi, I've started a bit on a PIR tutorial on the wiki. If anybody can spare a few moments, some feedback would be very welcome! I am very glad to see this. One suggestion and one request for clarification: 1. First bullet point in FAQ shou

stuck with tge transformation for pynie using PAST::VarList

2007-03-12 Thread Klaas-Jan Stol
Hi, I'm working on parameters for Pynie. (functions are working! see my latest patch, still pending) I have some trouble with the tree transformation for Pynie. If anybody knows how to solve this, help would greatly be appreciated. The problem seems to be with PAST::VarList. Now, in Pynie thi

Re: [perl #41788] [BUG] Real registers are limited to 2 digits

2007-03-14 Thread Klaas-Jan Stol
Nuno Carvalho via RT wrote: Hi again, On Tue Mar 13 16:17:56 2007, coke wrote: Having a limit is more than reasonable, agreed: the goal of this patch was to bring the code into agreement with the docs. Consider this a poke to the Architect to verify/replace the previous overturn of the

lang/pir tests fail

2007-03-22 Thread Klaas-Jan Stol
hi, I noticed that some tests in languages/PIR are failing. I did not touch the project for some time, and last time I worked on it, everything was just fine. Below some of the output I get. My guess it has something to do with the test framework (wasn't that being refactored?) Also, tests i

Re: [perl #41955] [PATCH] Yet Another PIR -- in C

2007-03-22 Thread Klaas-Jan Stol
PIR does have an unimplemented #line operator as does c and perl. I think this was implemented some time ago. thanks for your feedback. regards, klaas-jan If you include support for it as well, you could consider doing macros and includes with a preprocessor instead of in the parser itself. It

Re: [perl #42073] [BUG]: compilers/pirc/Makefile not cleaned up by 'make realclean'

2007-03-25 Thread Klaas-Jan Stol
James Keenan (via RT) wrote: # New Ticket Created by James Keenan # Please include the string: [perl #42073] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=42073 > I expect that 'make realclean' will return my Parrot sand

  1   2   3   4   >