pat-laugh / websson-libraries

Libraries related to the WebSSON language
MIT License
0 stars 0 forks source link

Dictionary keys #48

Open pat-laugh opened 6 years ago

pat-laugh commented 6 years ago

Dictionary keys will be sticky line strings. This brings another concept: variants of sticky line string. The sticky line string for imports will be different than that for dictionary keys.

The sticky line string for dictionary keys is stopped by any kind of assignment character. This includes :, =, (, [, {, <, ", etc. (if I missed any).

(This could change. It could be that the dictionary sticky line string is the same as for import.)

pat-laugh commented 6 years ago

Dictionary keys won't be sticky line strings, but they'll be strings or integers. They can also be entities, if the entities are strings or integers.

The change could be summarized as keys changing from being names to being values restricted to strings and integers.

Perhaps the keys could be strings only; that will need to be evaluated.