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.

Define

From Esolang
Jump to navigation Jump to search

Define is a subset of the C preprocessor invented by User:A with a small extension: the scans are infinite.

Syntax

  • #define macro replacement
  • ... and __VA_ARGS__ (These represent arguments for the macros)
  • ## (connect two macros)

Computational class

The C preprocessor was not Turing-complete because of the limited scans applied. Define breaks this limit, thus making it Turing-complete. Link