lake/bool.h
Sami Samhuri 54831a34fa added eval and apply, lambdas, other goodies
- add booleans, dotted lists, functions
- proper lexical scope
- special forms: define, set!, and, or, quote, lambda
- added some basic list manipulations
- print functions and dotted lists
- removed nil
- more robust in general
2011-04-20 01:38:53 -07:00

24 lines
No EOL
442 B
C

/**
* bool.h
* Lake Scheme
*
* Copyright 2011 Sami Samhuri
* MIT License
*
*/
#ifndef _LAKE_BOOL_H
#define _LAKE_BOOL_H 1
#include <glib.h>
#include "lake.h"
LakeBool *bool_from_int(int b);
gboolean bool_val(LakeBool *b);
LakeStr *bool_to_str(LakeBool *b);
LakeBool *bool_eq(LakeBool *a, LakeBool *b);
char *bool_repr(LakeBool *b);
LakeVal* bool_and(LakeVal *a, LakeVal *b);
LakeVal* bool_or(LakeVal *a, LakeVal *b);
#endif