Author Topic: [Project] Auto-Organize Program  (Read 10164 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: [Request]
« Reply #30 on: November 16, 2010, 04:50:29 pm »
leading spaces?
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: [Request]
« Reply #31 on: November 16, 2010, 04:51:59 pm »
Yeah, only spaces that come right after a newline.

That way, stuff like COMMAND(ARG, ARG) would be left the same.




Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: [Request]
« Reply #32 on: November 16, 2010, 04:52:59 pm »
still confused.  Arg,arg ?

edit: oh are you talking about lines that wrap around to a new line but are still the same line?
« Last Edit: November 16, 2010, 04:53:56 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
____________________________________________________________

ASHBAD_ALVIN

  • Guest
Re: [Request]
« Reply #33 on: November 16, 2010, 04:53:32 pm »
argument 1 and argument 2.  like text(x,y

Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: [Request]
« Reply #34 on: November 16, 2010, 04:55:07 pm »
why would those be affected?

i am throughly confused.
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: [Request]
« Reply #35 on: November 16, 2010, 04:55:15 pm »
I mean how some people like to add spaces for padding between arguments in a line. I'm suggesting an added check to see if the spaces are at the beginning of the line before removing them, which would take care of the string bug as well :)




ASHBAD_ALVIN

  • Guest
Re: [Request]
« Reply #36 on: November 16, 2010, 04:55:58 pm »
I never have heard of spaces between args, though I do think it's possible.

Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: [Request]
« Reply #37 on: November 16, 2010, 04:56:21 pm »
oh, ok, never thought about that ;)

quick question.  why would you have COMMAND(ARG,   ARG) ?
« Last Edit: November 16, 2010, 04:56:32 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
____________________________________________________________

ASHBAD_ALVIN

  • Guest
Re: [Request]
« Reply #38 on: November 16, 2010, 04:57:08 pm »
I don;t know, weird to me lol :P

I would never use that, as I try to make lines as short as possible.

Offline nemo

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1203
  • Rating: +95/-11
    • View Profile
Re: [Request]
« Reply #39 on: November 16, 2010, 04:58:13 pm »
i guess it's a programmer's choice.
regardless, the string bug could easily be handled with this pseudocode:

Code: [Select]
if read_byte == quotation_token
repeat read_byte == quotation_token
read_byte = next_byte
end
end

that way, it ignores everything within quotations.
« Last Edit: November 16, 2010, 04:58:48 pm by nemo »


Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: [Request]
« Reply #40 on: November 16, 2010, 04:58:19 pm »
my pc seems like it will shut down soon.  Just a warning.

Nemo: i am going to use deep thoughts code ;)
« Last Edit: November 16, 2010, 04:58:53 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
____________________________________________________________

SirCmpwn

  • Guest
Re: [Request]
« Reply #41 on: November 16, 2010, 04:58:41 pm »
So, I understand why you would leave this:
Code: [Select]
While 1
 If 1
.Note
 End
End
Like it is, but is this:
Code: [Select]
While 1
 If 1
.  Note
 End
End
A possibility?
Or perhaps this:
Code: [Select]
While 1
 If 1
..Note
 End
End
« Last Edit: November 16, 2010, 04:59:28 pm by SirCmpwn »

Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: [Request]
« Reply #42 on: November 16, 2010, 05:00:34 pm »
i suppose,  but why would you want that?


either way,  That would be under Options:  which i will add once i rip apart Builderboy's code for program menus.


my graphics card fan is about to shut off.

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
____________________________________________________________

SirCmpwn

  • Guest
Re: [Request]
« Reply #43 on: November 16, 2010, 05:01:22 pm »
It makes it easier to see where the comments lie, especially deep into methods.

Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: [Request]
« Reply #44 on: November 16, 2010, 05:02:37 pm »
oh ok,  for the future i suppose. 
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
____________________________________________________________