CEMETECH
Leading The Way To The Future
Login [Register]
Username:
Password:
Autologin:

Don't have an account? Register now to chat, post, use our tools, and much more.
Latest Headlines
Online Users
There are 110 users online: 8 members, 80 guests and 22 bots.
Members: chickendude, critor, Piguy-3.14, Roshiras, samuelcoleman, Tari.
Bots: VoilaBot (1), Magpie Crawler (3), Yahoo! Slurp (1), Googlebot (16), MSN/Bing (1).
RSS & Social Media
SAX
You must log in to view the SAX chat widget
    » Goto page 1, 2, 3 ... 30, 31, 32  Next
» View previous topic :: View next topic  
Author Message
merthsoft


File Archiver


Joined: 09 May 2010
Posts: 2735

Posted: 10 Aug 2010 10:11:30 pm    Post subject: "Tokens" BASIC IDE Project (Pre-2013)

I've had an idea for some PC-side calculator related things, so I've been messing around with some ideas. What I have right now is a "detokenizer". That is, it takes in an .8xp file and converts it into readable text. I took the tokens file from Kerm, and modified it a bit for my use. It's not 100% there yet (formatting-wise), but you should be able to load just about any file and read it. I've been designing this to be as extendable as possible, so it'll fit nicely into anything else I make. The Tokens.dll drives most of it. I'll be working on various parts of this on and off. Here's a screen shot:

And here is the program:
http://merthsoft.calcg.org/Detokenize.zip
This form was whipped together in a few minutes, so I realize it's not the greatest, it was just an easy way to show off the detokenizer.


Edit:

You can find the TokenIDE program here as an alternate download: http://tifreakware.net/forum/viewtopic.php?f=47&t=123
_________________
Shaun


Last edited by merthsoft on 19 Jan 2013 03:57:41 pm; edited 4 times in total
Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 55736
Location: Earth, Sol, Milky Way

Posted: 10 Aug 2010 10:32:41 pm    Post subject:

Looks like you're on the way to something great there, Merth. Smile Good luck with it, and I'm glad the tokens file I gave you is coming in handy.
_________________


Back to top
Svakk


Power User


Joined: 29 Mar 2009
Posts: 418
Location: Mos Eisley

Posted: 10 Aug 2010 10:37:41 pm    Post subject:

Merth, let me know how this actually turns out. I'm planning sometime in the near future to write a program that will allow the user to write programs using AXE or BASIC in a Visual Studios-Type program. This way the user can execute the program, visualize it using a built in emulator, compile it to .8xp, and open .8xp files to be editited. I would be very interested to see how this works out, since it might make my job a little easier...
_________________
Back to top
merthsoft


File Archiver


Joined: 09 May 2010
Posts: 2735

Posted: 10 Aug 2010 10:53:27 pm    Post subject:

This is actually a small step in that direction. This is part of what will be, hopefully, a pretty full-featured TI-BASIC IDE.
_________________
Shaun
Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 55736
Location: Earth, Sol, Milky Way

Posted: 10 Aug 2010 11:36:49 pm    Post subject:

Svakk wrote:
Merth, let me know how this actually turns out. I'm planning sometime in the near future to write a program that will allow the user to write programs using AXE or BASIC in a Visual Studios-Type program. This way the user can execute the program, visualize it using a built in emulator, compile it to .8xp, and open .8xp files to be editited. I would be very interested to see how this works out, since it might make my job a little easier...
Sounds like an offline SourceCoder plus an emulator. Razz There have been so many SourceCoder-replacement projects over the five years it's been around that I'm surprised none of them seem to have gained particular popularity.
_________________


Back to top
quigibo


New Member


Joined: 24 Jan 2009
Posts: 89
Location: Los Angeles

Posted: 11 Aug 2010 03:49:49 am    Post subject:

How do you plan to convert some symbols that don't really have real unicode equivalents? For instance, the xth root sign and the radian symbol, or do those actually have equivalents?
Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 55736
Location: Earth, Sol, Milky Way

Posted: 11 Aug 2010 08:34:58 am    Post subject:

quigibo wrote:
How do you plan to convert some symbols that don't really have real unicode equivalents? For instance, the xth root sign and the radian symbol, or do those actually have equivalents?
As far as I have been able to find, there's no such Unicode symbols for those and several other TI characters.
_________________


Back to top
qazz42


Vampire Killer


Joined: 07 Apr 2010
Posts: 4177

Posted: 11 Aug 2010 08:42:44 am    Post subject:

Yep, Kerm is right, I cant find any too x.x
_________________


Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 55736
Location: Earth, Sol, Milky Way

Posted: 11 Aug 2010 09:00:19 am    Post subject:

qazz42 wrote:
Yep, Kerm is right, I cant find any too x.x
It's unfortunate considering how many weird and random symbols are in Unicode. :/ You'd think they'd have room for some math symbols.
_________________


Back to top
merthsoft


File Archiver


Joined: 09 May 2010
Posts: 2735

Posted: 11 Aug 2010 05:59:42 pm    Post subject:

quigibo wrote:
How do you plan to convert some symbols that don't really have real unicode equivalents? For instance, the xth root sign and the radian symbol, or do those actually have equivalents?
Anything that can't be easily typed in with a standard US keyboard will have a different string associated with it. There will be sqrt(, xrt(, !=, <=, >=, etc.
_________________
Shaun
Back to top
TheStorm


NOU!


Joined: 26 Mar 2007
Posts: 2375

