Path: internal1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!border1.nntp.ash.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeed.tpinternet.pl!news.atman.pl!news.intercom.pl!f124.n480!f127.n480!f112.n480!f200.n2432!f605.n774!f500.n123!f2000.n106!f45.n396!f1.n379!f1200.n379!not-for-mail
Newsgroups: fido.c_plusplus
Distribution: fido
From: CHRIS CRANFORD
Date: Tue, 23 Dec 03 23:28:28 +0100
Subject: Parsing Routine
Message-ID:
Organization: Thanks for using Mail-ennium/32
2437/40
Lines: 30
Xref: intern1.nntp.aus1.giganews.com fido.c_plusplus:179
I'm currently working on some template routines for a program I'm
putting together and I'm running into some issues.
What I want to do is have a template such as follows:
-- Excert --
%LOOP ECHOES%
Area: %AREA.NAME% - %AREA.DESCRIPTION%
-----------------------------------------------------------
%LOOP ECHOFILES%
%FILE.FILENAME:13% %FILE.FILESIZE:13% %FILE.DESCRIPTION(1):40%
%LOOP FILEDESCRIPTION%
%FILE.DESCRIPTION:40%
%ENDLOOP FILEDESCRIPTION%
%ENDLOOP ECHOFILES%
-----------------------------------------------------------
%AREA.TOTALFILES% file(s) in %AREA.BYTES% byte(s)
%ENDLOOP ECHOES%
-- End Excert --
Anyone have any suggestions on how to handle the nested looping
construct?
Thanks
Chris
|