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 :)
_______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
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:
_______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
Beautiful! Doru On Wed, Sep 3, 2014 at 9:14 AM, Jan Kurš <[hidden email]> wrote:
"Every thing has its own flow"
_______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
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:
_______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
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. JanE.g. we can extract method names from Java files with precision around 95% with a parser with 10 rules. Cheers, On 3 September 2014 09:44, Usman Bhatti <[hidden email]> wrote:
_______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
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:
"Every thing has its own flow"
_______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
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. Cheers, Jan On 3 September 2014 11:13, Tudor Girba <[hidden email]> wrote:
_______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
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:
"Every thing has its own flow"
_______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
Hey, just add a method to StartOfLineParser: StartOfLineParser>>isNullable2
On 3 September 2014 11:33, Tudor Girba <[hidden email]> wrote:
_______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
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:
"Every thing has its own flow"
_______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
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. On 3 September 2014 11:51, Tudor Girba <[hidden email]> wrote:
_______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
Free forum by Nabble | Edit this page |