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

0 Members and 1 Guest are viewing this topic.

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Tokens
« Reply #255 on: July 07, 2011, 12:14:49 pm »
Merth, was the slider updating bug fixed (because of Mono)? Thanks
Not sure what you mean.

TokenIDE ran very slow on Linux using Mono and you said it's because of the sliders updating and then someone at Cemetech suggested a way of fixing that. Did you?

Offline merthsoft

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 241
  • Rating: +63/-1
    • View Profile
Re: Tokens
« Reply #256 on: July 07, 2011, 12:19:27 pm »
It was running slowly because of the Tokens pane, not because of any sliders, and that has been fixed:
Ok, so I made an update that greatly increased performance of the live updating. It should now be able to tokenize it and display the tokens without any huge performance hit (if you get a big enough file you'll notice it a little bit, but nothing too big, I think).
It doesn't update until you stop typing, and does a relatively quick job of updating it. You can also turn the live updating off completely.
Shaun

Offline XVicarious

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 485
  • Rating: +45/-28
  • I F**king Love Twisty Puzzles
    • View Profile
    • XVicarious
Re: Tokens
« Reply #257 on: July 12, 2011, 03:09:04 pm »
Could you maybe eventually add the ability of hiding the tokenized window? I know you can just fold it up, but actually closing it would be nice as well.

Offline nemo

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1203
  • Rating: +95/-11
    • View Profile
Re: Tokens
« Reply #258 on: September 28, 2011, 11:38:47 pm »
I'm not sure what the status of this project is, but would it be possible to have an option to use a monospaced font like Courier?

Edit: nevermind, Tokens uses the monospaced font Consolas, which i didn't have on my computer.
« Last Edit: September 28, 2011, 11:50:43 pm by nemo »


Offline merthsoft

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 241
  • Rating: +63/-1
    • View Profile
Re: Tokens
« Reply #259 on: May 28, 2012, 02:37:29 pm »
Alright, I haven't posted here in forever. There's been progress. Syntax highlighting and token underlining and stuff. Here:

Right now the only color changing that's going on is strings and comments (and preprocessor directives), but you can add it through the XML file. You can control foreground color, background color, text style, how many characters long a token has to be to underline it (-1 for no underlining), and what color the underline is. Check out the xml file if you want to see how it's laid out. The readme will be updated, um, eventually.

Keep in mind that the tokens files changed (including the schema), so this is a breaking changed with your old tokens files. Just put the "Group" tags inside a <Groups></Groups> section and add a default style and it should work. There were also some ambiguous tokens in the Tokens.XML file and the AxeTokens.xml file, and it now crashes on ambiguous tokens (sorry!). Project stuff is disabled for now.

This does work under Mono, btw:


Download at the normal place:
http://merthsoft.com/Tokens.zip
« Last Edit: May 28, 2012, 03:44:10 pm by merthsoft »
Shaun

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: Tokens
« Reply #260 on: May 28, 2012, 02:39:48 pm »
Wow, pretty nice :D
Congratulations!
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline merthsoft

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 241
  • Rating: +63/-1
    • View Profile
Re: Tokens
« Reply #261 on: May 29, 2012, 11:40:00 pm »
Alright, there were some bugs in how it was handling alt tokens and preprocessor directives. These have mostly been addressed:

And just because I've been more rigorous about Mono support, here's it in Mono on Windows:


The font can be controlled in the styles section of the XML.
I removed the tokens pane since it underlines tokens now. I've also improved performance a bit as well as made it a bit smaller.

Download in the normal place:
http://merthsoft.com/Tokens.zip
Shaun

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Tokens
« Reply #262 on: May 29, 2012, 11:58:36 pm »
Great updates Merth. Glad you're still working on this. :)

By the way for the archived checkbox, I think you should make Tokens warn with an alert box that checking that box will cause your programs to not be compatible with every emulator and linking software, in case people wonder why they get so many reports about their game not running or sending.

Offline jsj795

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1105
  • Rating: +84/-3
    • View Profile
Re: Tokens
« Reply #263 on: May 30, 2012, 12:18:46 am »
oooh nice, update :)


Spoiler For funny life mathematics:
1. ROMANCE MATHEMATICS
Smart man + smart woman = romance
Smart man + dumb woman = affair
Dumb man + smart woman = marriage
Dumb man + dumb woman = pregnancy
2. OFFICE ARITHMETIC
Smart boss + smart employee = profit
Smart boss + dumb employee = production
Dumb boss + smart employee = promotion
Dumb boss + dumb employee = overtime
3. SHOPPING MATH
A man will pay $2 for a $1 item he needs.
A woman will pay $1 for a $2 item that she doesn't need.
4. GENERAL EQUATIONS & STATISTICS
A woman worries about the future until she gets a husband.
A man never worries about the future until he gets a wife.
A successful man is one who makes more money than his wife can spend.
A successful woman is one who can find such a man.
5. HAPPINESS
To be happy with a man, you must understand him a lot and love him a little.
To be happy with a woman, you must love her a lot and not try to understand her at all.
6. LONGEVITY
Married men live longer than single men do, but married men are a lot more willing to die.
7. PROPENSITY TO CHANGE
A woman marries a man expecting he will change, but he doesn't.
A man marries a woman expecting that she won't change, and she does.
8. DISCUSSION TECHNIQUE
A woman has the last word in any argument.
Anything a man says after that is the beginning of a new argument.

Girls = Time * Money (Girls are a combination of time and money)
Time = Money (Time is money)
Girls = Money squared (So, girls are money squared)
Money = sqrt(Evil) (Money is also the root of all evil)
Girls = sqrt(Evil) squared (So, girls are the root of all evil squared)
Girls = Evil (Thus, girls are evil)
*Girls=Evil credit goes to Compynerd255*

Offline merthsoft

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 241
  • Rating: +63/-1
    • View Profile
Re: Tokens
« Reply #264 on: June 01, 2012, 10:24:13 pm »
Great updates Merth. Glad you're still working on this. :)

By the way for the archived checkbox, I think you should make Tokens warn with an alert box that checking that box will cause your programs to not be compatible with every emulator and linking software, in case people wonder why they get so many reports about their game not running or sending.
Thanks Kevin! As for the archived checkbox, I'm not sure if I'll add that or not, but it seems like a good idea.

Meanwhile, I started working on a list/matrix editor:
Shaun

Offline jsj795

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1105
  • Rating: +84/-3
    • View Profile
Re: Tokens
« Reply #265 on: June 04, 2012, 05:46:36 am »
Great updates Merth. Glad you're still working on this. :)

By the way for the archived checkbox, I think you should make Tokens warn with an alert box that checking that box will cause your programs to not be compatible with every emulator and linking software, in case people wonder why they get so many reports about their game not running or sending.
Thanks Kevin! As for the archived checkbox, I'm not sure if I'll add that or not, but it seems like a good idea.

Meanwhile, I started working on a list/matrix editor:


The list/matrix editor is not yet in the newest version, right?

Also, with this version I can't distinguish between | and >.
Specifically, in a string, I want to put in '|' and '>=' but it gives me '|>' and '='.
Anyway I can fix this? I tried looking into XML file but i wasn't sure what I had to do.


