Skip to content

[TM-197] Change parser to make braces optional for embedded single instruction sequences

Sandeep.C.R requested to merge sras/tm197-fix-parser-for-DIP into master

Description

This changes the contract parser so that the embedded sequences (ones that are part of an instruction) no longer require enclosing braces if they contain only a single instruction. The inline sequences, (including the top level one) still require them.

Related issue(s)

https://issues.serokell.io/issue/TM-197

Fixes by making enclosing braces for embedded instructions optional.

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:

Stylistic guide (mandatory)

Edited by Sandeep.C.R

Merge request reports