[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cgiapp] [OT] Which Parser is "best"


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi list,

as there seem to be very experienced and helpful perl programmers on
this list, I dare to ask a off-topic question:

I want to set up a C::A for manipulating mapfiles for the UMN
mapserver (http://mapserver.gis.umn.edu) with html forms. The mapfiles
are in the following form (just a cutout):

LAYER NAME bgl21
  METADATA
    LTITLE "Grünflächen"
  END
  DATA "/data/muc/shapes_ms/gruen"
  CLASSITEM "code"
  CLASS NAME ""
    SYMBOL 0
    COLOR 166 255 165
    OUTLINECOLOR 195 255 195
  END # class
  TYPE polygon
END # layer bgl21

The newlines are not obligatory, it could be a long string; comments
are denoted by #. Objects like LAYER or CLASS are always ended by END.
The files are case insensitive.

My only approach with parsing files like this is with regexps, but
maybe this is not the best way as those mapfiles can be several hundred
lines long.

Therefore I am looking for helpful advice.


Markus
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.6 and Gnu Privacy Guard <http://www.gnupg.org/>

iD8DBQE+zdUxxxUzQSse11ARAoiFAJ0VaHrjzxiJPGPI91uVe9QYa8iVMgCdF4XO
PkFRVzH06T1hp3fZr3rncy0=
=ZaEp
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/suppressed/
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.