Skip to content

A parser and interpreter for arithmetic expressions represented in JSON

Notifications You must be signed in to change notification settings

katielevy1/ScalaInterp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

By Katie Levy and Erin McDonald

Scala Parser and Interpreter

A program that takes in a JSON arithmetic expression, parses it, and interprets it to return the final result. Using the scala library Son of JSON https://github.com/wspringer/sonofjson.

Getting Started

  • Put a tester file in sonofjson/src/main/resources. Note: Example tester files are in /sonofjson/src/main/resources.
  • In the file sonofjson/src/main/scala/langpract.scala, put the name of the tester file in place of "foo.json".
  • Run sbt run to get a result.

About

A parser and interpreter for arithmetic expressions represented in JSON

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages