const symbol_t *symbol = token_symbols[token_type];
if(symbol != NULL) {
- fputs(symbol->string, f);
+ fprintf(f, "'%s'", symbol->string);
} else {
if(token_type >= 0 && token_type < 256) {
fprintf(f, "'%c'", token_type);
case T_INTEGER:
fprintf(f, "integer number %d", token->v.intvalue);
break;
+ case T_FLOATINGPOINT:
+ fprintf(f, "floatingpointer number %f", token->v.floatvalue);
+ break;
case T_STRING_LITERAL:
fprintf(f, "string '%s'", token->v.string);
break;