comp.lang.ada
 help / color / mirror / Atom feed
* Announce: OpenToken 1.3.6 release
@ 1999-11-22  0:00 Ted Dennison
  0 siblings, 0 replies; only message in thread
From: Ted Dennison @ 1999-11-22  0:00 UTC (permalink / raw)


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.




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-11-22  0:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-11-22  0:00 Announce: OpenToken 1.3.6 release Ted Dennison

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