mirror of
https://github.com/samsonjs/lake.git
synced 2026-03-25 08:55:49 +00:00
- 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
24 lines
No EOL
442 B
C
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 |