H6070 B

Implementation of programming language B

The original interpreter of B, created in Bell Labs, Murray Hill.

Examples:

Hello, World!:

Example for versions H6070 B

An example from “A tutorial introduction to the language B” by Kernigan. Shows usage and initialization of global variables.

main( ) {
  extrn a, b, c;
  putchar(a);
  putchar(b);
  putchar(c);
  putchar('!*n');
}

a 'Hell';
b 'o, W';
c 'orld';