Author Topic: TokenIDE - TI-BASIC IDE  (Read 74164 times)

0 Members and 1 Guest are viewing this topic.

Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: Tokens
« Reply #180 on: December 19, 2010, 07:34:42 pm »
Also, I illegally use your XML files as tokens databse since the .inc file is confusing :P
You probably shouldn't (admit to) steal(ing) someone's intellectual property... I don't appreciate you using the file without permission for anything outside of TokenIDE.

I use it for checking tokens only. Don't worry, no commercial activity here. Also, it's not for any special program!

scout, i recommend you tread carefully right now.
School: East Central High School
 
Axe: 1.0.0
TI-84 +SE  ||| OS: 2.53 MP (patched) ||| Version: "M"
TI-Nspire    |||  Lent out, and never returned
____________________________________________________________

Offline merthsoft

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 241
  • Rating: +63/-1
    • View Profile
Re: Tokens
« Reply #181 on: December 19, 2010, 07:35:09 pm »
Well in that case, it's ok. As long as it's not getting release elsewhere or used in something that's released I'm ok with it.
Ultimately, I don't want something I worked hard on getting used in any rival software.
« Last Edit: December 19, 2010, 07:35:49 pm by merthsoft »
Shaun

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Tokens
« Reply #182 on: December 19, 2010, 07:37:24 pm »
Well in that case, it's ok. As long as it's not getting release elsewhere or used in something that's released I'm ok with it.
Ultimately, I don't want something I worked hard on getting used in any rival software.

No merth, because:
1. I'd never upload it;
2. I shall not make a rival software;
3. I see the work you had organizing it and understand you do not want it stolen.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Tokens
« Reply #183 on: December 19, 2010, 10:27:01 pm »
Yeah it's best to ask permission before using something and releasing it with your program.
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Tokens
« Reply #184 on: December 20, 2010, 08:08:28 am »
Yeah it's best to ask permission before using something and releasing it with your program.

Yes, shaun/merth/merthsoft got it wrong :S But it's OK :D

I wouldn't be fine if someone was using my stuff :/

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Tokens
« Reply #185 on: December 20, 2010, 01:52:24 pm »
Yeah same here, unless I allowed them to do so, in which case I prefer having some credits (and maybe a link to the site). Else it's frustrating when you spend so much time on something.
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline merthsoft

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 241
  • Rating: +63/-1
    • View Profile
Re: Tokens
« Reply #186 on: December 21, 2010, 07:12:41 pm »
Yes, shaun/merth/merthsoft...
You need only refer to me by one moniker. My chosen one on forums being merth or merthsoft ;)

Today I have an update! I've added preprocessor directives (kind of). You can #define something, and #undefine it. The syntax is:
Code: [Select]
#define word-to-replace replacement-wordand it works similar to C, just a little less functional. Basically, it'll replace all instances of word-to-replace with replacement-word, no matter where they occur in the text. This means if you have #define Map [A], it'll replace DrawTileMap with DrawTile[A], which will not give you the expected results. Also, as per the names, it only does word-by-word replacement, so you cannot #define word some series of words you want to replace. If that seems like something it ought to be able to do, I can add it (I think I probably will, that way you can do Boolean expressions). Here's a before shot:

As you can see, comments and directives get removed from the byte-pane, using instead a blank line. I've also changed the comment-starting-thing to be "//" instead of "#", opting to use "#" as a directive starter. These will be customizable.
And here's the "compiled" program:

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Tokens
« Reply #187 on: December 21, 2010, 07:14:52 pm »
I didn't really understand the define thing :S

However, nice to see you're working on this. Is there a Ctrl+F, I mean a Find/Substitute option already? I'd love to see one!

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Tokens
« Reply #188 on: December 21, 2010, 07:57:01 pm »
#define! That is really useful :o Can't wait for more updates.

EDIT: It's updated on the site, right?
« Last Edit: December 21, 2010, 07:58:33 pm by Deep Thought »




Offline merthsoft

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 241
  • Rating: +63/-1
    • View Profile
Re: Tokens
« Reply #189 on: December 21, 2010, 08:02:39 pm »
EDIT: It's updated on the site, right?
No.
Shaun

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Tokens
« Reply #190 on: December 21, 2010, 10:25:40 pm »
Yeah I am confused at define too ???.  Sorry. Nice to see new updates, though.
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline merthsoft

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 241
  • Rating: +63/-1
    • View Profile
Re: Tokens
« Reply #191 on: December 21, 2010, 11:57:29 pm »
Yeah I am confused at define too ???.  Sorry. Nice to see new updates, though.
It's basically just aliasing a variable. So you can make anything be any value. If you use the matrix [A] to be your map matrix, you can #define MAP [A], and everywhere you would use [A], you can now use MAP. This can help make it more readable. As in the example image, the FV variable is used as the key variable, so you can alias it. You can do it with constants, too. Let's say your map width and height are 30. You can "#define map_width 30" and "#define map_height 30", and use map_width and map_height wherever you would use the constant 30 for those variable. Now, if you want to change the map_width to 45, you can just change the #define, and it'll effectively change it everywhere else in the program.
Shaun

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Tokens
« Reply #192 on: December 22, 2010, 03:00:11 am »
Ooh I see now. Should indeed make the code more readable and people who like to code for the computer might also remain interested at TI-BASIC and Axe for longer with that, since on the computer they're used to naming their variables how they want. Nice job Merth!
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Tokens
« Reply #193 on: December 22, 2010, 06:03:39 am »
I reread the first text about #define and read the second one too. Hum... I can see a lot of use for that in Axe :)

Offline merthsoft

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 241
  • Rating: +63/-1
    • View Profile
Re: Tokens
« Reply #194 on: December 25, 2010, 01:15:59 pm »
I've done some more with preprocessor stuff. There's now if(n)def/else/end:


You can see that it tokenizes a different line depending on what's defined and which one you use. You can embed them, as well: