[DGD] LPC parse_string grammar

Josh Dady jpd at indecisive.com
Mon Sep 27 00:59:04 CEST 2004


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

One of my little side projects is to start generating reference 
documentation using doxygen.  Since there's not native support for LPC 
there, it seemed like the simplest way to get there was to use 
parse_string() and spit out C++ declarations equivalent to the LPC 
originals and use doxygen on that.

To that end, while trying to parse our player object, I found the 
following change to the grammar was needed (and Erwin seemed to agree 
that it was something that happened since the grammar was originally 
written) -- one of the varargs cases.  It is legal to use varargs in 
the list of arguments to a function, and the original grammar doesn't 
permit this.  I added the following production to make it happy:

	formal_declaration: 'varargs' type_specifier data_dcltr

- --
Joshua P. Dady
http://www.indecisive.com/

-----BEGIN PGP SIGNATURE-----
Version: PGP 8.1

iQA/AwUBQVdJwzbRoEWRn4lnEQLjMACcCcFntbd+x9WZkyEzyv6UaTN72kYAoJhG
6a/I7jiaIwHpukQyUMjQNlY+
=oSEl
-----END PGP SIGNATURE-----

_________________________________________________________________
List config page:  http://list.imaginary.com/mailman/listinfo/dgd



More information about the DGD mailing list