Files
rosetta/toolchain/ifc/type.c

18 lines
216 B
C
Raw Normal View History

#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;
default:
break;
}
}