Sophie

Sophie

distrib > Mandriva > 2011.0 > i586 > by-pkgid > 0f593f47b85ce09ba29c11debf159b75 > files > 13

dnstouch-debug-0.4-16mdv2011.0.i586.rpm

// Written by John Newbigin
// jn@it.swin.edu.au
// Copyright (c) 1999 John Newbigin
// Covered by the terms of the GPL.

#ifndef TOKEN2_H
#define TOKEN2_H

#include "string.h"
#include <stdio.h>

class TToken2
{
public:
	TToken2(HugeString *extraWordChar);
	~TToken2();

	int AssignFile(char *FileName);
	int getToken(HugeString *string);
	int getLineNo();

private:
	char *filename;
	FILE *f;
	int lineNo;

	int state;
	int peekedChar;

	int GetChar();
	int PeekChar();
	int AcceptChar();
	
	int instring(char c, char *str);
    char *WORDCHARS;
    HugeString *newWORDCHARS;

};

#endif