[TM-197] Change parser to make braces optional for embedded single instruction sequences
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
Stylistic guide (mandatory)
- [
✅ ] My commits comply with the following policy. - [
✅ ] My code complies with the style guide.
Edited by Sandeep.C.R