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:27

>>6
>>4
i was hopeing to avoid pointers , my idea was to make a struct containing a internal identifier number of specific type for the data and right after it the data itself without it being seperated across the mem .

>>5
>>6

my idea of apply was to store functions as pointers (as it is in C already) and just call it with the args on the stack.

in SICP it is calling either a primitive procedure or evaling a all the elements in the function , again i wanted to avoid this and generate a function just like the primitive ones using lambda but this seems very difficult .

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