from enum import Enum
class S(Enum):
C=1;V=2;F=3
class T:
def __init__(s,b,c=1,d=None,s=S.C):
s.b,s.c,s.d,s.s=b,c,d,s
def P(s):
return s.c*s.b.P()if s.s==S.C else s.c*'*'if s.s==S.V else s.b.P()+'()'if s.s==S.F else''
B=T(None,1,0,S.V)
C=T(B)
I=T(B,4)
L=T(B,4)
S_=T(B,2)
F=T(B,4)
D=T(B,8)
LD=T(B,12)
P=lambda t:T(t,8,0,S.V)
A=lambda t,n:T(t,t.c*n)
G=lambda n:T(V,1,0,S.V)if n=='void'else I if n=='int'else C if n=='char'else S_ if n=='short'else L if n=='long'else F if n=='float'else D if n=='double'else P(G(n[:-1]))if n[-1]=='*'else A(G(n.split('[')[0]),eval(n.split('[')[1][:-1]))if'['in n else T(G(n.split('(')[0][:-1]),0,0,S.F)
V=G('void')
Note that this is a simplified representation and doesn't cover all the intricacies of the C90 type system, such as qualifiers (const, volatile), structs, unions, enums, and typedefs. However, it should give you a basic idea of how the type system can be represented in a compact way using Python.