AZHenley / knox

A toy programming language written in Go that compiles to C.
MIT License
96 stars 7 forks source link

Emit correct code for strings #138

Closed AZHenley closed 5 years ago

AZHenley commented 5 years ago

Emit correct code for C strings.

Handle concatenation and reassignment. Look into cases of dynamic length strings.

AZHenley commented 5 years ago

Reassignment should work fine.

The only thing that won't work is changing the value at an index. It will need to create a copy of the string prior to changing the value.