From 4ec9cc051df4dd025126cb0cf262bc9ca55cdec7 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Fri, 20 Oct 2023 09:19:58 -0700 Subject: [PATCH] Format/typo check 1989/robison In the README.md I added an INABIAF section as well. I updated bugs.md as well (updating the wording as it was already in bugs.md). --- 1989/robison/README.md | 30 +++++++++++++++++------------- bugs.md | 3 ++- 2 files changed, 19 insertions(+), 14 deletions(-) diff --git a/1989/robison/README.md b/1989/robison/README.md index f67620e14..5f528b5e1 100644 --- a/1989/robison/README.md +++ b/1989/robison/README.md @@ -38,7 +38,10 @@ echo -100 x 100 + 1 | ./robison echo 100 / 100 | ./robison # <-- what happens here ? ``` -NOTE: this entry will crash with numbers with non binary digits. +### INABIAF - it's not a bug it's a feature! :-) + +This program will very likely crash or break into tiny bits :-) if you feed it +numbers with non-binary digits. ## Judges' remarks: @@ -48,14 +51,15 @@ 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. -NOTE: this entry will likely dump core with invalid input. - +For an interesting document on APL, see +. ## Author's remarks: -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 -; +This program is a handy picoAPL interpreter written in `C--`. It +outputs the evaluation of an +[APL](https://en.wikipedia.org/wiki/APL_(programming_language)) expression from standard +input. Functions are limited to dyadic `+`,`-`,`x`, and unary `-`; numerals must be binary. Parentheses may be used for grouping. For example: @@ -72,17 +76,17 @@ prints: 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 +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 +relational operators, 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 +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. +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. ## Copyright and CC BY-SA 4.0 License: diff --git a/bugs.md b/bugs.md index d6388f153..87e28b8dd 100644 --- a/bugs.md +++ b/bugs.md @@ -559,7 +559,8 @@ number larger than 20 did this. ## [1989/robison](1989/robison/robison.c) ([README.md](1989/robison/README.md)) ## STATUS: INABIAF - please **DO NOT** fix -This program will crash with numbers with non-binary digits. +This program will very likely crash or break into tiny bits :-) if you feed it +numbers with non-binary digits. ## [1989/westley](1989/westley/westley.c) ([README.md](1989/westley/README.md))