From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, HEADER_SPAM autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1014db,745ecf6266b2fdbf X-Google-Attributes: gid1014db,public X-Google-Thread: 109fba,745ecf6266b2fdbf X-Google-Attributes: gid109fba,public X-Google-Thread: fc772,745ecf6266b2fdbf X-Google-Attributes: gidfc772,public X-Google-Thread: 103376,745ecf6266b2fdbf X-Google-Attributes: gid103376,public X-Google-Thread: 100850,745ecf6266b2fdbf X-Google-Attributes: gid100850,public X-Google-ArrivalTime: 2003-01-28 18:56:11 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed-east.nntpserver.com!nntpserver.com!news-out.visi.com!hermes.visi.com!gemini.plethora.net.POSTED!not-for-mail X-Old-trace: posting.google.com 1043737498 3962 127.0.0.1 (28 Jan 2003 07:04:58 GMT) Subject: Re: [ANN] an EBNF parser and coding pattern tool (LGPL) Content-Transfer-encoding: 8bit References: From: codeworker@free.fr (Cedric LEMAIRE) Organization: http://groups.google.com/ Return-Path: Content-Type: text/plain; charset=ISO-8859-1 X-Old-complaints-to: groups-abuse@google.com Newsgroups: comp.lang.c.moderated,comp.lang.ada,comp.lang.c,comp.lang.c++,comp.lang.c++.moderated Message-ID: Originator: clcm@plethora.net (Comp Lang C'Moderated) Date: 29 Jan 2003 02:56:10 GMT NNTP-Posting-Host: 837042c7.news.plethora.net X-Trace: 1043808970 gemini.plethora.net 79555 clcm@205.166.146.1 X-Complaints-To: abuse@plethora.net Xref: archiver1.google.com comp.lang.c.moderated:7319 comp.lang.ada:33531 comp.lang.c:169875 comp.lang.c++:199443 comp.lang.c++.moderated:59469 Date: 2003-01-29T02:56:10+00:00 List-Id: apm35@student.open.ac.uk (apm) wrote in message news:... > codeworker@free.fr (Cedric LEMAIRE) wrote in message news:... > > 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