Next: System Libraries, Previous: Expressions, Up: Top [Index]
There is a wide range of statements available to INTERCAL programs; some identifiably belong to a particular variant or dialect (such as Backtracking INTERCAL), but others can be considered to be part of the ’core language’. The statements listed here are those that the C-INTERCAL compiler will accept with no compiler switches to turn on particular dialect options. Note that many statements have slightly different effects in different implementations of INTERCAL; known incompatibilities are listed here, but it’s important to check your program on multiple compilers when attempting to write a portable program.
• Syntax Error: | Why use a deliberate syntax error? | |
• Calculate: | Assigning to variables and arrays | |
• NEXT FORGET and RESUME: | INTERCAL-72-style flow control | |
• STASH and RETRIEVE: | Value stacks and scoping | |
• IGNORE and REMEMBER: | Creating read-only variables | |
• ABSTAIN and REINSTATE: | Dynamic DOs and DON’Ts | |
• READ OUT and WRITE IN: | INTERCAL input and output | |
• GIVE UP: | How to end a program | |
• TRY AGAIN: | Control flow without loops | |
• COME FROM and NEXT FROM: | Time-reversed GOTO |