Category : C Source Code
Archive   : OBFUSC89.ZIP
Filename : ROBISON.HIN

 
Output of file : ROBISON.HIN contained in archive : OBFUSC89.ZIP
Best minimal use of C: Arch D. Robison

Arch D. Robison
University of Illinois
1304 W. Springfield Ave.
Urbana, IL
61801
USA

Judges notes:

Sites with punch card facilities will be happy to note that
the source deck can be re-collated with an ASCII sort.

Note that this program uses only a small subset of the
constructs that the C language supports.

Selected notes from the author:

This program is a handy picoAPL interpreter written in C--. It
outputs the evaluation of an APL expression from standard
input. Functions are limited to dyadic +,-,x, and unary -;
numerals must be binary. Parentheses may be used for
grouping. For example:

101x111-100

prints:

1111

That is 5x(7-4) is 15. (APL groups from right to left.)
Extending it to the full APL language should be trivial.

The C-- language improves the C language by removing superfluous
and confusing features: arithmetic, logical operations, shifts,
relationals, address-of, and flow control. In fact, the only
expressions retained are function calls, indirection, array
assignments, the ',' operator, and sizeof. Despite these
restrictions, the C-- program does arithmetic on arbitrarily
large binary numbers.

To obtain a C-- reference, simply rip out the irrelevant pages
from your K&R C manual. To obtain a C-- compiler, simply rip
out the irrelevant bytes from your cc compiler.


  3 Responses to “Category : C Source Code
Archive   : OBFUSC89.ZIP
Filename : ROBISON.HIN

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/