petit parser on gemstone?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
28 messages Options
12
Reply | Threaded
Open this post in threaded view
|

petit parser on gemstone?

EstebanLM
Hi,
Does anybody knows if petit parser loads on Gemstone? I'm having a compile error trying to load it, and I think it is because of #==> selector (but I can't be sure)

thanks,
Esteban
Reply | Threaded
Open this post in threaded view
|

Re: petit parser on gemstone?

Ryan Simmons-2
I tried to port it awhile back myself and managed to get about as far as you have.

There is a port of smacc to Gemstone although if you are aware of this you might be trying to port petit parser to get away from smacc.

If the parser you are trying is build is simple enough you could do what we did and load tirade and subclass its parser.
Sent via my BlackBerry from Vodacom - let your email find you!

-----Original Message-----
From: Esteban Lorenzano <[hidden email]>
Sender: [hidden email]
Date: Tue, 21 Jun 2011 13:58:30
To: GemStone Seaside beta discussion<[hidden email]>
Reply-To: GemStone Seaside beta discussion <[hidden email]>
Subject: [GS/SS Beta] petit parser on gemstone?

Hi,
Does anybody knows if petit parser loads on Gemstone? I'm having a compile error trying to load it, and I think it is because of #==> selector (but I can't be sure)

thanks,
Esteban
Reply | Threaded
Open this post in threaded view
|

Re: petit parser on gemstone?

Dale Henrichs
In reply to this post by EstebanLM
Esteban,

I have not tried to port petit parser to GemStone... I think it is a worthwhile effort ... if you'd send me mail with configuration/load details for getting to the point where you are at right now, I could take a shot at loading it and scope out the porting effort ...

Dale

