From 346874b165ff60236fe82742a0ffacb415b6b7ec Mon Sep 17 00:00:00 2001 From: Stephen Brennan Date: Mon, 28 May 2018 09:02:52 -0700 Subject: [PATCH] A hello world --- README.md | 9 ++++++--- scripts/hello_world.lisp | 3 +++ 2 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 scripts/hello_world.lisp diff --git a/README.md b/README.md index fbf21be..81be57b 100644 --- a/README.md +++ b/README.md @@ -10,10 +10,13 @@ Public interface with some documentation is in [inc/funlisp.h](inc/funlisp.h), and you can build the library by simply running `make`. You'll find the result at `bin/libfunlisp.a`. -Sample applications embedding funlisp are located in [tools/](tools/), currently -only a REPL. To build, e.g. `tools/repl.c`, you can do `make bin/repl`. +Sample applications embedding funlisp are located in [tools/](tools/). To +build, e.g. `tools/repl.c`, you can do `make bin/repl`. -Sample scripts don't yet exist, but will soon. +There are sample scripts within [scripts/](scripts/). You can run them with: + + make bin/runfile + bin/runfile scripts/hello_world.lisp [libstephen lisp]: https://github.com/brenns10/libstephen/tree/master/src/lisp [lisp v1]: https://github.com/brenns10/lisp diff --git a/scripts/hello_world.lisp b/scripts/hello_world.lisp new file mode 100644 index 0000000..3a35f13 --- /dev/null +++ b/scripts/hello_world.lisp @@ -0,0 +1,3 @@ +(define main + (lambda (args) + (print "hello world"))) -- 2.38.5