3 ms·
Some references or more examples of compilers that use Lisp would be helpful. It was my understanding that compilers used tools based on LEX & YACC (Flex & Biso
by jobu 12y ago
Some references or more examples of compilers that use Lisp would be helpful. It was my understanding that compilers used tools based on LEX & YACC (Flex & Bison for GCC). The author mentions Clang, but Google couldn't find anything definitive that says Clang uses Lisp internally.
http://dinosaur.compilertools.net/ http://dinosaur.compilertools.net/
http://www.tldp.org/HOWTO/GCC-Frontend-HOWTO-3.html http://www.tldp.org/HOWTO/GCC-Frontend-HOWTO-3.html
- thegeomaster 12y agoIt only has to do with the internal usage of ASTs (abstract syntax trees) within compilers. Lisp code can be likened to an abstract syntax tree, and GCC just uses the familiar Lisp indenting rules and parenthesis syntax to output its ASTs. Therefore, I don't think compilers really use Lisp internally, it's just that they boil the code down to a form that resembles Lisp and can be conveniently output as so.