----- Original Message -----
| From: "Esteban Lorenzano" <[hidden email]>
| To: "GemStone Seaside beta discussion" <[hidden email]>
| Sent: Tuesday, June 21, 2011 9:58:30 AM
| Subject: [GS/SS Beta] petit parser on gemstone?
|
| Hi,
| Does anybody knows if petit parser loads on Gemstone? I'm having a
| compile error trying to load it, and I think it is because of #==>
| selector (but I can't be sure)
|
| thanks,
| Esteban
Reply | Threaded
Open this post in threaded view
|

Re: petit parser on gemstone?

EstebanLM
Hi Dale,
In fact, i didn't get too far... just tried loading ConfigurationOfPetitParser from http://source.lukas-renggli.ch/petit and then, executed this:

MCPlatformSupport commitOnAlmostOutOfMemoryDuring: [
        (ConfigurationOfPetitParser project version: #'stable') load: #('Core') ].

I first get a dependency error (missing BlockClosure), then proceed, then get the ==> error

cheers,
Esteban

El 21/06/2011, a las 2:43p.m., Dale Henrichs escribió:

> Esteban,
>
> I have not tried to port petit parser to GemStone... I think it is a worthwhile effort ... if you'd send me mail with configuration/load details for getting to the point where you are at right now, I could take a shot at loading it and scope out the porting effort ...
>
> Dale
>
> ----- Original Message -----
> | From: "Esteban Lorenzano" <[hidden email]>
> | To: "GemStone Seaside beta discussion" <[hidden email]>
> | Sent: Tuesday, June 21, 2011 9:58:30 AM
> | Subject: [GS/SS Beta] petit parser on gemstone?
> |
> | Hi,
> | Does anybody knows if petit parser loads on Gemstone? I'm having a
> | compile error trying to load it, and I think it is because of #==>
> | selector (but I can't be sure)
> |
> | thanks,
> | Esteban

Reply | Threaded
Open this post in threaded view
|

Re: petit parser on gemstone?

Dale Henrichs
That's what I wanted to know:)

I'll take a look this afternoon...

Dale

----- Original Message -----
| From: "Esteban Lorenzano" <[hidden email]>
| To: "GemStone Seaside beta discussion" <[hidden email]>
| Sent: Tuesday, June 21, 2011 11:43:31 AM
| Subject: Re: [GS/SS Beta] petit parser on gemstone?
|
| Hi Dale,
| In fact, i didn't get too far... just tried loading
| ConfigurationOfPetitParser from http://source.lukas-renggli.ch/petit
| and then, executed this:
|
| MCPlatformSupport commitOnAlmostOutOfMemoryDuring: [
| (ConfigurationOfPetitParser project version: #'stable') load:
| #('Core') ].
|
| I first get a dependency error (missing BlockClosure), then proceed,
| then get the ==> error
|
| cheers,
| Esteban
|
| El 21/06/2011, a las 2:43p.m., Dale Henrichs escribió:
|
| > Esteban,
| >
| > I have not tried to port petit parser to GemStone... I think it is
| > a worthwhile effort ... if you'd send me mail with
| > configuration/load details for getting to the point where you are
| > at right now, I could take a shot at loading it and scope out the
| > porting effort ...
| >
| > Dale
| >
| > ----- Original Message -----
| > | From: "Esteban Lorenzano" <[hidden email]>
| > | To: "GemStone Seaside beta discussion"
| > | <[hidden email]>
| > | Sent: Tuesday, June 21, 2011 9:58:30 AM
| > | Subject: [GS/SS Beta] petit parser on gemstone?
| > |
| > | Hi,
| > | Does anybody knows if petit parser loads on Gemstone? I'm having
| > | a
| > | compile error trying to load it, and I think it is because of
| > | #==>
| > | selector (but I can't be sure)
| > |
| > | thanks,
| > | Esteban
|
|
Reply | Threaded
Open this post in threaded view
|

Re: petit parser on gemstone?

Lukas Renggli
On one hand I agree that it was a stupid decision to use #==> in the
first place (also GNU Smalltalk complained), but on the other hand
#==> is a totally valid binary selector according to ANSI Smalltalk.
Furthermore, there is already a significant amount of code that uses
#==> so it is kind of hard to change without breaking many grammars
:-)

Lukas

On 21 June 2011 22:13, Dale Henrichs <[hidden email]> wrote:

> That's what I wanted to know:)
>
> I'll take a look this afternoon...
>
> Dale
>
> ----- Original Message -----
> | From: "Esteban Lorenzano" <[hidden email]>
> | To: "GemStone Seaside beta discussion" <[hidden email]>
> | Sent: Tuesday, June 21, 2011 11:43:31 AM
> | Subject: Re: [GS/SS Beta] petit parser on gemstone?
> |
> | Hi Dale,
> | In fact, i didn't get too far... just tried loading
> | ConfigurationOfPetitParser from http://source.lukas-renggli.ch/petit
> | and then, executed this:
> |
> | MCPlatformSupport commitOnAlmostOutOfMemoryDuring: [
> |       (ConfigurationOfPetitParser project version: #'stable') load:
> |       #('Core') ].
> |
> | I first get a dependency error (missing BlockClosure), then proceed,
> | then get the ==> error
> |
> | cheers,
> | Esteban
> |
> | El 21/06/2011, a las 2:43p.m., Dale Henrichs escribió:
> |
> | > Esteban,
> | >
> | > I have not tried to port petit parser to GemStone... I think it is
> | > a worthwhile effort ... if you'd send me mail with
> | > configuration/load details for getting to the point where you are
> | > at right now, I could take a shot at loading it and scope out the
> | > porting effort ...
> | >
> | > Dale
> | >
> | > ----- Original Message -----
> | > | From: "Esteban Lorenzano" <[hidden email]>
> | > | To: "GemStone Seaside beta discussion"
> | > | <[hidden email]>
> | > | Sent: Tuesday, June 21, 2011 9:58:30 AM
> | > | Subject: [GS/SS Beta] petit parser on gemstone?
> | > |
> | > | Hi,
> | > | Does anybody knows if petit parser loads on Gemstone? I'm having
> | > | a
> | > | compile error trying to load it, and I think it is because of
> | > | #==>
> | > | selector (but I can't be sure)
> | > |
> | > | thanks,
> | > | Esteban
> |
> |
>



--
Lukas Renggli
www.lukas-renggli.ch
Reply | Threaded
Open this post in threaded view
|

Re: petit parser on gemstone?

Dale Henrichs
In reply to this post by EstebanLM
Esteban,

GemStone _is_ having trouble with that selector, so I'm waiting to hear about status (never, soon, eventually)...

Dale

----- Original Message -----
| From: "Esteban Lorenzano" <[hidden email]>
| To: "GemStone Seaside beta discussion" <[hidden email]>
| Sent: Tuesday, June 21, 2011 9:58:30 AM
| Subject: [GS/SS Beta] petit parser on gemstone?
|
| Hi,
| Does anybody knows if petit parser loads on Gemstone? I'm having a
| compile error trying to load it, and I think it is because of #==>
| selector (but I can't be sure)
|
| thanks,
| Esteban
Reply | Threaded
Open this post in threaded view
|

Re: petit parser on gemstone?

Dale Henrichs
Esteban,

Unfortunately we won't have support for 3 character binary selectors until post GemStone 3.0 ...

Will not having #'==>' seriously affect your usage of PetitParser or can we fudge the problem for your purposes?

Dale

----- Original Message -----
| From: "Dale Henrichs" <[hidden email]>
| To: "GemStone Seaside beta discussion" <[hidden email]>
| Sent: Tuesday, June 21, 2011 1:14:34 PM
| Subject: Re: [GS/SS Beta] petit parser on gemstone?
|
| Esteban,
|
| GemStone _is_ having trouble with that selector, so I'm waiting to
| hear about status (never, soon, eventually)...
|
| Dale
|
| ----- Original Message -----
| | From: "Esteban Lorenzano" <[hidden email]>
| | To: "GemStone Seaside beta discussion" <[hidden email]>
| | Sent: Tuesday, June 21, 2011 9:58:30 AM
| | Subject: [GS/SS Beta] petit parser on gemstone?
| |
| | Hi,
| | Does anybody knows if petit parser loads on Gemstone? I'm having a
| | compile error trying to load it, and I think it is because of #==>
| | selector (but I can't be sure)
| |
| | thanks,
| | Esteban
|
Reply | Threaded
Open this post in threaded view
|

Re: petit parser on gemstone?

EstebanLM
Hi Dale,
what we can do is a refactor of petit parser without #==>, and replace it by... for instance #mapTo:, and use that one... but that will be a fork, sadly :(

cheers,
Esteban

El 21/06/2011, a las 6:58p.m., Dale Henrichs escribió:

> Esteban,
>
> Unfortunately we won't have support for 3 character binary selectors until post GemStone 3.0 ...
>
> Will not having #'==>' seriously affect your usage of PetitParser or can we fudge the problem for your purposes?
>
> Dale
>
> ----- Original Message -----
> | From: "Dale Henrichs" <[hidden email]>
> | To: "GemStone Seaside beta discussion" <[hidden email]>
> | Sent: Tuesday, June 21, 2011 1:14:34 PM
> | Subject: Re: [GS/SS Beta] petit parser on gemstone?
> |
> | Esteban,
> |
> | GemStone _is_ having trouble with that selector, so I'm waiting to
> | hear about status (never, soon, eventually)...
> |
> | Dale
> |
> | ----- Original Message -----
> | | From: "Esteban Lorenzano" <[hidden email]>
> | | To: "GemStone Seaside beta discussion" <[hidden email]>
> | | Sent: Tuesday, June 21, 2011 9:58:30 AM
> | | Subject: [GS/SS Beta] petit parser on gemstone?
> | |
> | | Hi,
> | | Does anybody knows if petit parser loads on Gemstone? I'm having a
> | | compile error trying to load it, and I think it is because of #==>
> | | selector (but I can't be sure)
> | |
> | | thanks,
> | | Esteban
> |

Reply | Threaded
Open this post in threaded view
|

Re: petit parser on gemstone?

Dale Henrichs
Esteban,

Yeah, it's not ideal, but until we can fix the parser in 3.1, it will be the only way:)

Dale

----- Original Message -----
| From: "Esteban Lorenzano" <[hidden email]>
| To: "GemStone Seaside beta discussion" <[hidden email]>
| Sent: Tuesday, June 21, 2011 3:03:00 PM
| Subject: Re: [GS/SS Beta] petit parser on gemstone?
|
| Hi Dale,
| what we can do is a refactor of petit parser without #==>, and
| replace it by... for instance #mapTo:, and use that one... but that
| will be a fork, sadly :(
|
| cheers,
| Esteban
|
| El 21/06/2011, a las 6:58p.m., Dale Henrichs escribió:
|
| > Esteban,
| >
| > Unfortunately we won't have support for 3 character binary
| > selectors until post GemStone 3.0 ...
| >
| > Will not having #'==>' seriously affect your usage of PetitParser
| > or can we fudge the problem for your purposes?
| >
| > Dale
| >
| > ----- Original Message -----
| > | From: "Dale Henrichs" <[hidden email]>
| > | To: "GemStone Seaside beta discussion"
| > | <[hidden email]>
| > | Sent: Tuesday, June 21, 2011 1:14:34 PM
| > | Subject: Re: [GS/SS Beta] petit parser on gemstone?
| > |
| > | Esteban,
| > |
| > | GemStone _is_ having trouble with that selector, so I'm waiting
| > | to
| > | hear about status (never, soon, eventually)...
| > |
| > | Dale
| > |
| > | ----- Original Message -----
| > | | From: "Esteban Lorenzano" <[hidden email]>
| > | | To: "GemStone Seaside beta discussion"
| > | | <[hidden email]>
| > | | Sent: Tuesday, June 21, 2011 9:58:30 AM
| > | | Subject: [GS/SS Beta] petit parser on gemstone?
| > | |
| > | | Hi,
| > | | Does anybody knows if petit parser loads on Gemstone? I'm
| > | | having a
| > | | compile error trying to load it, and I think it is because of
| > | | #==>
| > | | selector (but I can't be sure)
| > | |
| > | | thanks,
| > | | Esteban
| > |
|
|
Reply | Threaded
Open this post in threaded view
|

Re: petit parser on gemstone?

EstebanLM
Ok, if you create "PortablePetitParser" on gemstone ss, and assign me as a developer (or better, rw rights to everybody), I will commit a first attempt (just a "rename method" refactor on ==> and >=>), and see what happens :)

Esteban

El 21/06/2011, a las 8:04p.m., Dale Henrichs escribió:

> Esteban,
>
> Yeah, it's not ideal, but until we can fix the parser in 3.1, it will be the only way:)
>
> Dale
>
> ----- Original Message -----
> | From: "Esteban Lorenzano" <[hidden email]>
> | To: "GemStone Seaside beta discussion" <[hidden email]>
> | Sent: Tuesday, June 21, 2011 3:03:00 PM
> | Subject: Re: [GS/SS Beta] petit parser on gemstone?
> |
> | Hi Dale,
> | what we can do is a refactor of petit parser without #==>, and
> | replace it by... for instance #mapTo:, and use that one... but that
> | will be a fork, sadly :(
> |
> | cheers,
> | Esteban
> |
> | El 21/06/2011, a las 6:58p.m., Dale Henrichs escribió:
> |
> | > Esteban,
> | >
> | > Unfortunately we won't have support for 3 character binary
> | > selectors until post GemStone 3.0 ...
> | >
> | > Will not having #'==>' seriously affect your usage of PetitParser
> | > or can we fudge the problem for your purposes?
> | >
> | > Dale
> | >
> | > ----- Original Message -----
> | > | From: "Dale Henrichs" <[hidden email]>
> | > | To: "GemStone Seaside beta discussion"
> | > | <[hidden email]>
> | > | Sent: Tuesday, June 21, 2011 1:14:34 PM
> | > | Subject: Re: [GS/SS Beta] petit parser on gemstone?
> | > |
> | > | Esteban,
> | > |
> | > | GemStone _is_ having trouble with that selector, so I'm waiting
> | > | to
> | > | hear about status (never, soon, eventually)...
> | > |
> | > | Dale
> | > |
> | > | ----- Original Message -----
> | > | | From: "Esteban Lorenzano" <[hidden email]>
> | > | | To: "GemStone Seaside beta discussion"
> | > | | <[hidden email]>
> | > | | Sent: Tuesday, June 21, 2011 9:58:30 AM
> | > | | Subject: [GS/SS Beta] petit parser on gemstone?
> | > | |
> | > | | Hi,
> | > | | Does anybody knows if petit parser loads on Gemstone? I'm
> | > | | having a
> | > | | compile error trying to load it, and I think it is because of
> | > | | #==>
> | > | | selector (but I can't be sure)
> | > | |
> | > | | thanks,
> | > | | Esteban
> | > |
> |
> |

Reply | Threaded
Open this post in threaded view
|

Re: petit parser on gemstone?

Dale Henrichs
Done[1]. You're an admin and I added GLASS_DEVS group as devs ... as admin, you can change whatever you'd like:)

Dale

[1] http://seaside.gemstone.com/ss/PharoPlatformSupport

----- Original Message -----
| From: "Esteban Lorenzano" <[hidden email]>
| To: "GemStone Seaside beta discussion" <[hidden email]>
| Sent: Tuesday, June 21, 2011 7:19:29 PM
| Subject: Re: [GS/SS Beta] petit parser on gemstone?
|
| Ok, if you create "PortablePetitParser" on gemstone ss, and assign me
| as a developer (or better, rw rights to everybody), I will commit a
| first attempt (just a "rename method" refactor on ==> and >=>), and
| see what happens :)
|
| Esteban
|
| El 21/06/2011, a las 8:04p.m., Dale Henrichs escribió:
|
| > Esteban,
| >
| > Yeah, it's not ideal, but until we can fix the parser in 3.1, it
| > will be the only way:)
| >
| > Dale
| >
| > ----- Original Message -----
| > | From: "Esteban Lorenzano" <[hidden email]>
| > | To: "GemStone Seaside beta discussion"
| > | <[hidden email]>
| > | Sent: Tuesday, June 21, 2011 3:03:00 PM
| > | Subject: Re: [GS/SS Beta] petit parser on gemstone?
| > |
| > | Hi Dale,
| > | what we can do is a refactor of petit parser without #==>, and
| > | replace it by... for instance #mapTo:, and use that one... but
| > | that
| > | will be a fork, sadly :(
| > |
| > | cheers,
| > | Esteban
| > |
| > | El 21/06/2011, a las 6:58p.m., Dale Henrichs escribió:
| > |
| > | > Esteban,
| > | >
| > | > Unfortunately we won't have support for 3 character binary
| > | > selectors until post GemStone 3.0 ...
| > | >
| > | > Will not having #'==>' seriously affect your usage of
| > | > PetitParser
| > | > or can we fudge the problem for your purposes?
| > | >
| > | > Dale
| > | >
| > | > ----- Original Message -----
| > | > | From: "Dale Henrichs" <[hidden email]>
| > | > | To: "GemStone Seaside beta discussion"
| > | > | <[hidden email]>
| > | > | Sent: Tuesday, June 21, 2011 1:14:34 PM
| > | > | Subject: Re: [GS/SS Beta] petit parser on gemstone?
| > | > |
| > | > | Esteban,
| > | > |
| > | > | GemStone _is_ having trouble with that selector, so I'm
| > | > | waiting
| > | > | to
| > | > | hear about status (never, soon, eventually)...
| > | > |
| > | > | Dale
| > | > |
| > | > | ----- Original Message -----
| > | > | | From: "Esteban Lorenzano" <[hidden email]>
| > | > | | To: "GemStone Seaside beta discussion"
| > | > | | <[hidden email]>
| > | > | | Sent: Tuesday, June 21, 2011 9:58:30 AM
| > | > | | Subject: [GS/SS Beta] petit parser on gemstone?
| > | > | |
| > | > | | Hi,
| > | > | | Does anybody knows if petit parser loads on Gemstone? I'm
| > | > | | having a
| > | > | | compile error trying to load it, and I think it is because
| > | > | | of
| > | > | | #==>
| > | > | | selector (but I can't be sure)
| > | > | |
| > | > | | thanks,
| > | > | | Esteban
| > | > |
| > |
| > |
|
|
Reply | Threaded
Open this post in threaded view
|

Re: petit parser on gemstone?

NorbertHartl
In reply to this post by EstebanLM

Am 22.06.2011 um 00:03 schrieb Esteban Lorenzano:

> Hi Dale,
> what we can do is a refactor of petit parser without #==>, and replace it by... for instance #mapTo:, and use that one... but that will be a fork, sadly :(
>
Ah better name might be #transformWith: if it should be a keyword selector. There are two selectors btw.: ==> and >=>. In gnu smalltalk they used => and >< as selectors.

Norbert

>
> El 21/06/2011, a las 6:58p.m., Dale Henrichs escribió:
>
>> Esteban,
>>
>> Unfortunately we won't have support for 3 character binary selectors until post GemStone 3.0 ...
>>
>> Will not having #'==>' seriously affect your usage of PetitParser or can we fudge the problem for your purposes?
>>
>> Dale
>>
>> ----- Original Message -----
>> | From: "Dale Henrichs" <[hidden email]>
>> | To: "GemStone Seaside beta discussion" <[hidden email]>
>> | Sent: Tuesday, June 21, 2011 1:14:34 PM
>> | Subject: Re: [GS/SS Beta] petit parser on gemstone?
>> |
>> | Esteban,
>> |
>> | GemStone _is_ having trouble with that selector, so I'm waiting to
>> | hear about status (never, soon, eventually)...
>> |
>> | Dale
>> |
>> | ----- Original Message -----
>> | | From: "Esteban Lorenzano" <[hidden email]>
>> | | To: "GemStone Seaside beta discussion" <[hidden email]>
>> | | Sent: Tuesday, June 21, 2011 9:58:30 AM
>> | | Subject: [GS/SS Beta] petit parser on gemstone?
>> | |
>> | | Hi,
>> | | Does anybody knows if petit parser loads on Gemstone? I'm having a
>> | | compile error trying to load it, and I think it is because of #==>
>> | | selector (but I can't be sure)
>> | |
>> | | thanks,
>> | | Esteban
>> |
>

Reply | Threaded
Open this post in threaded view
|

Re: petit parser on gemstone?

Lukas Renggli
>> Hi Dale,
>> what we can do is a refactor of petit parser without #==>, and replace it by... for instance #mapTo:, and use that one... but that will be a fork, sadly :(
>>
> Ah better name might be #transformWith: if it should be a keyword selector. There are two selectors btw.: ==> and >=>. In gnu smalltalk they used => and >< as selectors.

Consider using a binary selector, with a keyword selector you will get
a load of parenthesis in many cases :-)

Lukas

--
Lukas Renggli
www.lukas-renggli.ch
Reply | Threaded
Open this post in threaded view
|

Re: petit parser on gemstone?

EstebanLM
yeah, I already fought with that. I was considering using ">>" and "<<" but if gnust is using => and ><, I can try to use the same... It likes me even less than my options, but well...

El 22/06/2011, a las 5:24a.m., Lukas Renggli escribió:

>>> Hi Dale,
>>> what we can do is a refactor of petit parser without #==>, and replace it by... for instance #mapTo:, and use that one... but that will be a fork, sadly :(
>>>
>> Ah better name might be #transformWith: if it should be a keyword selector. There are two selectors btw.: ==> and >=>. In gnu smalltalk they used => and >< as selectors.
>
> Consider using a binary selector, with a keyword selector you will get
> a load of parenthesis in many cases :-)
>
> Lukas
>
> --
> Lukas Renggli
> www.lukas-renggli.ch

Reply | Threaded
Open this post in threaded view
|

Re: petit parser on gemstone?

EstebanLM
In reply to this post by Dale Henrichs
ok, I thought this count as a new project :)
I'm using that then


El 22/06/2011, a las 1:40a.m., Dale Henrichs escribió:

> Done[1]. You're an admin and I added GLASS_DEVS group as devs ... as admin, you can change whatever you'd like:)
>
> Dale
>
> [1] http://seaside.gemstone.com/ss/PharoPlatformSupport
>
> ----- Original Message -----
> | From: "Esteban Lorenzano" <[hidden email]>
> | To: "GemStone Seaside beta discussion" <[hidden email]>
> | Sent: Tuesday, June 21, 2011 7:19:29 PM
> | Subject: Re: [GS/SS Beta] petit parser on gemstone?
> |
> | Ok, if you create "PortablePetitParser" on gemstone ss, and assign me
> | as a developer (or better, rw rights to everybody), I will commit a
> | first attempt (just a "rename method" refactor on ==> and >=>), and
> | see what happens :)
> |
> | Esteban
> |
> | El 21/06/2011, a las 8:04p.m., Dale Henrichs escribió:
> |
> | > Esteban,
> | >
> | > Yeah, it's not ideal, but until we can fix the parser in 3.1, it
> | > will be the only way:)
> | >
> | > Dale
> | >
> | > ----- Original Message -----
> | > | From: "Esteban Lorenzano" <[hidden email]>
> | > | To: "GemStone Seaside beta discussion"
> | > | <[hidden email]>
> | > | Sent: Tuesday, June 21, 2011 3:03:00 PM
> | > | Subject: Re: [GS/SS Beta] petit parser on gemstone?
> | > |
> | > | Hi Dale,
> | > | what we can do is a refactor of petit parser without #==>, and
> | > | replace it by... for instance #mapTo:, and use that one... but
> | > | that
> | > | will be a fork, sadly :(
> | > |
> | > | cheers,
> | > | Esteban
> | > |
> | > | El 21/06/2011, a las 6:58p.m., Dale Henrichs escribió:
> | > |
> | > | > Esteban,
> | > | >
> | > | > Unfortunately we won't have support for 3 character binary
> | > | > selectors until post GemStone 3.0 ...
> | > | >
> | > | > Will not having #'==>' seriously affect your usage of
> | > | > PetitParser
> | > | > or can we fudge the problem for your purposes?
> | > | >
> | > | > Dale
> | > | >
> | > | > ----- Original Message -----
> | > | > | From: "Dale Henrichs" <[hidden email]>
> | > | > | To: "GemStone Seaside beta discussion"
> | > | > | <[hidden email]>
> | > | > | Sent: Tuesday, June 21, 2011 1:14:34 PM
> | > | > | Subject: Re: [GS/SS Beta] petit parser on gemstone?
> | > | > |
> | > | > | Esteban,
> | > | > |
> | > | > | GemStone _is_ having trouble with that selector, so I'm
> | > | > | waiting
> | > | > | to
> | > | > | hear about status (never, soon, eventually)...
> | > | > |
> | > | > | Dale
> | > | > |
> | > | > | ----- Original Message -----
> | > | > | | From: "Esteban Lorenzano" <[hidden email]>
> | > | > | | To: "GemStone Seaside beta discussion"
> | > | > | | <[hidden email]>
> | > | > | | Sent: Tuesday, June 21, 2011 9:58:30 AM
> | > | > | | Subject: [GS/SS Beta] petit parser on gemstone?
> | > | > | |
> | > | > | | Hi,
> | > | > | | Does anybody knows if petit parser loads on Gemstone? I'm
> | > | > | | having a
> | > | > | | compile error trying to load it, and I think it is because
> | > | > | | of
> | > | > | | #==>
> | > | > | | selector (but I can't be sure)
> | > | > | |
> | > | > | | thanks,
> | > | > | | Esteban
> | > | > |
> | > |
> | > |
> |
> |

Reply | Threaded
Open this post in threaded view
|

Re: petit parser on gemstone?

EstebanLM
In reply to this post by Lukas Renggli
Hi Dale,
I'm having  a problem with the ConfigurationOfPetitParser I made, and I cannot understand what happens.
I do:

Gofer it
        gemsource: 'PharoPlatformSupport';
        package: 'ConfigurationOfPetitParser';
        load.
(ConfigurationOfPetitParser project version: '1.4') load: 'ALL'.


and that *should* bring me everything (on Pharo 1.3 it loads ok).

and in gemstone I get: "Could not resolve: PetitTests [PetitTests-EstebanLorenzano.33] in cache cache"
why it is not looking it into default repository I defined?

cheers,
Esteban


El 22/06/2011, a las 5:24a.m., Lukas Renggli escribió:

>>> Hi Dale,
>>> what we can do is a refactor of petit parser without #==>, and replace it by... for instance #mapTo:, and use that one... but that will be a fork, sadly :(
>>>
>> Ah better name might be #transformWith: if it should be a keyword selector. There are two selectors btw.: ==> and >=>. In gnu smalltalk they used => and >< as selectors.
>
> Consider using a binary selector, with a keyword selector you will get
> a load of parenthesis in many cases :-)
>
> Lukas
>
> --
> Lukas Renggli
> www.lukas-renggli.ch

Reply | Threaded
Open this post in threaded view
|

Re: petit parser on gemstone?

Dale Henrichs
In reply to this post by EstebanLM
Sorry I miscopied the url...I actually created a new project:

  http://seaside.gemstone.com/ss/PortablePetitParser

Dale

----- Original Message -----
| From: "Esteban Lorenzano" <[hidden email]>
| To: "GemStone Seaside beta discussion" <[hidden email]>
| Sent: Wednesday, June 22, 2011 7:21:22 AM
| Subject: Re: [GS/SS Beta] petit parser on gemstone?
|
| ok, I thought this count as a new project :)
| I'm using that then
|
|
| El 22/06/2011, a las 1:40a.m., Dale Henrichs escribió:
|
| > Done[1]. You're an admin and I added GLASS_DEVS group as devs ...
| > as admin, you can change whatever you'd like:)
| >
| > Dale
| >
| > [1] http://seaside.gemstone.com/ss/PharoPlatformSupport
| >
| > ----- Original Message -----
| > | From: "Esteban Lorenzano" <[hidden email]>
| > | To: "GemStone Seaside beta discussion"
| > | <[hidden email]>
| > | Sent: Tuesday, June 21, 2011 7:19:29 PM
| > | Subject: Re: [GS/SS Beta] petit parser on gemstone?
| > |
| > | Ok, if you create "PortablePetitParser" on gemstone ss, and
| > | assign me
| > | as a developer (or better, rw rights to everybody), I will commit
| > | a
| > | first attempt (just a "rename method" refactor on ==> and >=>),
| > | and
| > | see what happens :)
| > |
| > | Esteban
| > |
| > | El 21/06/2011, a las 8:04p.m., Dale Henrichs escribió:
| > |
| > | > Esteban,
| > | >
| > | > Yeah, it's not ideal, but until we can fix the parser in 3.1,
| > | > it
| > | > will be the only way:)
| > | >
| > | > Dale
| > | >
| > | > ----- Original Message -----
| > | > | From: "Esteban Lorenzano" <[hidden email]>
| > | > | To: "GemStone Seaside beta discussion"
| > | > | <[hidden email]>
| > | > | Sent: Tuesday, June 21, 2011 3:03:00 PM
| > | > | Subject: Re: [GS/SS Beta] petit parser on gemstone?
| > | > |
| > | > | Hi Dale,
| > | > | what we can do is a refactor of petit parser without #==>,
| > | > | and
| > | > | replace it by... for instance #mapTo:, and use that one...
| > | > | but
| > | > | that
| > | > | will be a fork, sadly :(
| > | > |
| > | > | cheers,
| > | > | Esteban
| > | > |
| > | > | El 21/06/2011, a las 6:58p.m., Dale Henrichs escribió:
| > | > |
| > | > | > Esteban,
| > | > | >
| > | > | > Unfortunately we won't have support for 3 character binary
| > | > | > selectors until post GemStone 3.0 ...
| > | > | >
| > | > | > Will not having #'==>' seriously affect your usage of
| > | > | > PetitParser
| > | > | > or can we fudge the problem for your purposes?
| > | > | >
| > | > | > Dale
| > | > | >
| > | > | > ----- Original Message -----
| > | > | > | From: "Dale Henrichs" <[hidden email]>
| > | > | > | To: "GemStone Seaside beta discussion"
| > | > | > | <[hidden email]>
| > | > | > | Sent: Tuesday, June 21, 2011 1:14:34 PM
| > | > | > | Subject: Re: [GS/SS Beta] petit parser on gemstone?
| > | > | > |
| > | > | > | Esteban,
| > | > | > |
| > | > | > | GemStone _is_ having trouble with that selector, so I'm
| > | > | > | waiting
| > | > | > | to
| > | > | > | hear about status (never, soon, eventually)...
| > | > | > |
| > | > | > | Dale
| > | > | > |
| > | > | > | ----- Original Message -----
| > | > | > | | From: "Esteban Lorenzano" <[hidden email]>
| > | > | > | | To: "GemStone Seaside beta discussion"
| > | > | > | | <[hidden email]>
| > | > | > | | Sent: Tuesday, June 21, 2011 9:58:30 AM
| > | > | > | | Subject: [GS/SS Beta] petit parser on gemstone?
| > | > | > | |
| > | > | > | | Hi,
| > | > | > | | Does anybody knows if petit parser loads on Gemstone?
| > | > | > | | I'm
| > | > | > | | having a
| > | > | > | | compile error trying to load it, and I think it is
| > | > | > | | because
| > | > | > | | of
| > | > | > | | #==>
| > | > | > | | selector (but I can't be sure)
| > | > | > | |
| > | > | > | | thanks,
| > | > | > | | Esteban
| > | > | > |
| > | > |
| > | > |
| > |
| > |
|
|
Reply | Threaded
Open this post in threaded view
|

Re: petit parser on gemstone?

Dale Henrichs
In reply to this post by EstebanLM
Don't know if the problem is related, but when I manually load PetitTests I get the following compile error:

'   false
 * ^1                                                                 *******
           ^ self parse: ''\x.\y.y''

1: [1026] invalid message pattern
'

so GemStone doesn't like use #false as a selector, either ... true is probably also disallowed ...

I am still digging ...

Dale


----- Original Message -----
| From: "Esteban Lorenzano" <[hidden email]>
| To: "GemStone Seaside beta discussion" <[hidden email]>
| Sent: Wednesday, June 22, 2011 8:34:16 AM
| Subject: Re: [GS/SS Beta] petit parser on gemstone?
|
| Hi Dale,
| I'm having  a problem with the ConfigurationOfPetitParser I made, and
| I cannot understand what happens.
| I do:
|
| Gofer it
| gemsource: 'PharoPlatformSupport';
| package: 'ConfigurationOfPetitParser';
| load.
| (ConfigurationOfPetitParser project version: '1.4') load: 'ALL'.
|
|
| and that *should* bring me everything (on Pharo 1.3 it loads ok).
|
| and in gemstone I get: "Could not resolve: PetitTests
| [PetitTests-EstebanLorenzano.33] in cache cache"
| why it is not looking it into default repository I defined?
|
| cheers,
| Esteban
|
|
| El 22/06/2011, a las 5:24a.m., Lukas Renggli escribió:
|
| >>> Hi Dale,
| >>> what we can do is a refactor of petit parser without #==>, and
| >>> replace it by... for instance #mapTo:, and use that one... but
| >>> that will be a fork, sadly :(
| >>>
| >> Ah better name might be #transformWith: if it should be a keyword
| >> selector. There are two selectors btw.: ==> and >=>. In gnu
| >> smalltalk they used => and >< as selectors.
| >
| > Consider using a binary selector, with a keyword selector you will
| > get
| > a load of parenthesis in many cases :-)
| >
| > Lukas
| >
| > --
| > Lukas Renggli
| > www.lukas-renggli.ch
|
|
Reply | Threaded
Open this post in threaded view
|

Re: petit parser on gemstone?

Dale Henrichs
In reply to this post by EstebanLM
Well this is a new one ...

The UUID for ConfigurationOfPetitParser-EstebanLorenzano.17 and PetitTests-EstebanLorenzano.33 are both 'da390300-18a4-2802-80d7-0e00d0f65c1f'.

GemStone uses a MCDictionaryRepository as the cache repository which means that equality is used to compare keys ... since those two packages have the same UUID, PetitTests-EstebanLorenzano.33 is stored in the value of the association whose key is ConfigurationOfPetitParser-EstebanLorenzano.17 and is therefore effectively hidden when a lookup is done using the name of the versionInfo, instead of the UUID ...

So much for unique ID, huh?

Here's the tale of the tape from GemSource:

Filename: ConfigurationOfPetitParser-EstebanLorenzano.17.mcz
Author: Esteban Lorenzano
Timestamp: 22 June 2011 07:35:03
UUID: 2185730241644021282151402082469231
Ancestors: ConfigurationOfPetitParser-AlexandreBergel.16.mcz
Message: ported to gemstone
Downloads: Web: 7

Filename: PetitTests-EstebanLorenzano.33.mcz
Author: Esteban Lorenzano
Timestamp: 22 June 2011 07:30:16
UUID: 2185730241644021282151402082469231
Ancestors: PetitTests-lr.32.mcz
Message: -changed ==> and >=> to => and ><
Downloads: Web: 23

So it looks like if you do another commit of either ConfigurationOfPetitParser or PetitTests, then the UUID collision will go away ...

But wait, the same UUID is shared amongst several more packages!:

Filename: PetitXPath-EstebanLorenzano.2.mcz
Author: Esteban Lorenzano
Timestamp: 22 June 2011 07:31:48
UUID: 2185730241644021282151402082469231
Ancestors: PetitXPath-EstebanLorenzano.1.mcz
Message: -changed ==> and >=> to => and ><
Downloads: Web: 12


Filename: PetitCSV-EstebanLorenzano.8.mcz
Author: Esteban Lorenzano
Timestamp: 22 June 2011 07:31:11
UUID: 2185730241644021282151402082469231
Ancestors: PetitCSV-tg.7.mcz
Message: -changed ==> and >=> to => and ><
Downloads: Web: 7


Filename: PetitAnalyzer-EstebanLorenzano.39.mcz
Author: Esteban Lorenzano
Timestamp: 22 June 2011 07:30:44
UUID: 2185730241644021282151402082469231
Ancestors: PetitAnalyzer-lr.38.mcz
Message: -changed ==> and >=> to => and ><
Downloads: Web: 17
12