-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Labels
complexity 2: significantThis is non-trivial, but still not a major undertakingThis is non-trivial, but still not a major undertakingkind: feature: languageAdding a new language featureAdding a new language feature
Description
For example code like this:
:const _byte_class_table_data Array(U8)'val: [
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 // 00..0f
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 // 10..1f
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 // 20..2f
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 // 30..3f
...
]
could be written as:
:const _byte_class_table_data Array(U8)'val: [
0x00: 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
0x10: 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
0x20: 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
0x30: 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
...
]
Each item array element can be prefixed with the index in the array (e.g. 0x00), if none is given, the previous index is used and incremented by one. It's an error if indices are missing or are duplicate.
Metadata
Metadata
Assignees
Labels
complexity 2: significantThis is non-trivial, but still not a major undertakingThis is non-trivial, but still not a major undertakingkind: feature: languageAdding a new language featureAdding a new language feature