PAL CARD CATALOG ENTRY

SHORT DESCRIPTION

A generic parsing package like ARGC/ARGV under UNIX


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

ASSET PROFILE

UNIT NAME
PARSER
VERSION
1.0
REVIEW CODE
AR; C1 1.0 A
INET ADDRESS
RCONN at SIMTEL20
AUTHOR
Richard Conn
Texas Instruments, Ada Technology Branch
PO Box 801, MS 8007
McKinney, TX 75069
RIGHTS
PUBLIC DOMAIN
COPYRIGHT
Not documented in PAL database
DATE CREATED
21 July 85
DATE RELEASED
30 July 85
DATE LAST UPDATED
30 July 85
LOCATION
C2MUG
PC-BLUE
ASR
PAL
AdaNET
ENVIRONMENT
DG MV10000 (ROLM ADE)
LIMITATIONS
Not documented in PAL database
CERTIFICATION
Ada System Certifier_1 1.0
Date/Time of Processing: Monday    30 May       1994 02:10:34Pm
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               2
Library Units       3
Lines             181
Statements         86
Comments           45

FILE LISTING

Directory Display


languages/ada/asr/components/parser:
  File Name                 Size
  ---------                 ----
  parser.zip               4,898


Totals
  ==============  ==============
    1 Files                4,898

ABSTRACT

        PARSER is a generic parser that functions in a manner  similar
to  the  ARGC/ARGV  parser of UNIX.  It contains one procedure, PARSE,
which accepts a string as input and  returns  ARGC,  a  count  of  the
number  of  tokens  in the string, and ARGV, a vector of strings, each
string containing a token.
        PARSER is instantiated with two strings (DEL for DELIMITER and
DEL_TOKEN  for  DELIMITER_TOKEN).   The  DEL  string  is  composed  of
characters which delimit each token (and are not a part of the token).
All characters less than space are automatically delimiters,  and  the
DEL  string  should  contain at least one character (such as a space).
DEL_TOKEN is a string composed of characters which delimit tokens  and
which are tokens themselves.  If "=" is a DEL_TOKEN, for example, then
"CAT= DOG" is composed of three tokens, "CAT", "=", and  "DOG",  where
if  "=" is a DEL, then "CAT= DOG" is composed of two tokens, "CAT" and
"DOG".  This assumes that the space character is a DEL.


REVISION HISTORY

DATE         VERSION	AUTHOR                  HISTORY
19850730        1.0  Richard Conn            Initial Release


RELEASE NOTICE

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

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.