Category : C++ Source Code
Archive   : CMDL.ZIP
Filename : SCANNER.H

 
Output of file : SCANNER.H contained in archive : CMDL.ZIP
/***************************************************************
File: SCANNER.H Copyright 1992 by Dlugosz Software
part of the CMDL package for command-line parsing
the scanner class, used as part of parsing the strings.
This version may be used freely, with attribution.
***************************************************************/

class cmdlscan {
const char* source; //name of where this came from (for error reports)
cmdlscan* link; //previous string
char* s; //the string being scanned
int cursor; //the current scan position
public:
cmdlscan (char* s);
int mark() { return cursor; };
void restore (int x) { cursor= x; };
void skipws(); //skip whitespace
void extract_word (char* buf, int len);
void operator++ () { cursor++; }
char thischar() { return s[cursor]; }
char* extract_string();
};


  3 Responses to “Category : C++ Source Code
Archive   : CMDL.ZIP
Filename : SCANNER.H

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/