Spoiler For funny life mathematics:
1. ROMANCE MATHEMATICS
Smart man + smart woman = romance
Smart man + dumb woman = affair
Dumb man + smart woman = marriage
Dumb man + dumb woman = pregnancy
2. OFFICE ARITHMETIC
Smart boss + smart employee = profit
Smart boss + dumb employee = production
Dumb boss + smart employee = promotion
Dumb boss + dumb employee = overtime
3. SHOPPING MATH
A man will pay $2 for a $1 item he needs.
A woman will pay $1 for a $2 item that she doesn't need.
4. GENERAL EQUATIONS & STATISTICS
A woman worries about the future until she gets a husband.
A man never worries about the future until he gets a wife.
A successful man is one who makes more money than his wife can spend.
A successful woman is one who can find such a man.
5. HAPPINESS
To be happy with a man, you must understand him a lot and love him a little.
To be happy with a woman, you must love her a lot and not try to understand her at all.
6. LONGEVITY
Married men live longer than single men do, but married men are a lot more willing to die.
7. PROPENSITY TO CHANGE
A woman marries a man expecting he will change, but he doesn't.
A man marries a woman expecting that she won't change, and she does.
8. DISCUSSION TECHNIQUE
A woman has the last word in any argument.
Anything a man says after that is the beginning of a new argument.

Girls = Time * Money (Girls are a combination of time and money)
Time = Money (Time is money)
Girls = Money squared (So, girls are money squared)
Money = sqrt(Evil) (Money is also the root of all evil)
Girls = sqrt(Evil) squared (So, girls are the root of all evil squared)
Girls = Evil (Thus, girls are evil)
*Girls=Evil credit goes to Compynerd255*

Offline blue_bear_94

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 801
  • Rating: +25/-35
  • Touhou Enthusiast / Former Troll / 68k Programmer
    • View Profile
Re: Tokens
« Reply #266 on: June 04, 2012, 09:36:22 am »
Great updates Merth. Glad you're still working on this. :)

By the way for the archived checkbox, I think you should make Tokens warn with an alert box that checking that box will cause your programs to not be compatible with every emulator and linking software, in case people wonder why they get so many reports about their game not running or sending.
Thanks Kevin! As for the archived checkbox, I'm not sure if I'll add that or not, but it seems like a good idea.

Meanwhile, I started working on a list/matrix editor:


The list/matrix editor is not yet in the newest version, right?

Also, with this version I can't distinguish between | and >.
Specifically, in a string, I want to put in '|' and '>=' but it gives me '|>' and '='.
Anyway I can fix this? I tried looking into XML file but i wasn't sure what I had to do.
Why we should use backslashes like |\>=\...
Due to dissatisfaction, I will be inactive on Omnimaga until further notice. (?? THP hasn't been much success and there's also the CE. I might possibly be here for a while.)
If you want to implore me to come back, or otherwise contact me, I can be found on GitHub (bluebear94), Twitter (@melranosF_), Reddit (/u/Fluffy8x), or e-mail (if you know my address). As a last resort, send me a PM on Cemetech (bluebear94) or join Touhou Prono (don't be fooled by the name). I've also enabled notifications for PMs on Omnimaga, but I don't advise using that since I might be banned.
Elvyna (Sunrise) 4 5%
TI-84+SE User (2.30 2.55 MP 2.43)
TI-89 Titanium User (3.10)
Casio Prizm User? (1.02)
Bag  東方ぷろの

Offline jsj795

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1105
  • Rating: +84/-3
    • View Profile
Re: Tokens
« Reply #267 on: June 04, 2012, 09:41:42 am »
but what if you want to put the backslashes in a string?


Spoiler For funny life mathematics:
1. ROMANCE MATHEMATICS
Smart man + smart woman = romance
Smart man + dumb woman = affair
Dumb man + smart woman = marriage
Dumb man + dumb woman = pregnancy
2. OFFICE ARITHMETIC
Smart boss + smart employee = profit
Smart boss + dumb employee = production
Dumb boss + smart employee = promotion
Dumb boss + dumb employee = overtime
3. SHOPPING MATH
A man will pay $2 for a $1 item he needs.
A woman will pay $1 for a $2 item that she doesn't need.
4. GENERAL EQUATIONS & STATISTICS
A woman worries about the future until she gets a husband.
A man never worries about the future until he gets a wife.
A successful man is one who makes more money than his wife can spend.
A successful woman is one who can find such a man.
5. HAPPINESS
To be happy with a man, you must understand him a lot and love him a little.
To be happy with a woman, you must love her a lot and not try to understand her at all.
6. LONGEVITY
Married men live longer than single men do, but married men are a lot more willing to die.
7. PROPENSITY TO CHANGE
A woman marries a man expecting he will change, but he doesn't.
A man marries a woman expecting that she won't change, and she does.
8. DISCUSSION TECHNIQUE
A woman has the last word in any argument.
Anything a man says after that is the beginning of a new argument.

Girls = Time * Money (Girls are a combination of time and money)
Time = Money (Time is money)
Girls = Money squared (So, girls are money squared)
Money = sqrt(Evil) (Money is also the root of all evil)
Girls = sqrt(Evil) squared (So, girls are the root of all evil squared)
Girls = Evil (Thus, girls are evil)
*Girls=Evil credit goes to Compynerd255*

Offline blue_bear_94

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 801
  • Rating: +25/-35
  • Touhou Enthusiast / Former Troll / 68k Programmer
    • View Profile
Re: Tokens
« Reply #268 on: June 04, 2012, 09:42:36 am »
Then you'd use two backslashes: \\
Due to dissatisfaction, I will be inactive on Omnimaga until further notice. (?? THP hasn't been much success and there's also the CE. I might possibly be here for a while.)
If you want to implore me to come back, or otherwise contact me, I can be found on GitHub (bluebear94), Twitter (@melranosF_), Reddit (/u/Fluffy8x), or e-mail (if you know my address). As a last resort, send me a PM on Cemetech (bluebear94) or join Touhou Prono (don't be fooled by the name). I've also enabled notifications for PMs on Omnimaga, but I don't advise using that since I might be banned.
Elvyna (Sunrise) 4 5%
TI-84+SE User (2.30 2.55 MP 2.43)
TI-89 Titanium User (3.10)
Casio Prizm User? (1.02)
Bag  東方ぷろの

Offline jsj795

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1105
  • Rating: +84/-3
    • View Profile
Re: Tokens
« Reply #269 on: June 04, 2012, 09:45:03 am »
hm. yeah but this new version didn't allow that. the old version did tho


Spoiler For funny life mathematics:
1. ROMANCE MATHEMATICS
Smart man + smart woman = romance
Smart man + dumb woman = affair
Dumb man + smart woman = marriage
Dumb man + dumb woman = pregnancy
2. OFFICE ARITHMETIC
Smart boss + smart employee = profit
Smart boss + dumb employee = production
Dumb boss + smart employee = promotion
Dumb boss + dumb employee = overtime
3. SHOPPING MATH
A man will pay $2 for a $1 item he needs.
A woman will pay $1 for a $2 item that she doesn't need.
4. GENERAL EQUATIONS & STATISTICS
A woman worries about the future until she gets a husband.
A man never worries about the future until he gets a wife.
A successful man is one who makes more money than his wife can spend.
A successful woman is one who can find such a man.
5. HAPPINESS
To be happy with a man, you must understand him a lot and love him a little.
To be happy with a woman, you must love her a lot and not try to understand her at all.
6. LONGEVITY
Married men live longer than single men do, but married men are a lot more willing to die.
7. PROPENSITY TO CHANGE
A woman marries a man expecting he will change, but he doesn't.
A man marries a woman expecting that she won't change, and she does.
8. DISCUSSION TECHNIQUE
A woman has the last word in any argument.
Anything a man says after that is the beginning of a new argument.

Girls = Time * Money (Girls are a combination of time and money)
Time = Money (Time is money)
Girls = Money squared (So, girls are money squared)
Money = sqrt(Evil) (Money is also the root of all evil)
Girls = sqrt(Evil) squared (So, girls are the root of all evil squared)
Girls = Evil (Thus, girls are evil)
*Girls=Evil credit goes to Compynerd255*