30 lines
818 B
Markdown
30 lines
818 B
Markdown
# SharpCalculator
|
|
A calculator application written in C# and Fusion.
|
|
Using Avalonia to draw GUI.
|
|
|
|
You can just type expression if tou don't like pressing GUI buttons.
|
|
|
|
**Key binds:**
|
|
- `Enter`: `=`
|
|
- `Del`: `AC`
|
|
|
|

|
|
|
|
## Building
|
|
Requirements: git, bash, [dotnet8](https://dotnet.microsoft.com/en-us/download/dotnet/8.0), [fut](https://github.com/fusionlanguage/fut)
|
|
|
|
1. ensure that [FusionCalculator](https://github.com/Timerix22/FusionCalculator) submodule is up-to-date.
|
|
```shell
|
|
it submodule update --init
|
|
```
|
|
2. Translate FusionCalculator to C#
|
|
```shell
|
|
cd FusionCalculator
|
|
./build_cs.sh --translate-only
|
|
cd ..
|
|
```
|
|
3. Build graphical application
|
|
```shell
|
|
dotnet build -c release SharpCalculator.Avalonia/SharpCalculator.Avalonia.csproj
|
|
```
|