/eval-exp

AST and Parser for simple expressions

Primary LanguageScalaGNU General Public License v3.0GPL-3.0

eval-exp

Build Status Codacy Badge CodeFactor codecov Coverage Status Dependencies Known Vulnerabilities

AST and Json-Parser for simple expressions

Json Schema for defining expressions

  {
    "type": <String representing the type of the entity>,
    "key": <String representing the key of the symbol>,
    "value": <String or Number representing the literal>,
    "cond": <Object representing the condition for IF statement>,
    "lhs": <Object representing the lhs operand>,
    "rhs": <Object representing the rhs operand>
  }

Build

  • Execute sbt assembly to run tests and build the uber jar.
  • Execute sbt clean coverage test coverageReport to run tests and generate the coverage report.

Json Generator Util

Use the javascript snippet to easily generate the json for complex expressions.