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

Change String to an Array of Unsigned8 values #36

Closed jmeaster30 closed 10 months ago

jmeaster30 commented 1 year ago

Realized there is no need for strings specifically and we can just use Unsigned8s in an Array to get the same effect

jmeaster30 commented 1 year ago

Will now need some changes to the parser.

We don't currently support string and char variables but it would be nice to allow someone to type out a string and have it represent a u8 array. If it is a single byte then it represents a u8 instead.

jmeaster30 commented 1 year ago

Also we currently produce a string when we are pushing an identifier for indexing.

I think we should make an access instruction that has a built in identifier in it instead of relying on the index instruction. Splitting them up will probably make the code a little simpler too.

jmeaster30 commented 10 months ago

This has been complete. We got rid of strings a little bit ago