Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG REPORT] Wrong Interpretation of ( ) parenthesis #190

Closed
DevLokCodes opened this issue Oct 4, 2020 · 3 comments · Fixed by #340
Closed

[BUG REPORT] Wrong Interpretation of ( ) parenthesis #190

DevLokCodes opened this issue Oct 4, 2020 · 3 comments · Fixed by #340
Assignees
Labels
bug Something isn't working difficult Difficult problem

Comments

@DevLokCodes
Copy link
Contributor

Describe the bug
Circular Parenthesis ( ) are not translated correctly for few examples,
During Translation either one of the closing bracket is lost or Runtime error occurs

To Reproduce
Steps to reproduce the behavior:

  1. Install simc as stated in documentation pip install git+https://github.com/cimplec/sim-c
  2. Translate the code given below

`MAIN
// User input
var AvgSix = 45
var SeventhNumber = 21

var SumOfSixNumbers = AvgSix * 6
var AverageOfSevenNumbers = ((SumOfSixNumbers + 21))/SeventhNumber // example [ending closing bracket is lost]
var abc = (SeventhNumber + SeventhNumber)/AvgSix                   // example [gives Runtime error]
var bcd = ((SeventhNumber))										   // example [ending closing bracket is lost]
print("Area of 7 numbers is {AverageOfSevenNumbers} ")

END_MAIN
`

Expected behavior
Images with Correct expected behavior has been added below

Screenshots
Eg 1:
image
image

Eg 2:
image
image

Eg 3:
image
image

there are few instances where the operator after the brackets are also lost

Desktop (please complete the following information):

  • OS: [Windows 10]
@DevLokCodes DevLokCodes added the bug Something isn't working label Oct 4, 2020
@frankhart2018
Copy link
Member

Thanks @DevLokCodes for reporting the bug. Please also link this to #66 too. You can comment on that something like:-

Bug reported - Wrong Interpretation of ( ) parenthesis - #190

@frankhart2018 frankhart2018 added difficult Difficult problem hacktoberfest Part of hacktoberfest labels Oct 4, 2020
@frankhart2018 frankhart2018 removed the hacktoberfest Part of hacktoberfest label Nov 1, 2020
@Math-O5
Copy link
Collaborator

Math-O5 commented Nov 21, 2020

@frankhart2018 Can you assign my team on this issue?@JNagasava @MarcusMedeiros99 and me (@Math-O5)

@frankhart2018
Copy link
Member

frankhart2018 commented Nov 21, 2020

Hey @Math-O5 sure. Now that hacktoberfest is over, the time is also not constrained to 7 days. It seems I can only assign it to you. But consider it assigned to all of you 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working difficult Difficult problem
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants