What happened to PPInputEnds?

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

What happened to PPInputEnds?

jfabry
Hi all,

I had not updated to the last version of PetitParser for some weeks, now I did and the following rule breaks because PPInputEnds disappeared. Can anybody tell me how to update my rule?  If I replace it by PPEndOfInputParser I get a DNU, so I guess I need to do something else.

endOfComment
        ^ PPInputEnds new / lineTerminator


---> Save our in-boxes! http://emailcharter.org <---

Johan Fabry   -   http://pleiad.cl/~jfabry
PLEIAD lab  -  Computer Science Department (DCC)  -  University of Chile


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

Re: What happened to PPInputEnds?

Jan Kurš
Hi,

Refactoring has happened.

The PPInputEnd is now PPEndOfFile (because PPEndOfInput was already used), following the pattern of PPEndOfLine, PPStartOfLine, PPStartOfWord, ... The preferred way to create such a parser is: '#eof asParser'. There are some more details in the class comments...

I am sorry for a confusion.

Cheers,
Jan

On 20 March 2015 at 19:08, Johan Fabry <[hidden email]> wrote:
Hi all,

I had not updated to the last version of PetitParser for some weeks, now I did and the following rule breaks because PPInputEnds disappeared. Can anybody tell me how to update my rule?  If I replace it by PPEndOfInputParser I get a DNU, so I guess I need to do something else.

endOfComment
        ^ PPInputEnds new / lineTerminator


---> Save our in-boxes! http://emailcharter.org <---

Johan Fabry   -   http://pleiad.cl/~jfabry
PLEIAD lab  -  Computer Science Department (DCC)  -  University of Chile


_______________________________________________
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: What happened to PPInputEnds?

jfabry

Thanks Jan for your reply, now it works perfectly again :-)

On Mar 23, 2015, at 05:49, Jan Kurš <[hidden email]> wrote:

Hi,

Refactoring has happened.

The PPInputEnd is now PPEndOfFile (because PPEndOfInput was already used), following the pattern of PPEndOfLine, PPStartOfLine, PPStartOfWord, ... The preferred way to create such a parser is: '#eof asParser'. There are some more details in the class comments...

I am sorry for a confusion.

Cheers,
Jan

On 20 March 2015 at 19:08, Johan Fabry <[hidden email]> wrote:
Hi all,

I had not updated to the last version of PetitParser for some weeks, now I did and the following rule breaks because PPInputEnds disappeared. Can anybody tell me how to update my rule?  If I replace it by PPEndOfInputParser I get a DNU, so I guess I need to do something else.

endOfComment
        ^ PPInputEnds new / lineTerminator


---> Save our in-boxes! http://emailcharter.org <---

Johan Fabry   -   http://pleiad.cl/~jfabry
PLEIAD lab  -  Computer Science Department (DCC)  -  University of Chile


_______________________________________________
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



---> Save our in-boxes! http://emailcharter.org <---

Johan Fabry   -   http://pleiad.cl/~jfabry
PLEIAD lab  -  Computer Science Department (DCC)  -  University of Chile


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