integrating pp-islands

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

integrating pp-islands

Tudor Girba-2
Hi Jan,

Would it be possible to clean PP-Islands so that it can be loaded together with the rest of PetitParser? I would like to integrate it in the main distribution because it is too cool :)

Doru

--

"Every thing has its own flow"

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: integrating pp-islands

kurs.jan
Hey, it will be done. It is in my todo,...

And it seems we have a student (bachelor) who is interested in trying ruby importer to moose using islands. We will see, how far can one get with the islands and PEGs.

Cheers,
Jan


On 3 September 2014 08:54, Tudor Girba <[hidden email]> wrote:
Hi Jan,

Would it be possible to clean PP-Islands so that it can be loaded together with the rest of PetitParser? I would like to integrate it in the main distribution because it is too cool :)

Doru

--

"Every thing has its own flow"


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: integrating pp-islands

Tudor Girba-2
Beautiful!

Doru


On Wed, Sep 3, 2014 at 9:14 AM, Jan Kurš <[hidden email]> wrote:
Hey, it will be done. It is in my todo,...

And it seems we have a student (bachelor) who is interested in trying ruby importer to moose using islands. We will see, how far can one get with the islands and PEGs.

Cheers,
Jan


On 3 September 2014 08:54, Tudor Girba <[hidden email]> wrote:
Hi Jan,

Would it be possible to clean PP-Islands so that it can be loaded together with the rest of PetitParser? I would like to integrate it in the main distribution because it is too cool :)

Doru

--

"Every thing has its own flow"




--

"Every thing has its own flow"

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: integrating pp-islands

Usman Bhatti
In reply to this post by Tudor Girba-2
Any details about the context of the project and the kind of tasks it is useful for?
tx.
usman


On Wed, Sep 3, 2014 at 8:54 AM, Tudor Girba <[hidden email]> wrote:
Hi Jan,

Would it be possible to clean PP-Islands so that it can be loaded together with the rest of PetitParser? I would like to integrate it in the main distribution because it is too cool :)

Doru

--

"Every thing has its own flow"

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev



_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: integrating pp-islands

kurs.jan
Hey, the main idea of PP-Islands project is to allow for only partially defined grammars. If you have a source without a grammar for it, you define only part of the grammar (that part, that interests you) and you omit the rest (to save time/effort). The island parsers should make sure that your pieces of interests (islands) will be extracted and the rest (water) will be skipped.

E.g. we can extract method names from Java files with precision around 95% with a parser with 10 rules.

Cheers,
Jan


On 3 September 2014 09:44, Usman Bhatti <[hidden email]> wrote:
Any details about the context of the project and the kind of tasks it is useful for?
tx.
usman


On Wed, Sep 3, 2014 at 8:54 AM, Tudor Girba <[hidden email]> wrote:
Hi Jan,

Would it be possible to clean PP-Islands so that it can be loaded together with the rest of PetitParser? I would like to integrate it in the main distribution because it is too cool :)

Doru

--

"Every thing has its own flow"

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev




_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: integrating pp-islands

Tudor Girba-2
In reply to this post by kurs.jan
Hi Jan,

I just spotted a little bug in the StartOfLineParser. It misses isNullable2. I wanted to commit, but I do not have access to your repo.

But, now that I stumbled across this, I have a question:
- why is it called isNullable2?
- why not have a default implementation for PPParser returning false?

Cheers,
Doru



On Wed, Sep 3, 2014 at 9:14 AM, Jan Kurš <[hidden email]> wrote:
Hey, it will be done. It is in my todo,...

And it seems we have a student (bachelor) who is interested in trying ruby importer to moose using islands. We will see, how far can one get with the islands and PEGs.

Cheers,
Jan


On 3 September 2014 08:54, Tudor Girba <[hidden email]> wrote:
Hi Jan,

Would it be possible to clean PP-Islands so that it can be loaded together with the rest of PetitParser? I would like to integrate it in the main distribution because it is too cool :)

Doru

--

"Every thing has its own flow"




--

"Every thing has its own flow"

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: integrating pp-islands

kurs.jan
Hey, you mean StartOfLIneParser used with islands? I don't see any problem in the version committed into the trunk, or do I miss something?

In case you are talking about the PP-Islands, the isNullable2 should return true for that parser.

- isNullable2 (as the name indicates) is one of the dark corners of the islands that needs to be cleaned.
- you can set the default value to false so far... but I will have to review all this nullable concept before pushing to the trunk.

Cheers,
Jan


On 3 September 2014 11:13, Tudor Girba <[hidden email]> wrote:
Hi Jan,

I just spotted a little bug in the StartOfLineParser. It misses isNullable2. I wanted to commit, but I do not have access to your repo.

But, now that I stumbled across this, I have a question:
- why is it called isNullable2?
- why not have a default implementation for PPParser returning false?

Cheers,
Doru



On Wed, Sep 3, 2014 at 9:14 AM, Jan Kurš <[hidden email]> wrote:
Hey, it will be done. It is in my todo,...

And it seems we have a student (bachelor) who is interested in trying ruby importer to moose using islands. We will see, how far can one get with the islands and PEGs.

Cheers,
Jan


On 3 September 2014 08:54, Tudor Girba <[hidden email]> wrote:
Hi Jan,

Would it be possible to clean PP-Islands so that it can be loaded together with the rest of PetitParser? I would like to integrate it in the main distribution because it is too cool :)

Doru

--

"Every thing has its own flow"




--

"Every thing has its own flow"


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: integrating pp-islands

Tudor Girba-2
Hmm. I do not see how this can be the case. I get a SubclassResponsibility when I try to do this:

((#startOfLine asParser , $! asParser) island ==> #second) star parse: '! asdasdasd
asdasd
! asdasdasd'

Doru




On Wed, Sep 3, 2014 at 11:28 AM, Jan Kurš <[hidden email]> wrote:
Hey, you mean StartOfLIneParser used with islands? I don't see any problem in the version committed into the trunk, or do I miss something?

In case you are talking about the PP-Islands, the isNullable2 should return true for that parser.

- isNullable2 (as the name indicates) is one of the dark corners of the islands that needs to be cleaned.
- you can set the default value to false so far... but I will have to review all this nullable concept before pushing to the trunk.

Cheers,
Jan


On 3 September 2014 11:13, Tudor Girba <[hidden email]> wrote:
Hi Jan,

I just spotted a little bug in the StartOfLineParser. It misses isNullable2. I wanted to commit, but I do not have access to your repo.

But, now that I stumbled across this, I have a question:
- why is it called isNullable2?
- why not have a default implementation for PPParser returning false?

Cheers,
Doru



On Wed, Sep 3, 2014 at 9:14 AM, Jan Kurš <[hidden email]> wrote:
Hey, it will be done. It is in my todo,...

And it seems we have a student (bachelor) who is interested in trying ruby importer to moose using islands. We will see, how far can one get with the islands and PEGs.

Cheers,
Jan


On 3 September 2014 08:54, Tudor Girba <[hidden email]> wrote:
Hi Jan,

Would it be possible to clean PP-Islands so that it can be loaded together with the rest of PetitParser? I would like to integrate it in the main distribution because it is too cool :)

Doru

--

"Every thing has its own flow"




--

"Every thing has its own flow"




--

"Every thing has its own flow"

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: integrating pp-islands

kurs.jan
Hey, just add a method to StartOfLineParser:

StartOfLineParser>>isNullable2
    ^ true



On 3 September 2014 11:33, Tudor Girba <[hidden email]> wrote:
Hmm. I do not see how this can be the case. I get a SubclassResponsibility when I try to do this:

((#startOfLine asParser , $! asParser) island ==> #second) star parse: '! asdasdasd
asdasd
! asdasdasd'

Doru




On Wed, Sep 3, 2014 at 11:28 AM, Jan Kurš <[hidden email]> wrote:
Hey, you mean StartOfLIneParser used with islands? I don't see any problem in the version committed into the trunk, or do I miss something?

In case you are talking about the PP-Islands, the isNullable2 should return true for that parser.

- isNullable2 (as the name indicates) is one of the dark corners of the islands that needs to be cleaned.
- you can set the default value to false so far... but I will have to review all this nullable concept before pushing to the trunk.

Cheers,
Jan


On 3 September 2014 11:13, Tudor Girba <[hidden email]> wrote:
Hi Jan,

I just spotted a little bug in the StartOfLineParser. It misses isNullable2. I wanted to commit, but I do not have access to your repo.

But, now that I stumbled across this, I have a question:
- why is it called isNullable2?
- why not have a default implementation for PPParser returning false?

Cheers,
Doru



On Wed, Sep 3, 2014 at 9:14 AM, Jan Kurš <[hidden email]> wrote:
Hey, it will be done. It is in my todo,...

And it seems we have a student (bachelor) who is interested in trying ruby importer to moose using islands. We will see, how far can one get with the islands and PEGs.

Cheers,
Jan


On 3 September 2014 08:54, Tudor Girba <[hidden email]> wrote:
Hi Jan,

Would it be possible to clean PP-Islands so that it can be loaded together with the rest of PetitParser? I would like to integrate it in the main distribution because it is too cool :)

Doru

--

"Every thing has its own flow"




--

"Every thing has its own flow"




--

"Every thing has its own flow"


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: integrating pp-islands

Tudor Girba-2
That is what I said that was missing. Only this should be packaged for the moment in PP-Islands, and I do not have access to commit there :).

Doru


On Wed, Sep 3, 2014 at 11:40 AM, Jan Kurš <[hidden email]> wrote:
Hey, just add a method to StartOfLineParser:

StartOfLineParser>>isNullable2
    ^ true



On 3 September 2014 11:33, Tudor Girba <[hidden email]> wrote:
Hmm. I do not see how this can be the case. I get a SubclassResponsibility when I try to do this:

((#startOfLine asParser , $! asParser) island ==> #second) star parse: '! asdasdasd
asdasd
! asdasdasd'

Doru




On Wed, Sep 3, 2014 at 11:28 AM, Jan Kurš <[hidden email]> wrote:
Hey, you mean StartOfLIneParser used with islands? I don't see any problem in the version committed into the trunk, or do I miss something?

In case you are talking about the PP-Islands, the isNullable2 should return true for that parser.

- isNullable2 (as the name indicates) is one of the dark corners of the islands that needs to be cleaned.
- you can set the default value to false so far... but I will have to review all this nullable concept before pushing to the trunk.

Cheers,
Jan


On 3 September 2014 11:13, Tudor Girba <[hidden email]> wrote:
Hi Jan,

I just spotted a little bug in the StartOfLineParser. It misses isNullable2. I wanted to commit, but I do not have access to your repo.

But, now that I stumbled across this, I have a question:
- why is it called isNullable2?
- why not have a default implementation for PPParser returning false?

Cheers,
Doru



On Wed, Sep 3, 2014 at 9:14 AM, Jan Kurš <[hidden email]> wrote:
Hey, it will be done. It is in my todo,...

And it seems we have a student (bachelor) who is interested in trying ruby importer to moose using islands. We will see, how far can one get with the islands and PEGs.

Cheers,
Jan


On 3 September 2014 08:54, Tudor Girba <[hidden email]> wrote:
Hi Jan,

Would it be possible to clean PP-Islands so that it can be loaded together with the rest of PetitParser? I would like to integrate it in the main distribution because it is too cool :)

Doru

--

"Every thing has its own flow"




--

"Every thing has its own flow"




--

"Every thing has its own flow"




--

"Every thing has its own flow"

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: integrating pp-islands

kurs.jan
Ok, I got it now!  I commited the fix. You will be a contributor to the PP-Islands as soon as SmalltalkHub will be so kind and stops ignoring my requests.

Jan


On 3 September 2014 11:51, Tudor Girba <[hidden email]> wrote:
That is what I said that was missing. Only this should be packaged for the moment in PP-Islands, and I do not have access to commit there :).

Doru


On Wed, Sep 3, 2014 at 11:40 AM, Jan Kurš <[hidden email]> wrote:
Hey, just add a method to StartOfLineParser:

StartOfLineParser>>isNullable2
    ^ true



On 3 September 2014 11:33, Tudor Girba <[hidden email]> wrote:
Hmm. I do not see how this can be the case. I get a SubclassResponsibility when I try to do this:

((#startOfLine asParser , $! asParser) island ==> #second) star parse: '! asdasdasd
asdasd
! asdasdasd'

Doru




On Wed, Sep 3, 2014 at 11:28 AM, Jan Kurš <[hidden email]> wrote:
Hey, you mean StartOfLIneParser used with islands? I don't see any problem in the version committed into the trunk, or do I miss something?

In case you are talking about the PP-Islands, the isNullable2 should return true for that parser.

- isNullable2 (as the name indicates) is one of the dark corners of the islands that needs to be cleaned.
- you can set the default value to false so far... but I will have to review all this nullable concept before pushing to the trunk.

Cheers,
Jan


On 3 September 2014 11:13, Tudor Girba <[hidden email]> wrote:
Hi Jan,

I just spotted a little bug in the StartOfLineParser. It misses isNullable2. I wanted to commit, but I do not have access to your repo.

But, now that I stumbled across this, I have a question:
- why is it called isNullable2?
- why not have a default implementation for PPParser returning false?

Cheers,
Doru



On Wed, Sep 3, 2014 at 9:14 AM, Jan Kurš <[hidden email]> wrote:
Hey, it will be done. It is in my todo,...

And it seems we have a student (bachelor) who is interested in trying ruby importer to moose using islands. We will see, how far can one get with the islands and PEGs.

Cheers,
Jan


On 3 September 2014 08:54, Tudor Girba <[hidden email]> wrote:
Hi Jan,

Would it be possible to clean PP-Islands so that it can be loaded together with the rest of PetitParser? I would like to integrate it in the main distribution because it is too cool :)

Doru

--

"Every thing has its own flow"




--

"Every thing has its own flow"




--

"Every thing has its own flow"




--

"Every thing has its own flow"


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev