PAL CARD CATALOG ENTRY

SHORT DESCRIPTION

Count Ada statements in files


MOVEMENT WITHIN THE PAL CARD CATALOG
Move to top-level taxonomy
Move to keyword list

ASSET PROFILE

UNIT NAME
CAS Ada Statement Counter (COUNTADA)
VERSION
1.0
REVIEW CODE
AR; C1 1.0 A
INET ADDRESS
Not documented in PAL database
AUTHOR
WIS JPMO
Washington, D.C. 20330
Contact: Lt. Colonel Falgiano
ESD/SCW
Hanscom AFB, MA 01731
RIGHTS
PUBLIC DOMAIN
COPYRIGHT
Not documented in PAL database
DATE CREATED
1985
DATE RELEASED
1985
DATE LAST UPDATED
1985
LOCATION
PAL
C2MUG
PC-BLUE
ASR
AdaNET
ENVIRONMENT
Not documented in PAL database
LIMITATIONS
Not documented in PAL database
CERTIFICATION
Ada System Certifier_1 1.0
Date/Time of Processing: Wednesday 25 May       1994 10:59:43Am
Overall Assessment of System: OK
Classification of System: A
Basis of Classification --
Syntax Errors                               PASS
Completeness                                PASS
Independence from External Libraries        PASS
Independence from a Specific Ada Compiler   PASS

Number of ...
Files               1
Library Units       1
Lines             135
Statements         54
Comments           40

FILE LISTING

Directory Display


languages/ada/asr/components/countada:
  File Name                 Size
  ---------                 ----
  countada.zip             4,281


Totals
  ==============  ==============
    1 Files                4,281

ABSTRACT

        This function calculates  the  "statements"  of  a  valid  Ada
fragment  specified by a FILE_NAME string parameter.  It need not be a
complete  compilation  unit  but  it  should  have  closed  all   open
parentheses and and string brackets.  The number of statements of code
is returned as  an  integer.   The  Ada  statement  is  defined  by  a
semicolon  terminator  outside  of comments, parentheses, or string or
character literals.  The definition is insensitive  to  formatting  or
layout of the source.  This copy of the function is embedded in a test
and driver program.  The driver has a feature of  correcting  for  the
common  error of leaving out the extensiOn on a file name.  The nature
of this extension is system dependent and a ".TXT" extension is used.


REVISION HISTORY

DATE         VERSION AUTHOR                  HISTORY 
1985         1.0     WIS JPMO                Initial Release


RELEASE NOTICE

This prologue must be included in all copies of this software.

This software is copyright by the author.

This software is released to the Ada community.
This software is released to the Public Domain (note:
  software released to the Public Domain is not subject
  to copyright protection).
Restrictions on use or distribution:  NONE


DISCLAIMER

	This software and its documentation are provided "AS IS" and
without any expressed or implied warranties whatsoever.  No warranties
as to performance, merchantability, or fitness for a particular
purpose exist.
	The user is advised to test the software thoroughly before
relying on it.  The user must assume the entire risk and liability of
using this software.  In no event shall any person or organization of
people be held responsible for any direct, indirect, consequential or
inconsequential damages or lost profits.