miller/c/containers/bind_stack.h
2016-05-16 06:33:50 -04:00

18 lines
471 B
C

#ifndef BIND_STACK_H
#define BIND_STACK_H
#include "containers/mlrval.h"
#include "containers/mlhmmv.h"
// Bound & scoped variables for use in for-loops.
typedef struct _bind_stack_t {
} bind_stack_t;
bind_stack_t* bind_stack_alloc();
void bind_stack_free(bind_stack_t* pstack);
void bind_stack_push(bind_stack_t* pstack, mlhmmv_t* pframe);
void bind_stack_pop(bind_stack_t* pstack);
mv_t* bind_stack_resolve(bind_stack_t* pstack, char* key);
#endif // BIND_STACK_H