https://github.com/bamarsha/abacus
A simple math expression parser and calculator.
https://github.com/bamarsha/abacus
calculator haskell parsec reflex-frp
Last synced: 11 months ago
JSON representation
A simple math expression parser and calculator.
- Host: GitHub
- URL: https://github.com/bamarsha/abacus
- Owner: bamarsha
- Created: 2018-12-25T03:22:13.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-03-25T19:40:20.000Z (almost 2 years ago)
- Last Synced: 2025-03-10T15:09:23.345Z (12 months ago)
- Topics: calculator, haskell, parsec, reflex-frp
- Language: Haskell
- Homepage: https://www.sarahmarshall.name/abacus/
- Size: 4.36 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Abacus

Abacus is a calculator with a small math language that supports user-defined
variables and functions.
[**Try it out!**](https://samarsha.github.io/abacus/)
## Building Abacus
Abacus uses Haskell with [Reflex](https://github.com/reflex-frp/reflex).
I recommend building Abacus with [GHCJS](https://github.com/ghcjs/ghcjs).
Here's how, assuming you have GHCJS installed:
```
npm install
cabal v2-build --ghcjs
```
This should create the folder `dist-newstyle/build/*/*/*/build/abacus/abacus.jsexe`, where the `*`'s depend on your system.
Open `index.html` in that folder in a web browser.
If you use Visual Studio Code, this repository uses a dev container that comes with GHCJS.