Author Topic: SourceCoder 2 Beta 2  (Read 5831 times)

0 Members and 1 Guest are viewing this topic.

Offline KermMartian

  • Editor
  • LV7 Elite (Next: 700)
  • *******
  • Posts: 500
  • Rating: +233/-20
    • View Profile
    • Cemetech
SourceCoder 2 Beta 2
« on: April 04, 2006, 10:09:00 am »
Over the past several months, I have been working on the second generation of the wildly popular SourceCoder, SourceCoder 2. For those unfamiliar with it, SourceCoder is an online webapp that can parse a wide variety of TI graphing calculator files into human-readable format. In other words, it generates source code in HTML, ASCII, phpBBcode, and IFBBCode from programs, lists, matrices; .gifs from pictures, and composite files from groups. SourceCoder 2 builds on many of the suggestions received after SourceCoder was featured on ticalc.org (http://www.ticalc.org/archives/news/articles/13/132/132993.html), especially requests to make it a full-featured online IDE for TI-BASIC programs. SourceCoder now does that and more. When you first go to SourceCoder 2, you should notice the cleaner, more useable and feature-rich interface at your fingertips. You can upload a file, choose whether to optimize it, or choose to highlight syntax. The syntax highlighter was a feature ported from optiBASIC, while the optimizations are all created by me from several TI-BASIC optimization guides around the internet. At the bottom of the page, guests will see a message asking them to log in, while members see a My Projects section. This essentially allows people to create, edit, view, save, and modify TI-BASIC projects online without ever touching a calculator. Best of all, SC2 now includes a recompiler that can generate valid .83p and .8xp files from ascii files generated by SourceCoder. Please feel free to test it out and help me find bugs. I'll be adding help files and tooltips throughout SC2 and gradually making the virtual TI-83+ next to the file edit block workable. At the moment some of the javascripting (ie the virtual TI related code) is FF-guaranteed only, so IE users may have to type out code by hand. Also have fun with the My Projects and Exporter features. At the moment, there is only a single known serious bug, where the %optimization of optimized programs may be incorrectly reported.

SourceCoder 2 Beta 2
user posted image http://www.cemetech.net/projects/basicelite/sourcecoder2.php



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
SourceCoder 2 Beta 2
« Reply #1 on: April 05, 2006, 01:09:00 am »
QuoteBegin-"BASIC Code"+<table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td><b>QUOTE</b> ("BASIC Code")</td></tr><tr><td id="QUOTE">QuoteEBegin:
:8,12?dim([A]
:Asm(prgmZDEL
:ClrDraw:RecallPic 1:StorePic 0:ClrDraw:2,0:Asm(prgmXLIB:DelVar Pic0
:19:Asm(prgmR
:4?X:Asm(prgmZPIC:StorePic 8:3?X:Asm(prgmZPIC:StorePic 7
:0getKey
:Repeat getKey
:
:For(Z,0,9
:real(20,8,0,0,96,62,0,0
:End
:End
:real(20,8,0,0,96,62,0,0,2
:For(Z,0,56,8:real(20,2,0,24,96,8,0,Z,3-(Z=56:End
:Asm(prgmINVE
:Text(26,26,"2nd: START
:Text(32,18,"ALPHA: CONTINUE
:Repeat Z=21 or Z=31:getKey?Z:End
:For(?,27,33,6:real(20,2,0,24,56,5,18,?,2+(?=27:End
:1?U
:29?dim(L<span style="font-size:7pt;line-height:100%">1</span>:94?A
:20?dim(L<span style="font-size:7pt;line-height:100%">3</span>
:Fill 0,L<span style="font-size:7pt;line-height:100%">3</span>
:?1?E:1?F:1?C:0?D
:1??:0?PV:0?S
:If Z=21 or L<span style="font-size:7pt;line-height:100%">1</span>(1)=0:Then:211?<b>N</b>
:5?B
:1?G
:0?H
:0?I
:0?M:99?L:
:0?J
:0?K
:prgmAC
:StorePic 9
:311?<b>N</b>:prgmAC
:StorePic 8
:411?<b>N</b>:prgmAC
:StorePic 7
:94?A:511?<b>N</b>:prgmAC
:StorePic 6
:For(Z,0,56,8:real(20,2,0,24,96,8,0,Z,3-(Z=56:End
:For(Z,8,56,8:real(20,2,0,24,96,8,0,Z,1:End
:"AHUD
:prgm?:Asm(prgmZDEL
:real(20,1,16,16,24,16,24,32,1
:For(Z,24,40,8:For(?,32,40,8:real(20,1,56,8,8,8,Z,?,1:End:End
:
:For(?,9,7,?1:For(Z,0,46,?5+?:For(X,0,1:real(20,?,0,Z+8,96,48-Z,0,8,1:real(20,?-1,0,8,96,Z+8,0,56-Z,X:End:End:End
:511?<b>N</b>
:4?A:Else:real(20,2,0,24,96,8,0,0,3
:L<span style="font-size:7pt;line-height:100%">1</span>(1?<b>N</b>:L<span style="font-size:7pt;line-height:100%">1</span>(2)?A:L<span style="font-size:7pt;line-height:100%">1</span>(3?B:L<span style="font-size:7pt;line-height:100%">1</span>(4?G:L<span style="font-size:7pt;line-height:100%">1</span>(5?H:L<span style="font-size:7pt;line-height:100%">1</span>(6?I:L<span style="font-size:7pt;line-height:100%">1</span>(7?M:L<span style="font-size:7pt;line-height:100%">1</span>(8?L:L<span style="font-size:7pt;line-height:100%">1</span>(9?J:L<span style="font-size:7pt;line-height:100%">1</span>(10?K
:For(Z,1,20:L<span style="font-size:7pt;line-height:100%">1</span>(9+Z?L<span style="font-size:7pt;line-height:100%">3</span>(Z:End
:
:
:"AHUD
:prgm?:Asm(prgmZDEL
:If M:real(20,2,0,24,8,8,56+8M,0,1
:End
:DelVar Pic6DelVar Pic7DelVar Pic8DelVar Pic9
:
:prgmAC:0?U
:
:For(Z,8A,8A-8,?1:For(?,0,1:real(20,2,8-8G,32H,8,8,8B-8,Z,?:End:End:0getKey?Z
:
:
:While 1
:real(20,2,8-8G,32H,8,8,8B-8,8A-8
:getKey?Z
:If Z=25 and 24<[A](A+1,B:3?E
:1-(E=0)-2(E>0?C:E-1?E
:If 24<[A](A-1,B:?1?E
:real(20,2,8-8G,32H,8,8,8B-8,8A-8,1
:If 24<[A](A+C,B:0?C:A+C?A
:If Z?25:(Z=26)-(Z=24?D
:If D:Then:D?G:not(H?H:End
:If 24<[A](A,B+D:0?D:B+D?B
:If L<1 or A?1 or A?8 or B?1 or B?12 or Z=22 or Z=21:prgmAB
:
:prgmZTEMP
:
:End
Generated by http://www.cemetech.net/projects/basicelite/sourcecoder.php,
« Last Edit: February 25, 2012, 12:33:58 am by DJ_O »

Offline Ranman

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1354
  • Rating: +83/-0
    • View Profile
SourceCoder 2 Beta 2
« Reply #2 on: April 05, 2006, 01:48:00 am »
This has got to be the coolest -- and most useful -- utility for TI BASIC programmers.

You ought to invite someone from TI to try it out!  
Ranman
Bringing Randy Glover's Jumpman to the TI-89 calculator. Download available at Ticalc.

Offline Spellshaper

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1690
  • Rating: +0/-0
  • This is me. Or maybe not.
    • View Profile
SourceCoder 2 Beta 2
« Reply #3 on: April 05, 2006, 05:36:00 am »
duuuude... O_Oshocked2.gif
I

Offline tifreak

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2708
  • Rating: +82/-3
  • My Kung Fu IS strong...
    • View Profile
    • TI-Freakware
SourceCoder 2 Beta 2
« Reply #4 on: April 05, 2006, 05:43:00 am »
lol, now if he can incorporate the rest of the calcs' tokens in there, you would be able to view the source for any BASIC game out there, to make porting easier. :)smile.gif
Projects: AOD Series: 75% | FFME: 80% | Pokemon: 18% | RPGSK: 60% | Star Trek: 70% | Star Trek 83+: 40% | TI-City: 5%

Offline Spellshaper

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1690
  • Rating: +0/-0
  • This is me. Or maybe not.
    • View Profile
SourceCoder 2 Beta 2
« Reply #5 on: April 05, 2006, 06:08:00 am »
And I

BCTurk

  • Guest
SourceCoder 2 Beta 2
« Reply #6 on: April 05, 2006, 02:32:00 pm »
Very nice....O_Oshocked2.gif