GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - bhnum/basic-calculator: Basic calculator in terminal

BranchesTags
Open more actions menu

Latest commit

 

History

3 Commits
3 Commits

Folders and files

NameName
Last commit message
Last commit date
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
mathfunction.c
mathfunction.c
 
 
mathfunction.h
mathfunction.h
 
 
parser.y
parser.y
 
 
scanner.l
scanner.l
 
 
vartable.c
vartable.c
 
 
vartable.h
vartable.h
 
 

Repository files navigation

Basic Calculator

Clone this repository and run make. You will need flex and bison.

Sample output

$ ./calc
a = 400 ^ 2
b = sqrt(a)
b
400.000000
sin(2 * 15)
0.500000
d = c
Variable c was not declared!
Error in calculation
sdf(23/0+d)
Cannot divide by zero!
Variable d was not declared!
Function sdf does not exist!
Error in calculation

About

Basic calculator in terminal

Topics

caculatorparser

Resources

Readme
MIT license
Activity

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.