outdated attempt of a simple tokenizer in cpp