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 ?
|
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:
|
## 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
|
Note that this program uses only a small subset of the
|
||||||
constructs that the C language supports.
|
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:
|
## Author's remarks:
|
||||||
|
|
||||||
This program is a handy picoAPL interpreter written in C--. It
|
This program is a handy picoAPL interpreter written in `C--`. It
|
||||||
outputs the evaluation of an APL expression from standard
|
outputs the evaluation of an
|
||||||
input. Functions are limited to dyadic +,-,x, and unary -;
|
[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
|
numerals must be binary. Parentheses may be used for
|
||||||
grouping. For example:
|
grouping. For example:
|
||||||
|
|
||||||
@@ -72,17 +76,17 @@ prints:
|
|||||||
That is `5x(7-4)` is `15`. (APL groups from right to left.)
|
That is `5x(7-4)` is `15`. (APL groups from right to left.)
|
||||||
Extending it to the full APL language should be trivial.
|
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,
|
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
|
expressions retained are function calls, indirection, array
|
||||||
assignments, the ',' operator, and sizeof. Despite these
|
assignments, the ',' operator, and `sizeof`. Despite these
|
||||||
restrictions, the C-- program does arithmetic on arbitrarily
|
restrictions, the `C--` program does arithmetic on arbitrarily
|
||||||
large binary numbers.
|
large binary numbers.
|
||||||
|
|
||||||
To obtain a C-- reference, simply rip out the irrelevant pages
|
To obtain a `C--` reference, simply rip out the irrelevant pages
|
||||||
from your K&R C manual. To obtain a C-- compiler, simply rip
|
from your K&R C manual. To obtain a `C--` compiler, simply rip
|
||||||
out the irrelevant bytes from your cc compiler.
|
out the irrelevant bytes from your `cc` compiler.
|
||||||
|
|
||||||
## Copyright and CC BY-SA 4.0 License:
|
## Copyright and CC BY-SA 4.0 License:
|
||||||
|
|
||||||
|
|||||||
@@ -559,7 +559,8 @@ number larger than 20 did this.
|
|||||||
## [1989/robison](1989/robison/robison.c) ([README.md](1989/robison/README.md))
|
## [1989/robison](1989/robison/robison.c) ([README.md](1989/robison/README.md))
|
||||||
## STATUS: INABIAF - please **DO NOT** fix
|
## 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))
|
## [1989/westley](1989/westley/westley.c) ([README.md](1989/westley/README.md))
|
||||||
|
|||||||
Reference in new issue
Block a user