Re: Null PMC access while parsing javascript

2006-10-12 Thread Patrick R. Michaud
On Wed, Oct 11, 2006 at 04:34:17PM -0500, Patrick R. Michaud wrote: > On Wed, Oct 11, 2006 at 10:56:39PM +0200, Mehmet Yavuz Selim Soyturk wrote: > > I have rewritten the grammar. There are some problems though. > > > > - I don't know how to express thinks like: an identifier is > > <[a..zA..Z_$]>

Re: Null PMC access while parsing javascript

2006-10-11 Thread Patrick R. Michaud
On Wed, Oct 11, 2006 at 10:56:39PM +0200, Mehmet Yavuz Selim Soyturk wrote: > I have rewritten the grammar. There are some problems though. > > - I don't know how to express thinks like: an identifier is > <[a..zA..Z_$]>*, but not a . Something like: rule identifier > {<[a..zA..Z_$]>*} seems not t

Re: Null PMC access while parsing javascript

2006-10-11 Thread Mehmet Yavuz Selim Soyturk
I have rewritten the grammar. There are some problems though. - I don't know how to express thinks like: an identifier is <[a..zA..Z_$]>*, but not a . Something like: rule identifier {<[a..zA..Z_$]>*} seems not to allow identifiers that have keywords as prefix. - I couldn't make comments work. -

Re: Null PMC access while parsing javascript

2006-10-10 Thread Mehmet Yavuz Selim Soyturk
Hi Mehmet, you might have run into a Garbage-Collector bug. Try parrot --no-gc main.pir 'x' 'identifier' I had similar problems using PGE::P6Regex. '--no-gc' helped. Regards, Kiwi The same problem. I think that I now know the problem: the grammar is not complete. I was thinking that pgc

Re: Null PMC access while parsing javascript

2006-10-10 Thread kay-uwe.hull
Hi Mehmet, you might have run into a Garbage-Collector bug. Try parrot --no-gc main.pir 'x' 'identifier' I had similar problems using PGE::P6Regex. '--no-gc' helped. Regards, Kiwi

Null PMC access while parsing javascript

2006-10-09 Thread Mehmet Yavuz Selim Soyturk
js.pg in languages/ecmascript/src compiles just fine with pgc. But it gives a "Null PMC access" error while using the compiled pir file. Is it a pge bug? $ cd languages/ecmascript/src $ cat main.pir .include 'errors.pasm' .sub _main :main .param pmc args .local string source_code, rule_t