Posted: 11 Aug 2010 06:04:16 pm    Post subject:

merthsoft wrote:
quigibo wrote:
How do you plan to convert some symbols that don't really have real unicode equivalents? For instance, the xth root sign and the radian symbol, or do those actually have equivalents?
Anything that can't be easily typed in with a standard US keyboard will have a different string associated with it. There will be sqrt(, xrt(, !=, <=, >=, etc.
I think this is the best way to handle it, using funky unicode just leads to issues.
_________________

"Always code as if the person who will maintain your code is a maniac serial killer that knows where you live" -Unknown

"If you've done something right no one will know that you've done anything at all" -Futurama

"Have a nice day, or not, the choice is yours." Tom Steiner

<Michael_V> or create a Borg collective and call it The 83+
<Michael_V> Lower your slide cases and prepare to be silent linked. Memory clears are futile.
Back to top
elfprince13


OVER NINE THOUSAND!


Joined: 23 May 2005
Posts: 10225
Location: A galaxy far far away......

Posted: 11 Aug 2010 06:05:49 pm    Post subject:

It would be nice to see this done oncalc to complement the tokenizer.
_________________
StickFigure Graphic Productions || VSHI: Vermont Sustainable Heating Initiative


Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 55736
Location: Earth, Sol, Milky Way

Posted: 11 Aug 2010 06:09:21 pm    Post subject:

elfprince13 wrote:
It would be nice to see this done oncalc to complement the tokenizer.
Actually, detokenizing oncalc is beyond trivial; it's just a loop of _get_tok_strng and _isa2bytetok. Very very easy.
_________________


Back to top
merthsoft


File Archiver


Joined: 09 May 2010
Posts: 2735

Posted: 11 Aug 2010 06:18:39 pm    Post subject:

elfprince13 wrote:
It would be nice to see this done oncalc to complement the tokenizer.
I'm not sure how that would be too useful, either. Especially since this is geared toward on-comp dev.
_________________
Shaun
Back to top
elfprince13


OVER NINE THOUSAND!


Joined: 23 May 2005
Posts: 10225
Location: A galaxy far far away......

Posted: 11 Aug 2010 06:42:54 pm    Post subject:

merthsoft wrote:
elfprince13 wrote:
It would be nice to see this done oncalc to complement the tokenizer.
I'm not sure how that would be too useful, either. Especially since this is geared toward on-comp dev.


editing with DDE7 Wink


KermM: So I figured Wink
_________________
StickFigure Graphic Productions || VSHI: Vermont Sustainable Heating Initiative


Back to top
merthsoft


File Archiver


Joined: 09 May 2010
Posts: 2735

Posted: 11 Aug 2010 11:25:14 pm    Post subject:

Round two: Tokenzier.
I have added the ability to tokenize text. For now the test program is pretty simple, you open a program, and it gives you four text boxes, which are (in order): raw hex, detokenized text, tokenized hex, detokenized text of the tokenized hex. This way you can see that the hex and the text match up.

So here you can see that they match up. Here's a download link if you want to test it out:
http://merthsoft.calcg.org/Tokens.zip
Tomorrow I will be working on taking text that you actually edit yourself and turning it into a program that you can actually put on your calculator.

There are sometimes some inconsistencies, but they tend to be due to ambiguities in the Tokens.xml file, which you're able to edit to suit your needs.

Please let me know, if you test it, whether you find any errors or not. This will, hopefully in the future, be integrating with SourceCoder so that you can post from the program. I'm in talks with Kerm about that.

Also, Kerm, could you change the name of this topic to "Tokens" for me?
_________________
Shaun
Back to top
qazz42


Vampire Killer


Joined: 07 Apr 2010
Posts: 4177

Posted: 12 Aug 2010 07:28:20 am    Post subject:

Wow, this looks cool, we now have a TI-BASIC editor for out computer kinda
_________________


Back to top
SirCmpwn


Coding Knight


Joined: 06 Feb 2010
Posts: 1477
Location: Colorado Springs

Posted: 12 Aug 2010 07:51:47 am    Post subject:

We already have a couple of TI Basic editors out there, like TI Coder, but it will be quite nice to see something new for once.
Back to top
merthsoft


File Archiver


Joined: 09 May 2010
Posts: 2735

Posted: 12 Aug 2010 12:05:27 pm    Post subject:

SirCmpwn wrote:
We already have a couple of TI Basic editors out there, like TI Coder, but it will be quite nice to see something new for once.
I don't want to get ahead of myself, but to at least have the .dll there that others can use in their projects should help out. My expectations, however, will have macros for lib stuff, and variable naming, i.e. you'll type in PlayerX and it'll translate to the variable F or whatever.
_________________
Shaun
Back to top
SirCmpwn


Coding Knight


Joined: 06 Feb 2010
Posts: 1477
Location: Colorado Springs

Posted: 12 Aug 2010 12:07:34 pm    Post subject:

I actually have a pretty extensive .NET library for mucking about with calculator files. It can create, read, and sign .8xp, .8xu, .8xk and .8xi. It can also convert an 8xi to a bitmap, which is nice Smile
I should publish it at some point, it's d@mn useful.
Back to top
Display posts from previous:   
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
    » Goto page 1, 2, 3 ... 30, 31, 32  Next
» View previous topic :: View next topic  
Page 1 of 32 » All times are GMT - 5 Hours

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© Copyright 2000-2013 Cemetech & Kerm Martian :: Page Execution Time: 0.043201 seconds.