comp.lang.ada
 help / color / mirror / Atom feed
From: codeworker@free.fr (Cedric LEMAIRE)
Subject: Re: [ANN] an EBNF parser and coding pattern tool (LGPL)
Date: 29 Jan 2003 02:56:10 GMT
Date: 2003-01-29T02:56:10+00:00	[thread overview]
Message-ID: <clcm-20030128-0005@plethora.net> (raw)
In-Reply-To: clcm-20030124-0006@plethora.net

apm35@student.open.ac.uk (apm) wrote in message news:<clcm-20030124-0006@plethora.net>...
> codeworker@free.fr (Cedric LEMAIRE) wrote in message news:<clcm-20030123-0008@plethora.net>...
> > The software doesn't care of parochialism about languages and can
> > generate JAVA code as well as C++ or ADA or LaTeX or your own output
> > file, whatever it is.
> > Generic programming and implementation of coding patterns become very
> [snip]
> Does this mean it can be used to implement a program that can add and
> remove Hungarian warts? This would enable programmers that don't speak
> Hungarian to observe corporate standards but still work with
> maintainable code.

Exactly. This program will be a script interpreted by 'CodeWorker', or
be a C++ program generated from the script automatically.
The way to do it is to use the 'source-to-source translation'
functionality of the software (an parse tree isn't necessary to
process the language-to-same-language transformation).

You must write the Extended BNF of the language you use (I don't
propose EBNF for languages yet) and to redefine some clauses
(identifier of a variable that is being declared, lambda-expression,
method identifier) to apply/remove the Hungary Notation on it.

Just a little detail: today, the source-to-source translation supposes
that the formats of the input and the output are different. So, you
must write explicitely the output. In the case of a source
transformation (your case), the imput should be implicitely copied to
the output, except when a special transformation must be processed
(change of variable names).
So, I'll improve the 'source-to-source translation' to process a
source transformation in a more convenient way. It will be available
before the end of the week, except if you are on a hurry!

About EBNF, I don't know what is your targeted language, but I'll be
interested in your contribution. And if you need help to write this
EBNF, do not hesitate to email me.
---------------
Cedric Lemaire
-- 
comp.lang.c.moderated - moderation address: clcm@plethora.net



  reply	other threads:[~2003-01-29  2:56 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-24  3:36 [ANN] an EBNF parser and coding pattern tool (LGPL) Cedric LEMAIRE
2003-01-24 16:40 ` Victor Porton
2003-01-25  0:33   ` llewelly
2003-01-29  2:55   ` Cedric LEMAIRE
2003-01-24 16:40 ` apm
2003-01-29  2:56   ` Cedric LEMAIRE [this message]
2003-01-31  2:25     ` Cedric LEMAIRE
2003-01-31  2:25     ` Anthony Williams
2003-02-01  4:10       ` Cedric LEMAIRE
2003-02-04 16:53     ` apm
2003-02-06 20:35       ` Cedric LEMAIRE
2003-02-06 20:36       ` Cedric LEMAIRE
2003-02-01  4:09   ` White Wolf
2003-02-03  1:28     ` Martin Ambuhl
2003-02-03  1:28     ` Hillel Y. Sims
2003-02-03 16:31       ` Tars_Tarkas
2003-02-03  1:29     ` Mark McIntyre
2003-02-03 16:31       ` CBFalconer
2003-02-04 16:53         ` Georg Bauhaus
2003-02-06 20:36           ` Cedric LEMAIRE
2003-02-07 17:33             ` Hyman Rosen
2003-02-08 18:22               ` Thant Tessman
2003-02-07 17:33             ` Anthony Williams
2003-02-11  6:15               ` Cedric LEMAIRE
2003-02-12  1:30                 ` Hyman Rosen
2003-02-13 20:03                   ` Brian Inglis
2003-02-15 20:13                     ` Hyman Rosen
2003-02-15 20:14                   ` Cedric LEMAIRE
2003-02-12  1:30                 ` Julián Albo
2003-02-15 20:14                   ` Cedric LEMAIRE
2003-02-19  6:10                     ` Alan Balmer
2003-02-12  1:30                 ` Stephen Leake
2003-02-12 18:22                   ` Hyman Rosen
2003-02-12 19:39                     ` Stephen Leake
2003-02-12 21:16                       ` Hyman Rosen
2003-02-14 20:34                         ` Stephen Leake
2003-02-15 20:14                   ` Cedric LEMAIRE
2003-02-07 17:33             ` Hyman Rosen
2003-02-03 16:31       ` ozbear
2003-02-03 16:31     ` Cedric LEMAIRE
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox