sim-c
sim-c copied to clipboard
A dynamically typed high-level front end for C
**Describe the bug** When an array initializer list has both function call and constant value of the same type as the return type of function the function throws an error...
Closes #{Issue Number} **Implementation details** **Test Case 1** **simC Code** **C Code (If generated)** **Error message (If any)** NOTE:- You can add more test cases if you want Number of...
``` //If a metal cube of side 3m is melted to make small balls, find the number of balls formed if each ball has a radius of 1.5cm MAIN var...
**Describe the bug** When a function is redefined, then instead of throwing error, it compiles successfully. But the type of parameters of first remains not_known, while the redefinition gets the...
**Describe the bug** In the current implementation if a function is called with parameters of different types then the compiled C version of the function has the type from the...
Pointer to a pointer implementation is incorrect: MAIN var a = 15 var *ptr = &a var **ptr2 = &ptr END_MAIN The above simc code should be valid, but it...
**Describe the feature** This would be extension of #346, #354 and #344. Arrays are treat as variables and therefore, can be freely used as one. **To Reproduce** We are not...
**Describe the solution you'd like** The current implementation of var_statement function which is responsible for parsing variable and array declaration with or without assignment is too long and can be...
**Describe the solution you'd like** Two dictionaries called prec_to_type and type_to_prec have been created multiple times in the parser, these map an integer precedence to typename and typename to precedence...
**Is your feature request related to a problem? Please describe.** Extension of #27, the goal is implement if cascade statement when the command use no braces, as follows: **Should be...