Implement 5.52 translate Scheme to C

This commit is contained in:
2021-06-12 19:49:53 -04:00
parent 15057b52d4
commit 90a1f8a573
12 changed files with 808 additions and 199 deletions

18
shared/scm2c/stack.h Normal file
View File

@@ -0,0 +1,18 @@
#ifndef STACK_H
#define STACK_H
typedef struct stack_elem {
void *value;
struct stack_elem *next;
} stack_elem;
typedef struct stack {
struct stack_elem *first;
} stack;
stack* create_stack(void);
void save(void *d, stack *s);
void* restore(stack *s);
#endif