Brainduck
Brainduck copied to clipboard
Named/Tagged memory cells
Name and tag memory cells, as part of IDE and/or analysis.
Allow names to be specified in the DSL (#10), this can be done like this:
- [ ]
name 'fizz' from 0 to 7
(will name the current cell and offsets 1, 2, 3... 6, 7 as 'fizz') - [ ]
name 'fizz' each 2 until 8
(will name the current cell and offsets 2, 4, 6, 8 asfizz
)
These tags can then later cause other memory cells to notice that they have been affected in some way by cells with these tags.
Use both custom-tagged names, specified by the user, and automatic tagged fields. Tagging strategies can include:
- [x] Custom-tagged memory cells
- [x] Used as condition (in x different loops - i.e. count the different indexes in the source code where a
[
or]
character considered this field) - [x] User input (in x different places)
- [x] Printed field (in x different places)
- [ ] ? Countdown (increased only once, then used as a countdown)
- [ ] ? Temporary (used as a temporary multiplication helper for loops or other temporary stuff)
- [ ] Add the functionality to the IDE to select one-or-more code-index-tags and one-or-more "type" tags (loop-continue, loop-begin, loop-end...) to highlight memory cells with those tags. Possibly use different colors depending on the type-tag.
- [ ] Use line numbers + column numbers for auto-tags