Lisp to C converter.
-
- Posts: 2
- Joined: Sun May 08, 2016 4:18 pm
Lisp to C converter.
Hey everyone. I'm new to this forum, and I promise I'm not just plugging my new thing (which I am, but not just that -- I want to be part of this forum). It's a LISP/c to C converter that I wrote that works fully on CLISP and maybe somewhat on other versions of lisp. LISP/c is a language I wrote that's basically C stripped down to the bare bones with LISP-style macros. I find it fun and easy to use. The link to the project is here: github.com/eratosthenesia/lispc and I'd appreciate it if a few of you took a look. Thank you, and I look forward to using this forum quite a lot.
-
- Posts: 78
- Joined: Mon Dec 01, 2014 12:29 pm
- Contact:
Re: Lisp to C converter.
Wow, this is already looking fairly complete. It's easy to see this being an alternative to straight C/C++ for complicated simulation work. Embedded systems, too, since with modifications it could even compile to a specialized dialect like nesC, which I recall being kind of tedious to write, for some reason. I'm not a C++ maven, so I just glanced over those examples, and they do look nicely concise. What stuck out to me was the "Beyond Templates" section where the C code has "typedef cell cell;" which should be "typedef struct cell cell;" if I remember the pattern correctly.
Re: Lisp to C converter.
Since you are using the extension .cl on your examples is the language a superset of CL or is the power of CL only used in it's implementation?
I'm the author of two useless languages that uses BF as target machine.
Currently I'm planning a Scheme compiler :p
Currently I'm planning a Scheme compiler :p
-
- Posts: 2
- Joined: Sun May 08, 2016 4:18 pm
Re: Lisp to C converter.
Mostly in the implementation. I just use the extension "cl" as shorthand for "lisp/c". I might change that in the future. Thank you for your input.
Re: Lisp to C converter.
Wouldn't it be more logical to use .lc then if it was shorthand for LispC? .cl is a common extension for common lisp files.eratosthenesia wrote:Mostly in the implementation. I just use the extension "cl" as shorthand for "lisp/c". I might change that in the future. Thank you for your input.
I'm the author of two useless languages that uses BF as target machine.
Currently I'm planning a Scheme compiler :p
Currently I'm planning a Scheme compiler :p