3 ms·
No, GCC is not written in s-expressions, but GNU RTL is. You can write an RTL processor in Lisp and have macros both for input and processor itself. If you wa
by mahmud 16y ago
No, GCC is not written in s-expressions, but GNU RTL is.
You can write an RTL processor in Lisp and have macros both for input and processor itself.
If you want to explore macros for infix algolish languages, look into Jonathan Bachrach's D-Expressions for Dylan. Some of the people who first implemented it are here on HN as well.
- barrkel 16y agoLisp isn't good enough; both the structures and the functions are to be statically typed, that's the point. If we didn't care about static typing, this whole debate would be moot, and one could write the compiler in C with tag-discriminated unions if you like (which is in fact the AST format for the Delphi compiler).