mumble

A Lisp written in C, following the *Build Your Own Lisp* book
Log | Files | Refs | README

commit cd468839da6ab27c3be575606c614cc7d1f7cab0
parent 0a01b3e3989ecc64ea62238a9d5d54312dbc1acd
Author: NunoSempere <nuno.sempere@protonmail.com>
Date:   Sat, 29 Apr 2023 18:34:26 -0400

step: get working hello world with make

Diffstat:
Alisp | 0
Dlisp.c | 0
Mmakefile | 4++--
Asrc/lisp.c | 6++++++
4 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/lisp b/lisp Binary files differ. diff --git a/lisp.c b/lisp.c diff --git a/makefile b/makefile @@ -9,14 +9,14 @@ CC=tcc # much faster compilation than gcc ## Main file -SRC=lisp.c +SRC=./src/lisp.c ## Formatter STYLE_BLUEPRINT=webkit FORMATTER=clang-format -i -style=$(STYLE_BLUEPRINT) build: $(SRC) - $(cc) $(src) -o lisp + $(CC) $(SRC) -o lisp format: $(SRC) $(FORMATTER) $(SRC) diff --git a/src/lisp.c b/src/lisp.c @@ -0,0 +1,6 @@ +#include <stdio.h> + +int main(int argc, char** argv){ + puts("Hello world!"); + return 0; +}