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=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f849b,b8d52151b7b306d2 X-Google-Attributes: gidf849b,public X-Google-Thread: 103376,a00006d3c4735d70 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-01-08 10:20:03 PST Path: archiver1.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!mail.nartron.COM!not-for-mail From: iddw@hotmail.com (Dave Hansen) Newsgroups: comp.arch.embedded,comp.lang.ada Subject: Re: Certified C compilers for safety-critical embedded systems Date: Thu, 08 Jan 2004 18:24:23 GMT Message-ID: <3ffd9d14.1526346@News.CIS.DFN.DE> References: <3fe00b82.90228601@News.CIS.DFN.DE> <5802069.JsgInS3tXa@linux1.krischik.com> <1072464162.325936@master.nyc.kbcfp.com> <1563361.SfB03k3vvC@linux1.krischik.com> <11LvOkBBXw7$EAJw@phaedsys.demon.co.uk> <3ff0687f.528387944@News.CIS.DFN.DE> <1086072.fFeiH4ICbz@linux1.krischik.com> <3ff18d4d.603356952@News.CIS.DFN.DE> <1731094.1f7Irsyk1h@linux1.krischik.com> <3ff1b8ef.614528516@News.CIS.DFN.DE> <3FF1E06D.A351CCB4@yahoo.com> <3ff20cc8.635997032@News.CIS.DFN.DE> <3ff9df16.30249104@News.CIS.DFN.DE> <1665674.ZrTUW4qaQq@linux1.krischik.com> <1073409810.463948@master.nyc.kbcfp.com> <1073421950.964139@master.nyc.kbcfp.com> NNTP-Posting-Host: mail.nartron.com (216.65.187.224) X-Trace: news.uni-berlin.de 1073586001 8836506 216.65.187.224 ([97677]) X-Newsreader: Forte Free Agent 1.21/32.243 Xref: archiver1.google.com comp.arch.embedded:7092 comp.lang.ada:4217 Date: 2004-01-08T18:24:23+00:00 List-Id: On Thu, 08 Jan 2004 10:18:12 GMT, "Scott Moore" wrote: [...] >I put a single quote line into codewright just now. It turns the rest of the line red. >Big deal. Get a new editor. Umm, CodeWright has an Ada lexer. Not very sophisticated, but it solves this problem. When I put the function using "key'access" in a junk.ada buffer, the "access" is highlighted as a keyword, and the apostrophe (single-quote) is black. The biggest problem is that it doesn't differentiate well between functions, simple variables, and arrays: An identifier followed by a paren is highlighted as a function, otherwise it's black (default). More sophisticated behavior would require a symbol table -- I think CodeWright's language lexers are not much (if any) more sophisticated than regular expressions. If that's all too confusing, you can turn coloring off if you so desire. In any case, I don't think you need a whole new editor -- At least, not if you start with the right one. Regards, -=Dave -- Change is inevitable, progress is not.