Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zenhack/syslisp

racket library for generating c code (Abandoned)
https://github.com/zenhack/syslisp

Last synced: 16 days ago
JSON representation

racket library for generating c code (Abandoned)

Awesome Lists containing this project

README

        

NOTICE: I'm not working on this anymore; I still think the idea is
worthwhile, but this repository is abandoned.

A racket library for generating c code.

The idea is, you can write:

(gen-fundef
'(func main ((argc int) (argv (ptr (ptr char)))) int
(call printf "Hello, World!\n")
(return 0)))

And this will spit out the equivalent C program. This is meant as a
stepping stone along the way to having a lisp-style macro system for use
with low-level code.

This is still *very* early days; It's a long way toward actually being
useful (the above code snippet doesn't even work yet!)