Hi Usman,Thanks for the script.@Jan: could you look at it? I do not think it is a big problem.DoruOn Tue, Sep 30, 2014 at 10:22 AM, Usman Bhatti <usman.bhatti@gmail.com> wrote:Hi Doru,We are using Platyplus to generate a language grammar and it uses PetitParser for this purpose. When trying to synchronize the definitions with Platyplus in the latest version of Moose, there are some errors related to PPContext not understanding #position. And it seems to be associated to the new changes.Here's a script to reproduce the problem in Moose:Gofer newpackage: 'ConfigurationOfPlatypus';load.(Smalltalk at: #ConfigurationOfPlatypus) loadDevelopment.PlatypusExpressEditor new synchronizeWe might later in time try to adapt platyplus to the recent changes in PetitParser but currently we have to concentrate on other things.regards.UsmanOn Mon, Sep 29, 2014 at 10:00 AM, Tudor Girba <tudor@tudorgirba.com> wrote:Hi Usman,Could you let us know how you trigger the parsing? Could it be that you are using some internal methods?Could you reproduce this on any other parser?Cheers,DoruOn Mon, Sep 29, 2014 at 9:47 AM, Jan Kurš <kurs.jan@gmail.com> wrote:The drawback of PPContext (that I am aware of) is approximately 10% slowdown. If there is anything else, please let me know so that I can work on it.I also updated the PetitSmalltalk project (version JanKurs.71).The PPContext enwraps the PPStream and should provide the stream protocol.Hi,I tried to update PetitParser so that it converts a stream into the PPContext. Therefore an entry point to the parsing looks like this:
PPParser>>parse: anObject
^ self parse: anObject withContext: PPContext new
Cheers,
JanOn 28 September 2014 22:42, Usman Bhatti <usman.bhatti@gmail.com> wrote:Here's a screenshot of the debugger that popups when I execute some tests with the recent changes. It seems to be related to the problem of PPParsers knowing a context object instead of a stream.On Sun, Sep 28, 2014 at 9:17 PM, Tudor Girba <tudor@tudorgirba.com> wrote:Hi,These changes should be backward compatible. What kind of impact did you experience? Can you give concrete examples?Cheers,DoruOn Sun, Sep 28, 2014 at 9:02 PM, Usman Bhatti <usman.bhatti@gmail.com> wrote:_______________________________________________Hi all,Recently, there have been changes in PetitParser related to support for island grammar and parsing context which requires some modifications in the tools using PetitParser. Not all tools can be adapted immediately to use the new version. Hence, I have created a new version of PetitParser that loads the packages prior to these changes for backward compatibility.Name: ConfigurationOfPetitParser-usmanbhatti.49Author: usmanbhattiTime: 28 September 2014, 8:58:00.540857 pmUUID: 54877ca2-77b0-4c5e-937d-5124dd76b075Ancestors: ConfigurationOfPetitParser-JanKurs.48adding a baseline and a version that loads packages before changes made to petitparser related to parsing context and island grammar.regards,usman
Moose-dev mailing list
Moose-dev@iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--"Every thing has its own flow"
_______________________________________________
Moose-dev mailing list
Moose-dev@iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
_______________________________________________
Moose-dev mailing list
Moose-dev@iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
_______________________________________________
Moose-dev mailing list
Moose-dev@iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--"Every thing has its own flow"
_______________________________________________
Moose-dev mailing list
Moose-dev@iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
_______________________________________________
Moose-dev mailing list
Moose-dev@iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--"Every thing has its own flow"
_______________________________________________
Moose-dev mailing list
Moose-dev@iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev