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

Let the user declare extra types #19

Closed nsensfel closed 3 years ago

nsensfel commented 3 years ago

Following https://github.com/nsensfel/tonkadur/issues/17, the user can declare extra computations and extra instructions. It is still not possible to use Fate to define constructs containing instructions or executing computations in a particular order. However, there shouldn't be any difficulty in adding a way to declare extra data types: (declare_extra_type {String}): declares a non-comparable extra type. (declare_comparable_extra_type {String}): declares a comparable extra type. Since they are neither compatible nor comparable with the native Fate types, those types would mostly be used by extra computations and extra instructions, but the ability to store and pass them around is still very useful.

nsensfel commented 3 years ago

This is being done in the parser_rework branch.

nsensfel commented 3 years ago

Done in 050e329f2a2e2367c2e4f1965190b0f6a5addf29.