1 Portable calculator built using _app.nit_
5 * `calculator_logic` defines `CalculatorContext` with all the business logic of a calculator.
6 It takes as input operations and numbers, and outputs the text to display.
7 * `calculator` implements the portable graphical interface using the _app.nit_ framework
8 * `scientific_calculator` refines `calculator` to add scientific operations.
9 * `android_calculator` refines `calculator` to get a nicer aesthetic on Android.
10 * `ios_calculator` refines `calculator` to get a nicer aesthetic on iOS.
11 * `calculator_test` test `CalculatorContext` as a black box.
15 * Compile and run on the desktop (GNU/Linux and OS X) with:
22 * Compile for Android and install on a device or emulator with:
26 adb install -r bin/calculator.apk
29 * Compile for iOS and run on the simulator with:
33 ios-sim launch bin/calculator.app
38 ![Scientific calculator on Linux with GTK+](doc/linux-scientific.png)
40 ![Scientific calculator on Android](doc/android-scientific.png)
42 ![Scientific calculator on iOS](doc/ios-scientific.png)