~brenns10/funlisp

346874b165ff60236fe82742a0ffacb415b6b7ec — Stephen Brennan 5 years ago 3716f84
A hello world
2 files changed, 9 insertions(+), 3 deletions(-)

M README.md
A scripts/hello_world.lisp
M README.md => README.md +6 -3
@@ 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

A scripts/hello_world.lisp => scripts/hello_world.lisp +3 -0
@@ 0,0 1,3 @@
(define main
  (lambda (args)
    (print "hello world")))