Re: My thoughts on C# and gaming.
Bill Kelly <[email protected]>
| Newsgroups | gmane.games.devel.sweng |
|---|---|
| Message-ID | <[email protected]> |
OvermindDL1 wrote: > I guess I should describe read-macro's quickly to explain how that > works. A read-macro in Lisp looks for a token string (usually > starting with #) where an open parenthesis usually can usually appear. > As I recall, most LISP implementations (any that follow the standard) > match the first two characters after that, but you can match further > more inside your read-macro. At that point your read-macro is passed > the character stream directly, and you match things and build a Lisp > structure based on the stream input (in other words you build a > parser). When you reach the end of the part of the stream that you > want to parse then you just return the Lisp structure you built, and > it compiles that structure as code in-place, and parsing happens > through normal Lisp after that as normal. Intriguing! Thanks! Found a detailed chapter on Lisp read-macros for those interested: http://letoverlambda.com/index.cl/guest/chap4.html Regards, Bill _______________________________________________ Sweng-Gamedev mailing list [email protected] http://lists.midnightryder.com/listinfo.cgi/sweng-gamedev-midnightryder.com