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

0 Members and 1 Guest are viewing this topic.

Offline Binder News

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 785
  • Rating: +46/-3
  • Zombie of Tomorrow
    • View Profile
Re: Tokens
« Reply #75 on: October 31, 2010, 10:27:23 pm »
Hmmm... I might just work on that. My main goal is to get the Axe to z80 first. I will start a new topic for this tomorrow, as it is getting to be a discussion of its own.
Spoiler For userbars:







Hacker-in-training!   Z80 Assembly Programmer     Axe Programmer
C++ H4X0R             Java Coder                           I <3 Python!

Perdidisti ludum     Cerebrum non habes

"We are humans first, no matter what."
"Fame is a vapor, popularity an accident, and riches take wings. Only one thing endures, and that is character."
Spoiler For Test Results:





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 #76 on: October 31, 2010, 11:12:53 pm »
There was a BASIC to ASM translator on Ticalc years ago but it produced broken code. Such stuff would be really hard to achieve. However, with what came out from the TI community in the past two years, I do not think it is impossible to write a decent BASIC to ASM translator. I am fairly certain something that produces relatively good speed could be done. However, the produced code might be larger than Axe.  If you want to do it, then good luck!

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Tokens
« Reply #77 on: October 31, 2010, 11:20:54 pm »
Axe was designed to be compiled into ASM. Not TI-BASIC. Converting that to ASM would involve a lot of messy floating-point calculations and stuff like that, unless you used TI's own routines, but if you did that, it would run at essentially the same speed, so there'd be no point to convert it in the first place. It's possible, though.
The point of converting to ASM would be to remove the overhead of the interpreter, which for a high level language like TI-BASIC could be very significant, I imagine. If you compile beforehand, you remove the interpreter and the program invariably runs faster.
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline merthsoft

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 241
  • Rating: +63/-1
    • View Profile
Re: Tokens
« Reply #78 on: November 01, 2010, 02:31:50 pm »
Whoa, ok, I clearly need to check this more often...

