Skip to content

justinpage/go-web-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go web calculator

A calculator powered by lexical analysis

IMAGE

About

The Go Programming Language textbook offers a study of an expression evaluator. Using lexical analysis, we expose a simple web server that evaluates mathematical expressions. A web-based calculator is provided as an interface to the expression evaluator.

Compile

You will need the latest stable version of go installed on your machine:

https://golang.org/dl/

Run the following commands to download and build for execution:

  1. git clone https://github.com/justinpage/go-web-calculator.git
  2. cd go-web-calculator
  3. go build -o calculator main.go

Execute

  1. Launch web-based calculator:
    • ./calcuator or ./calculator --port <number>
  2. Visit localhost:<port-number>
    • By default, port number is 8080.

Credits

  • Original design by Sarah Frisk
  • Lexical analysis was studied under Donovan and Kernighan via GOPL

About

A calculator powered by lexical analysis

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published