Add arg check to 2006/hamre

After it was suggested this be fixed I went ahead and did it. I kept the
format almost the same by careful placement and line ending.
This commit is contained in:
Cody Boone Ferguson committed 2023-10-31 12:38:01 -07:00
1 parent 5fddca37ce
commit 7b813c4452
3 files changed
+1 -39

No files matched your search

-21
View File
@@ -10,17 +10,6 @@ make
```
### Bugs and (Mis)features
The current status of this entry is:
```
STATUS: known bug - please help us fix
```
For more detailed information see [2006 hamre in bugs.md](/bugs.md#2006-hamre).
## To use:
```sh
@@ -33,16 +22,6 @@ For more detailed information see [2006 hamre in bugs.md](/bugs.md#2006-hamre).
./hamre '-1+4/3*(2+1/(3/2*(7/2-7/3+1/6)))/2'
```
### INABIAF - it's not a bug it's a feature! :-)
This program will very likely crash or do something completely irrational :-) if you
don't supply it with an argument.
As well supplying more arguments will possibly limit the number of nested
operators supported.
Don't try dividing by 0 (zero).
## Judges' remarks:
An irrationally coded source presents rational things!