Talk:Numberlist
yeah remember that crappy interpreter i wrote last year? im about to fix it for real now. --Dtp09 (talk) 23:19, 26 September 2022 (UTC)
something with the interpreter
the most probable execution loop i found was this:
- remember pointer's value
- check if it's 3rd cycle, execute it's command and clear if so
- add to cycle
- move pointer to remembered value
this works with the addition program. however it will fail to output in the cat program. what i'm sure is supposed to happen is, the last even value of the odd-even-even is read, it moves to a different number and replaces what it is at now, because this works perfectly as described with the addition. but i think there is a mistake with the cat program, as what it looks like is the last of the odd-odd-odd cycle, which happens to be input, should output itself instead of what it points to. and you also stated "" what could logically make it work is
basically, i think your cat program is wrong. also since "the only way to end a program is by making the pointer point to a 0", should i assume that pointing out of bounds will loop around? or should it end there? because i dont know what to assume other than the second one.
that's about it. --Dtp09 (talk) 02:55, 29 September 2022 (UTC)