Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
18
Task/Quine/LIL/quine.lil
Normal file
18
Task/Quine/LIL/quine.lil
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
/*
|
||||
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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue