Code: Select all
typedef enum {a, b, c} tks;
typedef struct tkrec {
struct tkrec *next;
tks kind;
union {
struct varrec *vp;
float num;
Char *sp;
Char snch;
} UU;
} tkrec;
Code: Select all
typedef enum {a, b, c} tks;
typedef struct tkrec {
struct tkrec *next;
tks kind;
union {
struct varrec *vp;
float num;
Char *sp;
Char snch;
} UU;
} tkrec;
Code: Select all
Enumeration
#a
#b
#c
EndEnumeration
Structure tkrec
*next.tkrec
kind.l
StructureUnion
*vp.varrec ; where is the varrec struct ?
num.f
sp.s
snch.l
EndStructureUnion
EndStructure
Code: Select all
Structure tks
Enumeration
#a
#b
#c
EndEnumeration
EndStructure
Interesting...I was contemplating on doing was to translate the public domain version of Chipmunk Basic to PB