Omnimaga

Calculator Community => TI Calculators => General Calculator Help => Topic started by: boot2490 on September 22, 2011, 11:44:58 am

Title: Source Coder Help??
Post by: boot2490 on September 22, 2011, 11:44:58 am
When I use source coder, I want to actually type "getKey" instead of using the calc buttons to grab the token. Does it convert it back to tokens? So that typing "I" and then "f" converts to the If token upon export?
Title: Re: Source Coder Help??
Post by: Yeong on September 22, 2011, 11:49:33 am
yes.
Title: Re: Source Coder Help??
Post by: boot2490 on September 22, 2011, 06:55:44 pm
Awwww YEahhh...
That makes life SOOOO much easier.
Title: Re: Source Coder Help??
Post by: NanoWar on September 23, 2011, 12:12:28 pm
When using "If" inside a string as in "If I were you..." it shouldnt use the token since it reads differently in other languages :] .
Title: Re: Source Coder Help??
Post by: tifreak on September 23, 2011, 01:11:01 pm
You have to make sure you have the syntaxes correct, I'm not 100% certain what kind of leeway Kerm gave SC, like if getkey will get tokenized to getKey or not. Tokens is specific to that, you can't typo a token or it will just turn it into text.

Just something to look out for :)
Title: Re: Source Coder Help??
Post by: Yeong on September 23, 2011, 06:16:10 pm
I believe that capitalization is important.
Title: Re: Source Coder Help??
Post by: Deep Toaster on September 25, 2011, 12:21:37 am
When using "If" inside a string as in "If I were you..." it shouldnt use the token since it reads differently in other languages :] .
It does. It's a good idea IMHO because it saves space and gets displayed the same way, anyway.
I believe that capitalization is important.
Yes, and so are spaces and parentheses -- "If" is two tokens (three bytes), while "If " is one.
Title: Re: Source Coder Help??
Post by: DJ Omnimaga on September 25, 2011, 01:28:47 am
THe problem though is if the person's calc is not set to English language and a token he used as text in a string to save space is different in other languages. You gotta be careful about that, although I guess you can always tell the person to disable any language before playing.
Title: Re: Source Coder Help??
Post by: Deep Toaster on September 25, 2011, 10:29:23 am
THe problem though is if the person's calc is not set to English language and a token he used as text in a string to save space is different in other languages. You gotta be careful about that, although I guess you can always tell the person to disable any language before playing.
Oh I see, good point.