Article View: es.comp.os.linux.programacion
Article #17788Re: Lista de palabras clave y delimitadores en C/C++
From: batsman batsman
Date: Fri, 05 Nov 1999 00:00
Date: Fri, 05 Nov 1999 00:00
114 lines
5573 bytes
5573 bytes
-----BEGIN PGP SIGNED MESSAGE-----
In article <38217856.955714A4@uca.es>, Rafa Rodr�guez Galv�n wrote:
>1.- Generar e imprimir un bonito listado de cualquier fichero
> de c�digo fuente. Para ello, la idea era procesar adecuadamente
> con LaTeX este fichero fuente.
Eso ya lo hace *casi* el a2ps: te imprime el c�digo C/C++/java/otros con las
palabras clave en negrita, strings en times, el resto en Courier, te cambia
los s�mbolos (operador -> sustituido por una flechita, lo mismo con >=, <=,
!=, ||, && y otros).
Tambi�n est� el c2ps y otros m�s.
>2.- El programa deber�a permitir (opcionalmente) lo siguiente:
> si encuentra entre los comentarios del fichero fuente
> alguna expresi�n escrita en LaTeX, �sta es procesada
> y se inserta en el listado final el resultado.
> Por ejemplo, algo parecido a lo sigiente:
>
> (...)
> if(enFrontera(x,1)) /* Entonces $x\in\Gamma_1$ */
> (...)
>
> deber�a procesar la orden LaTeX " $x\in\Gamma_1$ " y generar
> en el listado un bonito comentario con s�mbolos matem�ticos,
> "x pertenece a Gamma sub 1 ".
�Y c�mo hace tu programa para saber si un comentario debe formatearse con
LaTeX o no? Tendr�as que usar delimitadores como /** **/ o algo as�.
>3.- Adem�s, me guistar�a poder introducir "bloques de comentarios" que
> sean tratados especialmente (dentro de un entorno LaTeX
> de tipo tabular). Por ejemplo:
>
> (...)
> /*/*
> * Funci�n {\bf trapecios}(f,a,b) \\
> * Utiliza el m�todo de los trapecios para calcular
> * $\int_a^b f(x) dx$
> */*/
> (...)
Ahora veo que lo que haces se orienta m�s a un sistema como el de javadoc.
Tal vez te interesar�a echarle un vistazo a Doxygen, Doc++, perceps...
Package: doc++
Status: install ok installed
Installed-Size: 564
Maintainer: Gordon Russell <g.russell@dcs.napier.ac.uk>
Version: 3.2-1
Depends: libc6, libstdc++2.9
Description: A documentation system for C/C++ and Java
DOC++ is a documentation system for C/C++ and Java generating both LaTeX
output for high quality hardcopies and HTML output for sophisticated
online browsing of your documentation. The documentation is extracted
directly from the C++ header or Java class files.
.
Here are a list of the highlights:
- heirarchically structured documentation
- automatic class graph generation (as Java applets for HTML)
- cross references
- high end formating support including typesetting of equations
>
>Por cierto, quiero poner este programa bajo licencia GNU/GPL y
>creo que para esto basta indicarlo expresamente en el c�digo.
>�Es esto cierto?
>Me respondo a m� mismo: m�rate el texto de la GPL.
Y yo te echo una mano :), ahora que he aprendido a usar el jed me encanta
copiar y pegar de los buffers :-)...
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) 19yy <name of author>
..... bla bla bla...... l�ete la GPL (he cambiado de idea, me iba a quedar
un mensaje demasiado largo y el ancho de banda es un recurso escaso)
- --
_ _
| |__ __ _| |_ ___ _ __ ___ __ _ _ __
| '_ \ / _` | __/ __| '_ ` _ \ / _` | '_ \
| |_) | (_| | |_\__ \ | | | | | (_| | | | |
|_.__/ \__,_|\__|___/_| |_| |_|\__,_|_| |_|
________________________________________________________________
|Visit | http://www.geocities.com/SiliconValley/Vista/2075 |
|Linux | http://www.geocities.com/SiliconValley/Vista/4289 |
----------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: noconv
iQEVAwUBOCHct70Y27yr0iefAQGr7wf9GHK0Iy5hvY2i/rlJ6W06Ik+xlCWRlJcP
+rxfZKGACYgrDQq8CbtzawKSEPgWp1Qr2dnsBcHc2FTmyRzgVLmts9YIU6BvT5NJ
Vt1BCOTfA+5h57zbQ9y8X7L6pQOR/TYaqLvvlGMK79TGByIXmXjbOrfFqcXHYp6x
NkXLfnTK5BddNCcbBgv8tFYLEUgpoyjStW0OzF2oY46fexHCzMZtX7g96mYAjuu0
i5E0ppwVD3r4484FZsFiISBy1B+Hei2XXSfX7A84GirqnwcXcPcwshApysiiR+3M
57VvLAWYbBpRhbtnolv3vyB76gmLz5tAG+LUL+MXB1EIpNYESOzZ+w==
=lW6r
-----END PGP SIGNATURE-----
Technical Details
Message-ID:
<sbmsv7.sh.ln@simpsons4ever>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<380AF2CA.2303923A@uca.es> <38217856.955714A4@uca.es>Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII X-Google-Thread: f86c8,53b1a51539dcd1f6 X-Google-Attributes: gidf86c8,public From: batsman@simpsons4ever. (batsman) Subject: Re: Lista de palabras clave y delimitadores en C/C++ Date: 1999/11/05 Message-ID: <sbmsv7.sh.ln@simpsons4ever> X-Deja-AN: 544726914 Content-Transfer-Encoding: 8bit References: <380AF2CA.2303923A@uca.es> <38217856.955714A4@uca.es> Content-Type: text/plain; charset=iso-8859-1 X-Complaints-To: abuse@uni2.es X-Trace: m2newsread.uni2.es 941789997 62.36.24.73 (Fri, 05 Nov 1999 09:19:57 MET) Organization: Wanadoo Mime-Version: 1.0 Reply-To: Usa el programa de descodificación NNTP-Posting-Date: Fri, 05 Nov 1999 09:19:57 MET Newsgroups: es.comp.os.linux.programacion