cimplec / sim-c

A dynamically typed high-level front end for C

Home Page:https://cimplec.github.io/docs/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG REPORT] Incorrect Usage of Check Braces Flag

Chasmiccoder opened this issue · comments

Describe the bug
The function of lines 74,75 is unclear, as the lines are ambiguous.
Basically, we check if variable found_right_brace is True. And then we are assigning the same variable a Truth value.

To Reproduce
Go to conditional_parser.py
Go to line 74,75.

Screenshots
image

@Chasmiccoder I think this "if" is not used, the while should just loop until reach "right_brace". You wanna do the PR? This also happens in others parses.

@Chasmiccoder I think this "if" is not used, the while should just loop until reach "right_brace". You wanna do the PR? This also happens in others parses.

Yea sure! @Math-O5
So I just need to remove those two lines, right?
(And remove similar redundancies)