ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl6-language
perl6-language
Parsing perl without Perl (sort of)
by J Matisse Enzer other posts by this author
Jun 10 2005 8:55AM messages near this date
Re: State of Design Documents | Re: q:e/.../ as a short cut for eval q/.../
Adam Kennedy's new module PPI:

   http://www.perl.com/pub/a/2005/06/09/ppi.html
   http://search.cpan.org/perldoc?PPI

His module attempts to implement a parser that:
>  ... creates a "round-trip" capability, parsing a file into an internal 
>  model and back out again without moving a single white space character 
>  out of place. Even if parts of a file are broken or badly formatted, 
>  you can still change other parts of the file and save it correctly 
>  without it changing anything you don't alter.
> 
>  Second, it makes the parser extremely safe and error-tolerant. Any 
>  code open in an editor is there for a reason--generally because it 
>  isn't finished yet, is broken, or needs changing. A document parser 
>  can hit a problem, flag it, stumble for a character or so until it 
>  finds something it recognizes, and then continue on.

I wonder if there are concepts in his implementation that have a 
bearing on Perl 6 design?

-------------------------------------------------------
Matisse Enzer <matisse@[...].net> 
http://www.matisse.net/  - http://www.eigenstate.net/
415-225-6703 (work/cellphone)
415-401-8325 (home)

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved