SmileBASIC to TI-BASIC
Root / Talk About Programs / [.]
MinxrodCreated:
Hi all!
Just kind of announcing that I am attempting to make a program that takes SmileBASIC code and converts it to TI-BASIC.
Currently it works on... Print, and things like GCLS, CLS, etc. :D
Still figuring out how to best do ones with more complex syntax, but I think it will search for the commas and take the data and use the 'data' in different places or something...
Any suggestions or comments?
Oh, and also possibly convert backwards, from TI-BASIC to SmileBASIC. ;)
I don't want to make an interpreter for TI, I'll just use my actual calculator.
I know TI isn't that powerful, but I want to try anyways, since I really like TI-BASIC and SmileBASIC ;)
Plus some spthings would run O.K, mostly simple graphical things probably, but it's worth a shot to me
Thanks for the input!
Also BUGs. Currently my thing is very buggy and limited :)
Cool! Do the drawing commands take into account the current window settings like the calculator? Have you implemented window settings yet?
I'm decently acquainted with TI-BASIC (even used it on a test once, hehe.) Hopefully this doesn't get thrown out like the trend seems to be in this community.
Drawing commands like line will have to be modified for the calculator settings. I think I might just make the window settings like Xmax of 400 and Ymax of 240, that way I could 'scale' the graphics from the 3DS. Ti stuff like line( and circle( need window settings (much to my dismay in some circumstances) but Pxl-On works fine no matter what. Not sure how to implement this yet - maybe add a default window settings to the start or something.
Oh, and I use TI basic for a lot in math - I write equation solvers and such, like for properties of logarithms, I wrote a solver for some equations like a=b(c)^x.
I'm not sure what people think this is anymore...
To clarify what I am trying to do:
- Make a program that converts programs in SmileBASIC to programs in TI-BASIC.
- Isn't crashing ALL the time
- Support for GCLS, CLS, PRINT, FOR - TO, WHILE [partly]
- Watch the program convert it
- Sucky inefficient code (YAY!)
That sounds cool. Can I have the public key?
Can you upload it yet?
Anything more complex than "Hello World", or MAYBE a text adventure, would be impossibleNo smilebasic programs will work in TI-BASIC because it it much slower, and has less features.That's not really true. They will be slower, but if speed isn't an issue, it will work fine. Also, I plan on 'reversing' the concept as well, from TI to SB.
Multiplayer. Motion Sensors. 3D. GRPs. XSCREEN. TOUCH. STICK/STICKEX. BGM. What do you plan to do for all of these and any other features that I failed to think of?Magic