nsensfel / tonkadur

Narrative scripting/programming tool. Write stories in your favorite editor using a feature-rich language, compile them into a very small and simple language to easily integrate them into your game.
https://tonkadur.of.tacticians.online
Apache License 2.0
3 stars 0 forks source link

Add 'list' and 'set' creation shortcuts. #23

Closed nsensfel closed 3 years ago

nsensfel commented 3 years ago
(list 0 1 2 3 4)

Should be a shortcut for

(add 0 1 2 3 4 (default (list int)))
(set 0 1 2 3 4)

Should be a shortcut for

(add 0 1 2 3 4 (default (set int)))

This requires the instruction set to become set!.

nsensfel commented 3 years ago

Done in https://github.com/nsensfel/tonkadur/commit/034153205de05ef2a4facf7aded9912ce8dfb6b5.