but it doesn't link because of a missing library; and having moved source files around the Makefile currently doesn't work.
26 lines
579 B
C
26 lines
579 B
C
/**
|
|
* day1.c
|
|
*
|
|
* Grendel: a compiling Beowulf reimplementation.
|
|
*
|
|
* Day 1 of work towards a compiler... eventually..
|
|
*
|
|
* This is a straight copy of Noah Zentzis' work. There's no original work of
|
|
* mine here, yet
|
|
*
|
|
* (c) 2026 Simon Brooke <simon@journeyman.cc>
|
|
* Licensed under GPL version 2.0, or, at your option, any later version.
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
#include <stdint.h>
|
|
#include <string.h>
|
|
|
|
__attribute__((__cdecl__))
|
|
extern int lisp_entry();
|
|
|
|
int main(int argc, const char **argv) {
|
|
int val = lisp_entry();
|
|
printf("%d\n", val);
|
|
return 0;
|
|
}
|