|
84749 packages online
|
|
|
|
|
|
No screenshot available
|
Short: | GNU bc and dc calculators (not SDK) |
Author: | philnelsonacm.org (Phil Nelson) |
Uploader: | polluks sdf lonestar org (Stefan Haubenthal) |
Type: | dev/gg |
Version: | 1.06 |
Architecture: | ppc-morphos |
Date: | 2015-02-14 |
Download: | dev/gg/bc.lha - View contents | Readme: | dev/gg/bc.readme |
Downloads: | 5426 |
|
bc is an arbitrary precision numeric processing language. Syntax is
similar to C, but differs in many substantial areas. It supports
interactive execution of statements. bc is a utility included in the
POSIX P1003.2/D11 draft standard.
This version was written to be a POSIX compliant bc processor with
several extensions to the draft standard. Option flags are available
to cause warning or rejection of the extensions to the POSIX standard.
For those who want only POSIX bc with no extensions, a grammar is
provided for exactly the language described in the POSIX document.
The grammar (sbc.y) comes from the POSIX document. The Makefile
contains rules to make sbc. (for Standard BC)
Since the POSIX document does not specify how bc must be implemented,
this version does not use the historical method of having bc be a
compiler for the dc calculator. This version has a single executable
that both compiles the language and runs the a resulting "byte code".
The "byte code" is NOT the dc language.
Also, included in the initial distribution is the library file
vfprintf.c for MINIX systems. My minix 1.5 did not have this file.
Also, you should verify that vsprintf.c works correctly on your
system.
The extensions add some features I think are missing. The major
changes and additions for bc are (a) names are allowed to be full
identifiers ([a-z][a-z0-9_]*), (b) addition of the &&, ||, and !
operators, (c) allowing comparison and boolean operations in any
expression, (d) addition of an else clause to the if statement, (e)
addition of a new standard function "read()" that reads a number from
the standard input under program control, (f) passing of arrays as
parameters by variable, (g) addition of the "halt" statement that is
an executable statement unlike the quit (i.e. "if (1 == 0) quit" will
halt bc but "if (1 == 0) halt" will not halt bc.), and (h) the
addition of the special variable "last" that is assigned the value of
each print as the number is printed.
|
Contents of dev/gg/bc.lha
PERMISSION UID GID PACKED SIZE RATIO METHOD CRC STAMP NAME
---------- ----------- ------- ------- ------ ---------- ------------ ----------
[generic] 217 459 47.3% -lh5- 8b56 Jul 8 2000 bc-1.06/acconfig.h
[generic] 2182 4653 46.9% -lh5- 04bd Oct 3 2000 bc-1.06/aclocal.m4
[generic] 99 120 82.5% -lh5- dca0 Sep 13 2000 bc-1.06/AUTHORS
[generic] 40542 92272 43.9% -lh5- 192a Feb 3 15:09 bc-1.06/bc/bc
[generic] 14298 57961 24.7% -lh5- 56ac Oct 3 2000 bc-1.06/bc/bc.c
[generic] 355 739 48.0% -lh5- f822 Oct 3 2000 bc-1.06/bc/bc.h
[generic] 4049 16011 25.3% -lh5- df95 Sep 20 2000 bc-1.06/bc/bc.y
[generic] 2031 5022 40.4% -lh5- 5801 Sep 13 2000 bc-1.06/bc/bcdefs.h
[generic] 1234 2728 45.2% -lh5- 7e12 Sep 13 2000 bc-1.06/bc/const.h
[generic] 4993 17898 27.9% -lh5- 506a Sep 13 2000 bc-1.06/bc/execute.c
[generic] 81 93 87.1% -lh5- 5a4a Jul 8 2000 bc-1.06/bc/fix-libmath_h
[generic] 752 1469 51.2% -lh5- 8af5 Sep 13 2000 bc-1.06/bc/global.c
[generic] 1814 4283 42.4% -lh5- f444 Sep 13 2000 bc-1.06/bc/global.h
[generic] 2493 6300 39.6% -lh5- 0df7 Sep 13 2000 bc-1.06/bc/libmath.b
[generic] 961 2431 39.5% -lh5- 3138 Oct 23 2000 bc-1.06/bc/libmath.h
[generic] 2653 7640 34.7% -lh5- 08fa Sep 13 2000 bc-1.06/bc/load.c
[generic] 3128 7966 39.3% -lh5- 490a Sep 13 2000 bc-1.06/bc/main.c
[generic] 3125 9312 33.6% -lh5- a134 Feb 3 12:44 bc-1.06/bc/Makefile
[generic] 505 1059 47.7% -lh5- ad95 Sep 8 2000 bc-1.06/bc/Makefile.am
[generic] 3110 9352 33.3% -lh5- fd71 Nov 15 2000 bc-1.06/bc/Makefile.in
[generic] 1809 5265 34.4% -lh5- e5f0 Sep 13 2000 bc-1.06/bc/proto.h
[generic] 2829 10929 25.9% -lh5- 5cfe Sep 13 2000 bc-1.06/bc/sbc.y
[generic] 16945 59905 28.3% -lh5- 5a62 Oct 3 2000 bc-1.06/bc/scan.c
[generic] 3357 9129 36.8% -lh5- 88ef Sep 13 2000 bc-1.06/bc/scan.l
[generic] 5871 22784 25.8% -lh5- c194 Sep 13 2000 bc-1.06/bc/storage.c
[generic] 5607 17819 31.5% -lh5- 3119 Sep 13 2000 bc-1.06/bc/util.c
[generic] 12020 35107 34.2% -lh5- 30fc Sep 28 2000 bc-1.06/ChangeLog
[generic] 742 2140 34.7% -lh5- 0102 Feb 3 12:44 bc-1.06/config.cache
[generic] 768 2235 34.4% -lh5- 925b Feb 3 12:44 bc-1.06/config.h
[generic] 661 1923 34.4% -lh5- 3e97 Oct 3 2000 bc-1.06/config.h.in
[generic] 12426 47074 26.4% -lh5- b979 Feb 3 12:44 bc-1.06/config.log
[generic] 3122 10882 28.7% -lh5- b449 Feb 3 12:44 bc-1.06/config.status
[generic] 20037 80967 24.7% -lh5- 343e Oct 3 2000 bc-1.06/configure
[generic] 984 2367 41.6% -lh5- 26fc Jul 8 2000 bc-1.06/configure.in
[generic] 7014 17992 39.0% -lh5- 4902 Sep 16 1999 bc-1.06/COPYING
[generic] 9651 26532 36.4% -lh5- e3ce Jul 8 2000 bc-1.06/COPYING.LIB
[generic] 1284 3104 41.4% -lh5- 2420 Sep 13 2000 bc-1.06/dc/array.c
[generic] 23170 51800 44.7% -lh5- 609b Feb 3 15:09 bc-1.06/dc/dc
[generic] 1115 4170 26.7% -lh5- 61e4 Sep 13 2000 bc-1.06/dc/dc-proto.h
[generic] 732 1400 52.3% -lh5- 30a2 Sep 13 2000 bc-1.06/dc/dc-regdef.h
[generic] 1962 4315 45.5% -lh5- 96ae Jul 8 2000 bc-1.06/dc/dc.c
[generic] 1099 2270 48.4% -lh5- 7b81 Sep 13 2000 bc-1.06/dc/dc.h
[generic] 5509 18652 29.5% -lh5- 990d Aug 31 2000 bc-1.06/dc/eval.c
[generic] 2724 7946 34.3% -lh5- 5310 Feb 3 12:44 bc-1.06/dc/Makefile
[generic] 246 356 69.1% -lh5- c23d Sep 8 2000 bc-1.06/dc/Makefile.am
[generic] 2707 7954 34.0% -lh5- 04e2 Nov 15 2000 bc-1.06/dc/Makefile.in
[generic] 1921 4383 43.8% -lh5- 762e Jul 8 2000 bc-1.06/dc/misc.c
[generic] 4010 13855 28.9% -lh5- 3efb Aug 31 2000 bc-1.06/dc/numeric.c
[generic] 2948 11382 25.9% -lh5- c016 Sep 13 2000 bc-1.06/dc/stack.c
[generic] 2120 5257 40.3% -lh5- d845 Sep 13 2000 bc-1.06/dc/string.c
[generic] 12267 34397 35.7% -lh5- f60b Sep 28 2000 bc-1.06/doc/bc.1
[generic] 12689 37674 33.7% -lh5- 84cc Oct 3 2000 bc-1.06/doc/bc.info
[generic] 12848 38375 33.5% -lh5- bfe7 Sep 28 2000 bc-1.06/doc/bc.texi
[generic] 4728 13075 36.2% -lh5- 0dec Jul 8 2000 bc-1.06/doc/dc.1
[generic] 5200 15365 33.8% -lh5- a16f Oct 3 2000 bc-1.06/doc/dc.info
[generic] 5431 16786 32.4% -lh5- 093a Aug 31 2000 bc-1.06/doc/dc.texi
[generic] 2913 9570 30.4% -lh5- 7c36 Feb 3 12:44 bc-1.06/doc/Makefile
[generic] 200 293 68.3% -lh5- dee9 Sep 27 2000 bc-1.06/doc/Makefile.am
[generic] 2887 9558 30.2% -lh5- 3c6b Nov 15 2000 bc-1.06/doc/Makefile.in
[generic] 64386 200195 32.2% -lh5- 48af Jul 8 2000 bc-1.06/doc/texinfo.tex
[generic] 198 330 60.0% -lh5- d324 Jul 8 2000 bc-1.06/Examples/ckbook.b
[generic] 546 1188 46.0% -lh5- da1c Jul 8 2000 bc-1.06/Examples/pi.b
[generic] 323 633 51.0% -lh5- 3367 Jul 8 2000 bc-1.06/Examples/primes.b
[generic] 359 710 50.6% -lh5- 885b Jul 8 2000 bc-1.06/Examples/twins.b
[generic] 435 829 52.5% -lh5- cc48 Jul 8 2000 bc-1.06/FAQ
[generic] 1894 4632 40.9% -lh5- d645 Jul 8 2000 bc-1.06/h/getopt.h
[generic] 1613 4310 37.4% -lh5- 0da5 Oct 3 2000 bc-1.06/h/number.h
[generic] 2892 7463 38.8% -lh5- 9cc6 Jul 8 2000 bc-1.06/INSTALL
[generic] 1857 4771 38.9% -lh5- 0b99 Jul 8 2000 bc-1.06/install-sh
[generic] 7451 21957 33.9% -lh5- f12f Jul 8 2000 bc-1.06/lib/getopt.c
[generic] 1791 4448 40.3% -lh5- 1a8e Jul 8 2000 bc-1.06/lib/getopt1.c
[generic] 29644 79336 37.4% -lh5- 5b65 Feb 3 15:07 bc-1.06/lib/libbc.a
[generic] 2598 7217 36.0% -lh5- 1b4b Feb 3 12:44 bc-1.06/lib/Makefile
[generic] 351 631 55.6% -lh5- 3d39 Sep 8 2000 bc-1.06/lib/Makefile.am
[generic] 2581 7225 35.7% -lh5- 4d2b Nov 15 2000 bc-1.06/lib/Makefile.in
[generic] 11906 41530 28.7% -lh5- 0d5b Oct 3 2000 bc-1.06/lib/number.c
[generic] 1494 4577 32.6% -lh5- 18c8 Aug 31 2000 bc-1.06/lib/testmul.c
[generic] 311 565 55.0% -lh5- 3c07 Sep 13 2000 bc-1.06/lib/vfprintf.c
[generic] 3528 11414 30.9% -lh5- 3157 Feb 3 12:44 bc-1.06/Makefile
[generic] 278 594 46.8% -lh5- b31f Jul 8 2000 bc-1.06/Makefile.am
[generic] 3515 11415 30.8% -lh5- 5474 Nov 15 2000 bc-1.06/Makefile.in
[generic] 1714 4639 36.9% -lh5- 6823 Jul 8 2000 bc-1.06/missing
[generic] 387 730 53.0% -lh5- 6a5b Jul 8 2000 bc-1.06/mkinstalldirs
[generic] 917 1917 47.8% -lh5- 2cb6 Sep 12 2000 bc-1.06/NEWS
[generic] 1736 3522 49.3% -lh5- bc11 Aug 31 2000 bc-1.06/README
[generic] 10 10 100.0% -lh0- f5e3 Feb 3 12:44 bc-1.06/stamp-h
[generic] 10 10 100.0% -lh0- f5e3 Oct 3 2000 bc-1.06/stamp-h.in
[generic] 120 192 62.5% -lh5- 1d93 Jul 8 2000 bc-1.06/Test/array.b
[generic] 159 371 42.9% -lh5- d1d9 Jul 8 2000 bc-1.06/Test/arrayp.b
[generic] 111 205 54.1% -lh5- 5146 Jul 8 2000 bc-1.06/Test/aryprm.b
[generic] 57 70 81.4% -lh5- 0570 Jul 8 2000 bc-1.06/Test/atan.b
[generic] 391 889 44.0% -lh5- 280b Jul 8 2000 bc-1.06/Test/BUG.bc
[generic] 522 1348 38.7% -lh5- 2377 Jul 8 2000 bc-1.06/Test/checklib.b
[generic] 72 82 87.8% -lh5- ebc8 Jul 8 2000 bc-1.06/Test/div.b
[generic] 38 38 100.0% -lh0- 2f1e Jul 8 2000 bc-1.06/Test/exp.b
[generic] 91 107 85.0% -lh5- bb85 Jul 8 2000 bc-1.06/Test/fact.b
[generic] 75 89 84.3% -lh5- baae Jul 8 2000 bc-1.06/Test/jn.b
[generic] 61 87 70.1% -lh5- 68da Jul 8 2000 bc-1.06/Test/ln.b
[generic] 94 285 33.0% -lh5- 6a78 Jul 8 2000 bc-1.06/Test/mul.b
[generic] 71 117 60.7% -lh5- c56c Jul 8 2000 bc-1.06/Test/raise.b
[generic] 1382 2529 54.6% -lh5- 75f8 Jul 8 2000 bc-1.06/Test/signum
[generic] 70 100 70.0% -lh5- 9d93 Jul 8 2000 bc-1.06/Test/sine.b
[generic] 71 184 38.6% -lh5- d675 Jul 8 2000 bc-1.06/Test/sqrt.b
[generic] 104 157 66.2% -lh5- 5253 Jul 8 2000 bc-1.06/Test/sqrt1.b
[generic] 78 179 43.6% -lh5- 825e Jul 8 2000 bc-1.06/Test/sqrt2.b
[generic] 503 1011 49.8% -lh5- cedd Jul 8 2000 bc-1.06/Test/testfn.b
[generic] 181 260 69.6% -lh5- 912d Jul 8 2000 bc-1.06/Test/timetest
---------- ----------- ------- ------- ------ ---------- ------------ ----------
Total 107 files 452151 1347853 33.5% Feb 13 19:39
|
|
|
|
Page generated in 0.02 seconds |
Aminet © 1992-2024 Urban
Müller and the Aminet team.
Aminet contact address: <aminetaminet net> |