Consolidate expression creation functions in expr module
This commit is contained in:
@@ -40,4 +40,12 @@ typedef struct expr {
|
||||
};
|
||||
} expr_t;
|
||||
|
||||
struct store;
|
||||
|
||||
expr_t *expr_integer(struct store *store, int64_t value);
|
||||
expr_t *expr_symbol(struct store *store, const symbol_t *symbol);
|
||||
expr_t *expr_str_symbol(struct store *store, const char *str);
|
||||
expr_t *expr_empty_list(struct store *store);
|
||||
expr_t *expr_pair(struct store *store, expr_t *car, expr_t *cdr);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user