sim-c icon indicating copy to clipboard operation
sim-c copied to clipboard

[FEATURE] Extend array declaration to handle multi-D arrays.

Open frankhart2018 opened this issue 4 years ago • 4 comments

Describe the solution you'd like Current array declaration implementation handles only 1-D arrays, but when multi-D arrays are created it generates very weird code. Extend the array declaration implementation to support multi-dimensional arrays.

Warning Array declaration already done in #344

Declaration var <name_array>[<int | void>]

Examples: var name[2] = {1, 2} var name[] = {1, 2} var name[2]

frankhart2018 avatar Dec 10 '20 17:12 frankhart2018

I would like to work on this issue.

Dhruv-Rathi avatar Dec 11 '20 14:12 Dhruv-Rathi

@Dhruv-Rathi All yours!

Math-O5 avatar Dec 11 '20 15:12 Math-O5

I am actually new to git-hub so can you please help me understand the issue.

Dhruv-Rathi avatar Dec 11 '20 15:12 Dhruv-Rathi

@Dhruv-Rathi You already ready careful the README.md file? There some instruction there to follow first. Install simc, use it, try do some of question "Write simc code from the section issues". The issue properly is about add a feature to simc. The feature is let simc declare matrix, until now only arrays are allowed. If it is much, go search one question with tag easy first.

Math-O5 avatar Dec 11 '20 16:12 Math-O5