Skip to content

[#720] Allow code entry take single command

Dmitry requested to merge krendelhoff/#720-code-not-in-block-should-work into master

Description

Problem:

  • We assumed, that code entry must contain a sequence, but there also can be single instruction.
  • We assumed, that DIP (and other commands, taking code as argument) can take single instruction, but it must take a sequence.

Solution:

  • Make operations parser accept only sequence.
  • Make code entry parser accept sequence or single instruction.

Related issue(s)

Resolves #720 (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 Dmitry

Merge request reports