23 lines
222 B
C
23 lines
222 B
C
![]() |
#pragma once
|
||
|
|
||
|
typedef enum
|
||
|
{
|
||
|
nilObject,
|
||
|
consObject,
|
||
|
numberObject,
|
||
|
symbolObject
|
||
|
} dataType;
|
||
|
|
||
|
typedef struct _Object
|
||
|
{
|
||
|
dataType type;
|
||
|
void *address;
|
||
|
} object;
|
||
|
|
||
|
typedef struct _Cons
|
||
|
{
|
||
|
object car;
|
||
|
object cdr;
|
||
|
} cons;
|
||
|
|