POC parser

Jeremy Huntwork jhuntwork at linuxfromscratch.org
Sat Dec 9 18:00:47 PST 2006


Hey Guys,

I decided to do a little work on the C++ parser that sits in the
alfs-POC section of the repo, mostly for the fun of it. Presently, it
will fully parse the book and place all commands in scriptlets, similar
to the jhalfs style. If anyone's interested in taking a peek:

svn co svn://linuxfromscratch.org/ALFS/alfs-POC
svn co svn://linuxfromscratch.org/LFS/trunk/BOOK lfs-trunk
cd alfs-POC/src
make parser
./parser ../../lfs-trunk/index.xml

Then check out the contents of the 'commands' directory.

Performance on Belgarath:
real    0m1.826s
user    0m0.630s
sys     0m0.200s

On my laptop:
real    0m0.226s
user    0m0.148s
sys     0m0.064s

:D

--
JH



More information about the alfs-discuss mailing list