/ScalaInterp

A parser and interpreter for arithmetic expressions represented in JSON

Primary LanguageScala

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.