Not sure where to post, Request for BASIC Stamp Editor Upgrade
DiablodeMorte
Posts: 238
Hello all!
I was working in the editor and I suddenly realized something. The editor does not have "local" parsing. I've never experienced with local parsing but what I think I mean, or atleast, what I'm trying to ask for is this:
Let's say I'm coding some "brilliant" basic stamp code.
Sarcasm Aside, as I'm coding I need to debug some stuff, doesn't matter what, but I need too.
So I put all the debug's in, they work perfectly, everybody's happy. Yay!
So, here comes the time where I want to debug another part of code. Only problem is, I no longer want to see the debugs for section 1. Another problem: I don't want to have to comment out all the debugs in section 1. So, what solvs my problem? LOCAL PARSING!
Here's some sample test code:
Here's what I imagine the above code doing in the "NEW" Basic Stamp Editor. The editor, when it is told to compile the code would first parse all the #'s.
anything in a # would be considered as commented out but at the same time would also be considered as code.
So, in the above example. Only "I'm in section 1" would appear. When the compiler encountered the first # it would read the if statement, It's true so it would evaluate everything between the #if and #endif
When it encountered the second #if it would be false so it would not evaluate the code so the debug would not be compiled.
Anybody understand? or am I just preaching to the choir?
I was working in the editor and I suddenly realized something. The editor does not have "local" parsing. I've never experienced with local parsing but what I think I mean, or atleast, what I'm trying to ask for is this:
Let's say I'm coding some "brilliant" basic stamp code.
Sarcasm Aside, as I'm coding I need to debug some stuff, doesn't matter what, but I need too.
So I put all the debug's in, they work perfectly, everybody's happy. Yay!
So, here comes the time where I want to debug another part of code. Only problem is, I no longer want to see the debugs for section 1. Another problem: I don't want to have to comment out all the debugs in section 1. So, what solvs my problem? LOCAL PARSING!
Here's some sample test code:
#debugSect1 = 1 'I want section 1 to show debugs #debugSect2 = 0 'I want section 2 to NOT show debugs 'Section 1: Section1: #if debugSect1 then debug "I'm in section 1" #endif 'Section2 Section2: #if debugSect2 then debug "I'm in section 2" #endif
Here's what I imagine the above code doing in the "NEW" Basic Stamp Editor. The editor, when it is told to compile the code would first parse all the #'s.
anything in a # would be considered as commented out but at the same time would also be considered as code.
So, in the above example. Only "I'm in section 1" would appear. When the compiler encountered the first # it would read the if statement, It's true so it would evaluate everything between the #if and #endif
When it encountered the second #if it would be false so it would not evaluate the code so the debug would not be compiled.
Anybody understand? or am I just preaching to the choir?
Comments
-Phil