jmeaster30 / ocean

A C-like programming language (get it like sea-like like an ocean lol)
GNU General Public License v3.0
0 stars 0 forks source link

Provide syntax for declaring arrays/layouts in hydro #43

Closed jmeaster30 closed 10 months ago

jmeaster30 commented 1 year ago

There is no way to declare an array (or even allocate an array which wasn't implemented yet) in hydro pl.

Use this syntax for declaring arrays

[1 2 3 4 5]

It would be nice to be able to declare a layout as well

Use this syntax for declaring layouts

{
    x 1234
    y 4321
}
jmeaster30 commented 10 months ago

I think the work being done with #73 is going to obsolete this