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.3 required=5.0 tests=BAYES_00,INVALID_MSGID, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d00c5c895805ea14,start X-Google-Attributes: gid103376,public From: Ted Dennison Subject: Announce: OpenToken 1.3.6 release Date: 1999/11/22 Message-ID: <81c0ii$a4i$1@nnrp1.deja.com>#1/1 X-Deja-AN: 551684854 X-Http-Proxy: 1.0 x28.deja.com:80 (Squid/1.1.22) for client 204.48.27.130 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Mon Nov 22 18:04:06 1999 GMT X-MyDeja-Info: XMYDJUIDtedennison Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.6 [en] (WinNT; I) Date: 1999-11-22T00:00:00+00:00 List-Id: OpenToken 1.3.6 is now available at http://www.telepath.com/dennison/Ted/OpenToken/OpenToken.html . OpenToken is a series of Ada packages that allow simple creation of token analyzers (aka: lexical analyzers) in straight inline Ada code. No precompilation step is required, and there is no arcane error-prone regular expression language to learn. As the designation implies, this is mostly a bug fix release from 1.3. There were several somewhat rare errors in the Ada-style numeric literal recognizers that have now been fixed. With this release, the provided Ada syntax now successfully tokenizes all the source code in Gnat's adainclude directory. The major new addition since 1.3 is an Ada comment/SLOC counter example graciously provided by Jim Hopper. We often get requests here on c.l.a. for SLOC counters. My usual response is to use grep -c ";", but I know some pine for more sophisticated methods. Ada_Count tallies statement terminators (';' tokens that aren't inside a set of parens), text lines, and comments. Its source code is quite short (self-reported at 62 SLOC, mostly in Text_IO calls). So it should be quite easy to modify it to suit anyone's desires/prejudices, or to report other statistics. For the curious, it reports the main OpenToken directory itself at: SLOC Total Lines Comments ---------------------------- 1055 5464 2670 It reports Gnat 3.12p's adainclude directory at: SLOC Total Lines Comments ----------------------------- 34560 127081 45224 Note that both have significantly *more* comments than SLOC. -- T.E.D. Sent via Deja.com http://www.deja.com/ Before you buy.