1 Using the language🔗ℹ

There are two intended ways to use this implementation:

  • Inside the repository, source files can use #lang reader "intercal.rkt".

  • After the package is installed, source files can use #lang intercal.

Typical usage is to run an INTERCAL file directly:

#lang intercal

DO .1 <- #1

DO READ OUT .1

PLEASE GIVE UP

and then:

racket pit/hello.i

The repository also includes a number of sample and regression-tested programs, including "pit/fib.i", "pit/hanoi.i", "pit/hello.i", "pit/beer.i", "pit/life.i", "pit/rot13.i", "pit/triangular.i", and "pit/unlambda.i".

For a worked example aimed at writing new programs, see Designing INTERCAL Programs.