Files
rosetta/toolchain/ifc/type.c

21 lines
264 B
C

#include "type.h"
#include <stdio.h>
void type_print(const struct type *ty)
{
switch (ty->ty_id) {
case TYPE_INT:
printf("int");
break;
case TYPE_STRING:
printf("string");
break;
case TYPE_HANDLE:
printf("handle");
break;
default:
break;
}
}