Break strings into tokens
Date/Time of Processing: Tuesday 24 May 1994 01:44:06Pm 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 2 Lines 534 Statements 125 Comments 188
languages/ada/asr/new-abstractions/scanners: File Name Size --------- ---- scanners.zip 3,754 Totals ============== ============== 1 Files 3,754
Package Scanners is used to break strings into tokens in a very simple, efficient manner. Operations provided are: Start_Scanner Initialize Scanner Is_Empty Return TRUE if no characters remain Is_Alpha Return TRUE if Scanner is at an alphabetic char Is_Digit Return TRUE if Scanner is at a digit Is_Sign Return TRUE if Scanner is at a sign char Is_Digit_Or_Sign Return TRUE if Scanner is at a digit or sign Skip_Blanks Skip leading spaces and tabs Trim_Blanks Remove leading and trailing spaces and tabs Scan_Until Scan up to be not including a given char Scan_Word Scan a sequence of non-blank chars Scan_Number Scan a sequence of numeric chars Scan_Delimited Scan delimited string Scan_Quoted Scan quoted string, undoubling quotes if needed NEW_ABSTRACTIONS is used by NOSC/WIS tools 4.1.1 and 4.1.2.
DATE VERSION AUTHOR HISTORY 03/85 1.0 Bill Toscano Initial Release
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
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.