18 lines
320 B
C
18 lines
320 B
C
#ifndef LVAL_OPERATIONS
|
|
#define LVAL_OPERATIONS
|
|
|
|
#include "../mpc.h"
|
|
#include "base.h"
|
|
|
|
// Constructor for symbol data type
|
|
lval* lval_sym(char* s);
|
|
|
|
/*
|
|
Methods to read (parse AST), evaluate,
|
|
and delete lval structures
|
|
*/
|
|
lval* lval_read(mpc_ast_t* t);
|
|
lval* lval_eval(lval* v);
|
|
void lval_del(lval* v);
|
|
|
|
#endif
|