baines / peril

Very hacky "C in lisp" toy language

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Very hacky "C in lisp" toy language.

Hastily written for the Handmade Network 2020 lisp jam.

  • Evaluating an unknown symbol loads it via dlsym and calls it.
  • There is no type / count checking of arguments.
  • It doesn't support a large swath of stuff, e.g.
    • floating point
    • funcs with more arguments than fit in registers (passed on stack)
    • will only run on x86_64 linux
  • There are not enough builtin functions, I only wrote the ones needed for the demo program.
  • Probably loads of bugs

./peril < demo.txt

About

Very hacky "C in lisp" toy language


Languages

Language:C 94.8%Language:Assembly 4.3%Language:Makefile 0.9%