Author Topic: Variable scanner  (Read 9713 times)

0 Members and 1 Guest are viewing this topic.

Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: Variable scanner
« Reply #30 on: February 21, 2011, 09:59:21 am »
I tried that.  Something in my code is conflicting with it though :/

<s>Remember, I have to ignore...</s>  you know what, nvm.  I will just add a bunch of (If N=0) for now.
« Last Edit: February 21, 2011, 09:59:36 am by Happybobjr »
School: East Central High School
 
Axe: 1.0.0
TI-84 +SE  ||| OS: 2.53 MP (patched) ||| Version: "M"
TI-Nspire    |||  Lent out, and never returned
____________________________________________________________

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: Variable scanner
« Reply #31 on: February 21, 2011, 11:11:20 am »
!If N is a lot more optimized :)




Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: Variable scanner
« Reply #32 on: February 21, 2011, 03:08:21 pm »
WOW! I am stupid.

I had
{L+G}=3F
It shou;d have been
{L+G}=E3F

Little E
« Last Edit: February 21, 2011, 03:08:29 pm by Happybobjr »
School: East Central High School
 
Axe: 1.0.0
TI-84 +SE  ||| OS: 2.53 MP (patched) ||| Version: "M"
TI-Nspire    |||  Lent out, and never returned
____________________________________________________________

Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: Variable scanner
« Reply #33 on: February 21, 2011, 08:30:02 pm »
Ok here is version 0.6

Change log.
* Added support for multi-line comments.
* Added support for E
* Fixed something that I can't remember... :P
* Some speed and size optimizations.

Things for 1.0
* Fix Sub(
* Fix .Blab:new line isn't part of comment :/
School: East Central High School
 
Axe: 1.0.0
TI-84 +SE  ||| OS: 2.53 MP (patched) ||| Version: "M"
TI-Nspire    |||  Lent out, and never returned
____________________________________________________________

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: Variable scanner
« Reply #34 on: February 22, 2011, 03:06:36 am »
Bug report: in the newest version, the letters don't turn black/gray until a key is pressed, then the program quits instantly.
« Last Edit: February 22, 2011, 03:06:46 am by Darl181 »
Vy'o'us pleorsdti thl'e gjaemue

Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: Variable scanner
« Reply #35 on: February 22, 2011, 06:53:38 am »
That doesn't seem right??? 
I just tried it and it worked.
School: East Central High School
 
Axe: 1.0.0
TI-84 +SE  ||| OS: 2.53 MP (patched) ||| Version: "M"
TI-Nspire    |||  Lent out, and never returned
____________________________________________________________

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: Variable scanner
« Reply #36 on: February 23, 2011, 08:08:19 pm »
I'll give this a try with one of my old game like Axe Tunnel, even though it's ancient.

EDIT It seems to work fine for me. Could you add a feature showing how many times each var is used?
« Last Edit: February 23, 2011, 08:14:18 pm by DJ_O »

Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: Variable scanner
« Reply #37 on: February 23, 2011, 09:42:34 pm »
That would be easy.  I have rewritten how the variables and stuff is displayed.  Now it is easy for me to adjust ;)

What would the use of knowing the number of times a variable has been used?


Also:  when you say used, do you mean called and/or stored?
« Last Edit: February 23, 2011, 09:43:30 pm by Happybobjr »
School: East Central High School
 
Axe: 1.0.0
TI-84 +SE  ||| OS: 2.53 MP (patched) ||| Version: "M"
TI-Nspire    |||  Lent out, and never returned
____________________________________________________________

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: Variable scanner
« Reply #38 on: February 23, 2011, 09:47:10 pm »
When we know the number of time then we know how many to change if we ever decide to stop using that variable or we can detect possible variable conflicts. As for used it would be nice maybe to know when they're used and when they're stored. In fact it would be cool to know where in the code too, but when a variable is used 20 times it would be hard to read. X.x

Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: Variable scanner
« Reply #39 on: February 23, 2011, 10:06:53 pm »
Here is what I was thinking.

<u>|Var  |Used|Str'd|</u>
| A    | 4    | 1    |
| B    | 1    | 4    |
| C    | 0    | 1    |
| D    | 0    | 0    |
| E    | ...   | ...   |


This will have 2 or 3 columns.
School: East Central High School
 
Axe: 1.0.0
TI-84 +SE  ||| OS: 2.53 MP (patched) ||| Version: "M"
TI-Nspire    |||  Lent out, and never returned
____________________________________________________________

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: Variable scanner
« Reply #40 on: February 24, 2011, 09:51:53 am »
Here is what I was thinking.

<u>|Var  |Used|Str'd|</u>
| A    | 4    | 1    |
| B    | 1    | 4    |
| C    | 0    | 1    |
| D    | 0    | 0    |
| E    | ...   | ...   |


This will have 2 or 3 columns.


That would be great! Not sure the uses of that, but it would look awesome ;D




Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: Variable scanner
« Reply #41 on: February 24, 2011, 03:03:49 pm »
Ok, I'll upload when I get home.

I am using 3 columns with 9 variables per.
It works out perfectly :)

Edit:  fixed Sub(

Edit 2: Yes scout. (I am adding edit because I don't want to double post in a few min.)
Edit 3: Just making things look pretty now.
« Last Edit: February 24, 2011, 05:48:34 pm by Happybobjr »
School: East Central High School
 
Axe: 1.0.0
TI-84 +SE  ||| OS: 2.53 MP (patched) ||| Version: "M"
TI-Nspire    |||  Lent out, and never returned
____________________________________________________________

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Variable scanner
« Reply #42 on: February 24, 2011, 03:05:24 pm »
Ok, I'll upload when I get home.

I am using 3 columns with 9 variables per.
It works out perfectly :)

Edit:  fixed Sub(

Great, so it won't count variables inside multiline comments like this:

Code: [Select]
...
A this is not a variable
B
C
None of these is
...

Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: Variable scanner
« Reply #43 on: February 24, 2011, 09:04:28 pm »
Here is 1.0

Change Log
*Fixed Sub(
*Added support for multi-line comments.
*Put in full speed mode ;)
*Added the number of times the var was used/-> (stored)
*Rewrote display. A few hundreds of bytes saved (not relative to previous update)
*Made this change log :P


*better screeny plz?*
School: East Central High School
 
Axe: 1.0.0
TI-84 +SE  ||| OS: 2.53 MP (patched) ||| Version: "M"
TI-Nspire    |||  Lent out, and never returned
____________________________________________________________

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: Variable scanner
« Reply #44 on: February 24, 2011, 11:36:02 pm »
Here is 1.0

Change Log
*Fixed Sub(
*Added support for multi-line comments.
*Put in full speed mode ;)
*Added the number of times the var was used/-> (stored)
*Rewrote display. A few hundreds of bytes saved (not relative to previous update)
*Made this change log :P


*better screeny plz?*

By the way, you can get the store arrow by doing something like Text(X,Y,28►Char). I'd suggest changing that from -> and maybe putting the heading in each column, but otherwise it looks great!
« Last Edit: February 24, 2011, 11:36:27 pm by Deep Thought »