Click here to get back home

three Parse::RecDescent related questions

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
three Parse::RecDescent related questions fsl_user 10-07-2005
Posted by fsl_user on October 7, 2005, 1:23 pm
Please log in for more thread options


Hi,

Just got the Advanced perl programming book and was reading a little
about this module.


However, the examples did not touch following three topics
(or at least not clear enough for me to understand)


1.) parsing VERY big files.
================================
Let's assume I'd like to parse a file, that does not fit into memory.
(for example a quite C / C+ program)

The training material gives only examples of reading in the entire file
and starting then the parsing.

I'd like to parse a huge file, be sure that it's syntactically correct
but extract information just for one module / objects.

Another application would be to read a very big file and just modify the
contents of very few functions , classes, but never store the whole file
in RAM.

How should this be done correctly?

I did not a good example and do just have some vague ideas about
- being sure, that there's always enough to read for matching the next
rule (but how)
- commiting whenever possible.


2.) following include statements
==================================

But try to keep memory low. The main file and the include file could
be very huge.

3.) decent C-style comment stripping,and keep file/char position accurate
===================================================================

If this is too difficult, then just comment stripping would be OK as well.

thanks and bye



fsl_user


Similar ThreadsPosted
Parse::RecDescent demo_Cgrammar.pl March 14, 2006, 6:17 pm
double back-slash in Parse::RecDescent grammars? October 9, 2006, 5:43 pm
Problem to get Parse::Yapp and Parse:Flex working together November 2, 2005, 3:15 pm
Perl Related Question November 15, 2005, 7:43 am
Questions about XML:LibXML December 16, 2007, 6:22 am
Semi-Announce: Iterator.pm and related modules August 18, 2005, 5:34 pm
Where to ask questions about Win32::ODBC? July 14, 2004, 9:36 am
Asking questions in 'make test' July 27, 2004, 12:55 am
newbie LWP::UserAgent questions August 13, 2006, 8:10 pm
Parse::Readelf 0.01 - parse the output of readelf September 24, 2007, 12:07 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap