Gidsss / UwUIDE

A compiler made to be cute uwu >~<
6 stars 0 forks source link

Type check array subscripting using defined dimension during declaration #272

Closed am-cid closed 5 months ago

am-cid commented 5 months ago
  1. all arrays can accept empty arrays ({})
a-chan[1]~
b-chan[0]~
c-chan[]~
a-chan[] = {1,2,3}~
b-chan[2] = {{1,2,3}, {4,5,6}}~
c-chan[3] = {
              {
                  {1,2},{3,4}
              },
              {
                  {5,6},{7,8}
              },
              {
                  {9},{0}
              }
            }~
am-cid commented 5 months ago

merged #275, closing this