If there is any token you want to change, you can modify the XML file. For the "<<" you have two choices, you can either type "<\<" in to the program (which is annoying, I need to work on the loading so that it'll break stuff up in the case of ambiguities like this), or you can change the XML.
Code: [Select]
<Token byte="$EB" string="<<" /> Could be change to:
Code: [Select]
<Token byte="$EB" string="<|" /> This is actually how it is with the newer version. I'm also waiting for Quigibo to get me a simplified list of all the Axe commands and what their function name should be, so that I can get an Axe.xml file so this can work better with Axe.

As for other special characters, the goal is to be able to type everything on a standard US keyboard. I don't want to require a picker, though I will probably have one because it's pretty easy to forget what things are what. So, not equals is != and store is ->. That way you can just type, and not have to be slowed down by needing a chooser.

I hope that addressed the questions that hadn't been answered. If there was something I missed, please ask again :)
« Last Edit: November 01, 2010, 04:29:49 pm by merthsoft »
Shaun

Offline Binder News

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 785
  • Rating: +46/-3
  • Zombie of Tomorrow
    • View Profile
Re: Tokens
« Reply #79 on: November 01, 2010, 09:09:50 pm »
I spent about 3 hours yesterday on figuring out the file format of the 8xp files. I THINK I can read from them, but I won't have much more time till this weekend.
Spoiler For userbars:







Hacker-in-training!   Z80 Assembly Programmer     Axe Programmer
C++ H4X0R             Java Coder                           I <3 Python!

Perdidisti ludum     Cerebrum non habes

"We are humans first, no matter what."
"Fame is a vapor, popularity an accident, and riches take wings. Only one thing endures, and that is character."
Spoiler For Test Results:





Offline merthsoft

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 241
  • Rating: +63/-1
    • View Profile
Re: Tokens
« Reply #80 on: November 02, 2010, 09:13:10 am »
There's plenty of literature out there about the file formats already, there's no need to figure it out on your own. http://www.ticalc.org/archives/files/fileinfo/247/24750.html this is where I got all my information (and asking some other people on IRC). I host that document on my website as well, http://myserverathome.com/linkguide/
Shaun

Offline JustCause

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 810
  • Rating: +115/-5
    • View Profile
Re: Tokens
« Reply #81 on: November 02, 2010, 10:01:04 am »
This is cool. Keep up the good work!
See you, space cowboy...

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 #82 on: November 02, 2010, 02:53:26 pm »
Sorry if this is off-topic, but do you happen to know Runer112, Merthsoft? I swear some screenshots he posted before were hosted on Myserverathome, which appears to be your domain name (unless your site is really linkguide :P)

Back on-topic, I wonder if you plan to add something that detects all variables that were called, used, stored to or deleted in the code including pictures, strings and the like? There's a french incarnation of SourceCoder that did that and it seemed like a cool feature.

Offline merthsoft

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 241
  • Rating: +63/-1
    • View Profile
Re: Tokens
« Reply #83 on: November 02, 2010, 03:03:11 pm »
Sorry if this is off-topic, but do you happen to know Runer112, Merthsoft? I swear some screenshots he posted before were hosted on Myserverathome, which appears to be your domain name (unless your site is really linkguide :P)
I do not! Though there are some screen shots of Tokens and some other projects I'm working on hosted there.

Quote
Back on-topic, I wonder if you plan to add something that detects all variables that were called, used, stored to or deleted in the code including pictures, strings and the like? There's a french incarnation of SourceCoder that did that and it seemed like a cool feature.
That is something that's planned, though a little later. The release plan at this point is to polish up the image editor, get all the DCS GUI items done (though not polished), and that will be v.5 which will be released on ticalc and other sites officially. I will then work on project support, a string editor, a matrix editor, and a map designer. The project support will include tracking vars and such. Once that's done that will be the official v1.0 release.
« Last Edit: November 02, 2010, 03:04:26 pm by merthsoft »
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 #84 on: November 02, 2010, 03:05:04 pm »
Ah ok, maybe I got confused with a different URL. I swear he posted some of his own stuff from there, tho.

And I see. Can't wait for release :)

Offline Runer112

  • Moderator
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: Tokens
« Reply #85 on: November 02, 2010, 04:32:19 pm »
merthsoft, do you think you could add an option to pretty-ify text? I went through the whole xml file and added lots of token alternates using non-keyboard characters that look much nicer and more visually realistic to the original tokens. Using more realistic tokens (such as Σx² instead of [Sigmax^2]) makes programs much easier to read. If I swapped the alternate strings with the main strings, or if you added some sort of "Pretty" alternate string form to the xml, could you add some sort of feature that would convert all tokens into their "Pretty" versions? Perhaps even as you type?



Ah ok, maybe I got confused with a different URL. I swear he posted some of his own stuff from there, tho.

And I see. Can't wait for release :)

Nope, never posted there. :P
« Last Edit: November 02, 2010, 04:35:09 pm by Runer112 »

Offline merthsoft

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 241
  • Rating: +63/-1
    • View Profile
Re: Tokens
« Reply #86 on: November 02, 2010, 04:38:29 pm »
You're not the first person to mention that, actually. There's obvious going to be some level of re-learning that needs to be done in order to use this correctly, and the idea is that you should be able to enter everything in on the keyboard. I can think of a few ways to do this so that it's not terribly tedious. I'll think about how to implement it some more, and see if I come with anything I like. In the meantime, if you could upload your changes of the .xml file, that would be awesome!
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 #87 on: November 02, 2010, 04:40:35 pm »
I like Runer112 idea. On forums I often see people getting confused at TI-BASIC code containing sqrt() and they ask where to find that function because it's not in the CATALOG. Finally they discover that it's the online way to type the square root function.

Offline Runer112

  • Moderator
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: Tokens
« Reply #88 on: November 02, 2010, 04:43:58 pm »
You're not the first person to mention that, actually. There's obvious going to be some level of re-learning that needs to be done in order to use this correctly, and the idea is that you should be able to enter everything in on the keyboard. I can think of a few ways to do this so that it's not terribly tedious. I'll think about how to implement it some more, and see if I come with anything I like. In the meantime, if you could upload your changes of the .xml file, that would be awesome!

I'm just making some slight changes to it, I added the Axe Parser token alternates but forgot to specify that that's what they actually were, so I'm adding comments to signify Axe tokens.

EDIT: And following the idea of "Pretty" tags, do you think it would be possible to make something like an "Axe" tag? That way if you're editing an Axe source file, the tokens can default to the Axe token equivalences.
« Last Edit: November 02, 2010, 04:46:07 pm by Runer112 »

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 #89 on: November 02, 2010, 04:44:27 pm »
Maybe a panel on the side that displays the tokens like they're displayed on the calculator, updated every time the user edits the edit panel?