1
Axe / Isn't the 'input' function rather useless?
« on: April 14, 2012, 07:51:49 am »
I don't know much about Axe Parser and TI-83/84s, but when I did something like:
and looked at the bytes it printed out, 1 byte tokens were encoded as 1 byte, and 2 byte tokens were encoded as 2 bytes, rather than both being 2.
If this *is indeed* the case, how are you supposed to know where one token ends and another starts if each token is a variable length?
Also, a semi-related question, given a pointer returned from input, how can I draw that string to the buffer?
Code: [Select]
input->A
for(I,0,length(A)-1)
{A+I}->B
Disp B->DEC,i
end
and looked at the bytes it printed out, 1 byte tokens were encoded as 1 byte, and 2 byte tokens were encoded as 2 bytes, rather than both being 2.
If this *is indeed* the case, how are you supposed to know where one token ends and another starts if each token is a variable length?
Also, a semi-related question, given a pointer returned from input, how can I draw that string to the buffer?