Programming languages with extensible syntax

Posted by Giorgio on Programmers See other posts from Programmers or by Giorgio
Published on 2012-09-12T19:37:26Z Indexed on 2012/09/12 21:49 UTC
Read the original article Hit count: 171

Filed under:
|
|

I have only a limited knowledge of Lisp (trying to learn a bit in my free time) but as far as I understand Lisp macros allow to introduce new language constructs and syntax by describing them in Lisp itself. This means that a new construct can be added as a library, without changing the Lisp compiler / interpreter.

This approach is very different from that of other programming languages. E.g., if I wanted to extend Pascal with a new kind of loop or some particular idiom I would have to extend the syntax and semantics of the language and then implement that new feature in the compiler.

Are there other programming languages outside the Lisp family (i.e. apart from Common Lisp, Scheme, Clojure (?), Racket (?), etc) that offer a similar possibility to extend the language within the language itself?

© Programmers or respective owner

Related posts about lisp

Related posts about Extensibility