Erik Johansson Andersson f8d98700ac nimrod -> nim 9 years ago
..
android fc235833d4 Removes dead references. 9 years ago
ios fc235833d4 Removes dead references. 9 years ago
lazarus c99a9e5a6c examples: Trim .txt files trailing whitespace 9 years ago
nim_backend 5d80548cce examples: Trim .nim files trailing whitespace 9 years ago
nim_commandline f8d98700ac nimrod -> nim 9 years ago
.gitignore 1b1bb284d2 Clean up gitignore, the current ignore is equvilent to the previous 10 years ago
readme.txt c99a9e5a6c examples: Trim .txt files trailing whitespace 9 years ago

readme.txt

The cross platform calculator illustrates how to use Nim to create a backend
called by different native user interfaces.

Since the purpose of the example is to show how the cross platform code
interacts with Nimrod the actual backend code is just a simple addition proc.
By keeping your program logic in Nim you can easily reuse it in different
platforms.

To avoid duplication of code, the backend code lies in a separate directory and
each platform compiles it with a different custom build process, usually
generating C code in a temporary build directory.

For a more elaborate and useful example see the cross_todo example.