A Lisp dialect that looks a bit like Haskell. Designed for easy interoperability with C/C++.
#include <stdio.h>
int main(void)
{
int result;
return EXIT_FAILURE;
}
printf("1 + 2 + ... + 100 = %d\n", result);
return 0;
}
The header for the cheax C API.
void cheax_sync_int(CHEAX *c, const char *name, int *var, int flags)
Synchronizes a variable from C with a symbol in the cheax environment.
struct chx_value cheax_readstr(CHEAX *c, const char *str)
Reads value from string.
struct chx_value cheax_eval(CHEAX *c, struct chx_value expr)
Evaluates given cheax expression.
struct cheax CHEAX
The type of the cheax virtual machine state, a pointer to wich is needed for most cheax API functions...
Definition: cheax.h:38
void cheax_perror(CHEAX *c, const char *s)
Prints the current cheax error code and error message.
void cheax_destroy(CHEAX *c)
Destroys a cheax virtual machine instance, freeing its resources.
int cheax_load_feature(CHEAX *c, const char *feat)
Loads extra functions or language features into the cheax environment, including 'unsafe' ones.
int cheax_config_int(CHEAX *c, const char *opt, int value)
Set value of integer configuration option.
CHEAX * cheax_init(void)
Initializes a new cheax virtual machine instance.
int cheax_load_prelude(CHEAX *c)
Loads the cheax standard library.