Skip to content

[#5] Add 'repl' command to morley

Sandeep.C.R requested to merge sras/#5-michelson-repl into master

Description

Adds a simple REPL for running Morley instructions. Right now a command 'repl' is added to morley executable morley-client morley executable. The REPL starts with an empty stack. Instructions can be entered, possibly multiple ones separated by semicolons. After execution, the modified stack is printed. Use ":help" to see the available commands after starting the REPL.

Related issue(s)

Resolves #5 (closed)

Checklist for your Merge Request

Related changes (conditional)

  • Tests (see short guidelines)

    • If I added new functionality, I added tests covering it.
    • If I fixed a bug, I added a regression test to prevent the bug from silently reappearing again.
  • Documentation

    • I checked whether I should update the docs and did so if necessary:
    • I updated changelog files of all affected packages released to Hackage if my changes are externally visible.

Stylistic guide (mandatory)

Edited by Sandeep.C.R

Merge request reports