ASE2 CARD CATALOG ENTRY
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
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.
DATE VERSION AUTHOR HISTORY 19850730 1.0 Richard Conn Initial Release
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
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.
Powered by the Generic Web-Based Reuse Library (GWRL)