One file in the C-INTERCAL distribution (src/idiotism.oil) is written in Optimizer Idiom Language, a programming language designed especially for expressing optimizer idioms for INTERCAL in an easily editable form (well, at least it’s easier than the unmaintainable set of idioms hard-coded in C that were used in previous versions of the INTERCAL compiler).
• Basics: | The basics of how an OIL program works. | |
• Syntax: | How to write comments, idioms, and groups. | |
• Expressions: | Expressions are the basis of idioms. | |
• Patterns: | Filling in the left hand side of an idiom. | |
• Replacements: | Syntax for the right hand side. | |
• Loops: | Simplifying and shortening programs. | |
• Tips: | Some tips about using OIL. | |
• Example: | An example of how OIL can work. |