TestTok: Deleted deprecated file

This commit is contained in:
Daniel Marjamäki 2008-04-06 10:37:36 +00:00
parent 6490f79f78
commit e47cf2c97c
1 changed files with 0 additions and 40 deletions

View File

@ -1,40 +0,0 @@
// Internal testing
// Tokenize a file and print tokens
#include <iostream>
#include "tokenize.h"
//---------------------------------------------------------------------------
int main(int argc, char* argv[])
{
if (argc != 2)
return 0;
tokens = tokens_back = NULL;
Tokenize(argv[1]);
SimplifyTokenList();
unsigned int linenr = 0;
for (TOKEN *tok = tokens; tok; tok = tok->next)
{
// Print either a "\n" or a " "
if (tok->linenr != linenr)
std::cout << "\n";
else
std::cout << " ";
std::cout << tok->str;
linenr = tok->linenr;
}
// Delete all tokens..
DeallocateTokens();
return 0;
}
//---------------------------------------------------------------------------