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