kyleoneill / chimerascript

0 stars 0 forks source link

Support for LIST operations #4

Closed kyleoneill closed 11 months ago

kyleoneill commented 11 months ago

Support should be added for LIST commands. Operations should include

This will look like

- var my_list = LIST NEW [1, 2, true, "abc"]
- var removed_value = LIST REMOVE (my_list) 3
- var second_removed_value = LIST REMOVE (my_list) true
- ASSERT LENGTH (my_list) 2

- var some_value = LITERAL 5
- var another_value = LITERAL 10
- var second_list = LIST NEW [1, 2, (some_value), (another_value), "hello world"]