Skip to content

Commit

Permalink
add: array type
Browse files Browse the repository at this point in the history
  • Loading branch information
arturo32 authored Dec 2, 2024
1 parent 3b2aa4a commit 4572f9f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion memoryCell.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,12 @@ export default {
if (this.isInHeap) {
return this.variable[1][2][2];
} else {
return this.variable[1][2];
if(this.variable[1][0] === "C_ARRAY") {
return this.variable[1][2] + '[]';
} else {
return this.variable[1][2];
}

}
},
content() {
Expand Down

0 comments on commit 4572f9f

Please sign in to comment.