We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.
Magritte
Jump to navigation
Jump to search
Magritte is a language invented by Marc Hamann, approximately 2005. In Magritte, the only legal program is
Ceci n'est pas un programme.
Programs in Magritte are very strongly semantically guaranteed never to terminate.
Implementation
The following is an implementation in Common Lisp:
(defun interpret-Magritte (code)
"Interprets the Magritte CODE, signaling an error upon encountering an
invalid instruction."
(declare (type string code))
(loop
(unless (string= code "Ceci n'est pas un programme.")
(error "Invalid program. Expected \"Ceci n'est pas un programme.\""))))