Token parser works at least on provided test examples.