Skip to content

v0.1.3

Compare
Choose a tag to compare
@cdfmlr cdfmlr released this 07 Mar 07:55
· 47 commits to master since this release
4e54d8e

v0.1.3 supports no simplify

🙏 Thanks Sung-En Chiu.

#6: Let users choose simplify or not

The If and Loop in ast_node.py have methods called simplify to simplify the condition sentences that has one-line-body from

while xxx      <------
   |                 |
   ---yes-> loop body in one line
   |
   |no
   v

into a single node:

<loop body> while xxx

Previous versions (starting from v0.0.1) hardcoded this feature. And users has no choice to close it.

This PR makes simplify can be disabled by

  1. Flowchart.from_code(..., simplify=False) with Python, or
  2. --no-simplify with CLI.

#7 fix a #6(v0.1.2) bug: simplify works with nested if/func/loop