18 lines
439 B
Text
18 lines
439 B
Text
/*
|
|
One line of LIL, given as argv[1]
|
|
Tectonics: gcc -o lilone lilone.c lil.c -lm
|
|
./lilone 'print [reflect this]'
|
|
*/
|
|
#include <stdio.h>
|
|
#include "lil.h"
|
|
int main(int argc, char** argv) {
|
|
lil_t lil = lil_new();
|
|
lil_value_t result = lil_parse(lil, argv[1], 0, 1);
|
|
|
|
const char *show = lil_to_string(result);
|
|
if (show && show[0]) printf("%s\n", show);
|
|
|
|
lil_free_value(result);
|
|
lil_free(lil);
|
|
return 0;
|
|
}
|