Skip to content

Using Erlang parse tools to evaluate a string math expression and calculate its value

Notifications You must be signed in to change notification settings

iaguirre88/parse_string_calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Calculator

Slides: https://iaguirre88.github.io/parse_string_calculator/

Simple toy app to test yecc and leex.

It takes a string with a basic math expresion representation and parses it to get its result. Currently it only supports +, * and parentheses.

Example inputs

  • "1"
  • "3+2"
  • "3*2+1"
  • "(1)"
  • "3 * (2 + 1)"
  • "3 * (2 + 1 + 5 * (3+2))"

About

Using Erlang parse tools to evaluate a string math expression and calculate its value

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published