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] Array initializer must detect too many commas

Chasmiccoder opened this issue · comments

Describe the bug
Array initializer should detect too many commas

To Reproduce
Simc Code:
var arr[] = {2,3,,,}

Should throw an error. Instead, we get the following C code:
int arr[] = {2,3,,,};