2017-05-05 14:37:53 +02:00
2017-05-05 14:37:53 +02:00
2017-04-28 11:54:10 +02:00
2017-04-28 18:07:46 +02:00
2017-04-27 19:29:42 +02:00
2017-04-28 18:07:46 +02:00
2017-05-05 14:37:53 +02:00
2017-04-27 19:29:42 +02:00

bc

A better basic calculator. Like the original bc, but with a better prompt. Work in progress. Very incapable right now.

What?

The idea behind bc is to display partial results to the right of the cursor in yellow while we type. A little example can be found in the video below. Other than that, we want to be compatible with the original bc, though somewhat faster. We have infinite precision integers and double precision floats.

TODO

Basically everything except calculating stuff with numbers. This includes:

  • A parser (foundations are laid)
  • An evaluator (the current just does a tree rewrite on binary operations; this is cute, but not capable enough for the full bc language, of course)
  • A better data structure (numbers should probably have their own parent type to implement calculation)
  • A good readline copy (haskeline is sadly out of the question for this project)
Description
A Better Calculator
Readme 48 KiB
Languages
Haskell 99.9%