Overview
Artifact ID: | a51408f9ca7152f8ea21fdd8db64cdf1cd8716f1 |
---|---|
Page Name: | Preprocessor |
Date: | 2018-06-22 07:31:48 |
Original User: | zzo38 |
Parent: | 9d449b7fd85258be5911d15883b7930acb40950e (diff) |
Next | 87b3bc62d12dce74d0470d54322e85de0d5f3831 |
Content
Preprocessor commands are put in braces.
Built-in macros include:
- {+}
- {-}
- {*}
- {/}
- {mod}
- {band}
- {bor}
- {bxor}
- {bnot}
- {bit}
- {cat}
- {version}
- {define}
- {include}
- {call}
Computational class
It is believed to be Turing-complete, because a tag system can be implemented, for example:{define "skip" {call \2}} {define "1" {skip \1|"3"|"3"|"2"|"1"|"H"}} {define "2" {skip \1|"3"|"3"|"1"}} {define "3" {skip \1|"3"|"3"}} {define "H" \1} {call "2"|"1"|"1"}