Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

godfuckingdamnit!/prog/

Name: Anonymous 2010-02-06 15:49

hey /prog/

im writing a lisp interpreter from scratch in C (or rather trying to) and i dont know how to represent a general lisp object . i also dont know how to implement ˝lambda˝ and ˝apply˝ , or rather a function which generates a function and returns its address.

any ideas /prog/ ?
is it even possible to write a function that generates a function in C ?
and how the fuck does one make a struct member with undefined lenght/variable ?

Name: Anonymous 2010-02-06 16:59

>>18
If you insist on making a native code compiler, I would suggest you write it in Lisp. A good majority of Lisp implementations are written in Lisp, especially the compilers, because it's easier to write it in Lisp of course. Even the first LISP compiler was written in LISP. First he wrote a simple interpreter in assembler and then wrote the compiler in LISP while interpreting the compiler in the original interpreter, after that the compiler compiled itself and all was well with the world.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List