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).
This commit is contained in:
1 parent
887417c6ab
commit
4ec9cc051d
2 files changed
+19
-14
No files matched your search
+17
-13
@@ -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
|
||||
<https://computerhistory.org/blog/the-apl-programming-language-source-code/>.
|
||||
|
||||
## 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:
|
||||
|
||||
|
||||
Reference in new issue
Block a user