Portable calculator built using app.nit
calculator_logicdefinesCalculatorContextwith all the business logic of a calculator. It takes as input operations and numbers, and outputs the text to display.calculatorimplements the portable graphical interface using the app.nit frameworkscientific_calculatorrefinescalculatorto add scientific operations.android_calculatorrefinescalculatorto get a nicer aesthetic on Android.ios_calculatorrefinescalculatorto get a nicer aesthetic on iOS.calculator_testtestCalculatorContextas a black box.
-
Compile and run on the desktop (GNU/Linux and OS X) with:
make bin/calculator -
Compile for Android and install on a device or emulator with:
make bin/android.apk adb install -r bin/calculator.apk -
Compile for iOS and run on the simulator with:
make bin/android.app ios-sim launch bin/calculator.app