Skip to content

rgollancz/interpreter

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 

#Simple Calculator Interpreter written in Haskell#

Takes a mathematical expression in form of a string, tokenizes, parses and evaluates to a result.

##Installation Instructions##

  • Clone project into local repository
  • Install Haskell
  • cabal install

##Run Program##

  • Navigate to src folder
  • Run ghci in terminal
  • :load Main
  • Enter expression string eg interpret "123+4*13"
  • Program can handle integers, multiplication, division, addition, subtraction and parenthesis. Do not use spaces.

##Run Tests##

  • Navigate to root folder
  • Run stack test
  • Watch tests turn green

##Authors ##

  • Rosie Gollancz
  • Laura Weston
  • Chris Lawrence
  • Lilian Breidenbach

with a little help from [Bartosz Milewski] (https://www.schoolofhaskell.com/school/starting-with-haskell/basics-of-haskell)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •