Skip to content

codeitlikemiley/calc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yet Another Calculator Built on Rust

Rust Build and Test

Installation of calc Terminal

git clone https://github.com/codeitlikemiley/calc
cd calc
git checkout cli
cargo build --release
# copy to your bin directory
cp target/release/calc ~/.local/bin/calc

Usage of CLI

calc
Enter an expression (e.g., 5 + 3) or 'exit|clear':
3 + 5 // 8
3 +   5 //8
3+3+3 //9
3+(2*2)-1 //6
Screenshot 2023-09-04 at 8 14 25 AM

Installation of GUI App

git clone https://github.com/codeitlikemiley/calc
cd calc
git checkout gui
cargo build --release
# copy to your bin directory
cp target/release/calc ~/.local/bin/calg
# copy to /Applications on Mac
Note: if you will use both terminal and gui better alias gui to `calg`

Usage of GUI Calculator

  • invoke command calg to open it and start pressing buttons
Screenshot 2023-09-04 at 7 51 45 AM

Install CrossPlatform Calculator with Dioxus + Rust

git clone https://github.com/codeitlikemiley/calc
cd calc
git checkout dioxus
dx bundle --release
# copy to your bin directory
cd dist/bundle/
# install using dmg file by double clicking it
  • Usage , open with cmd + space and type calculator
Screenshot 2023-09-04 at 1 31 55 PM

Objectives

Build a Simple REPL CLI calc

  • Basic arithmetic operations
  • Parentheses Operations
  • Chain Operations
  • Clear Screen
  • Exit
  • REPL mode
  • use Arrow Key Up and Down to navigate through history

Build a Simple GUI calg

  • Show a Simple GUI Calculator using Iced
  • Move Logic of Evaluating Expression to Update
  • Add Test Basic Operations we can do

Build a CrossPlatform App with Dioxus

  • use tailwindcss
  • use logic of calculator
  • build a simple crossplatform gui calculator

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages