So, My version of BlitzmaxBG now has:-
Select range case. Here is the working code.
num = 2
Select num
Case 1..3
Print "Low"
Case 4..6
Print "Mid"
Default
Print "Out"
End Select
Building case range test
Compiling:case range test.bmx
Lexer: recognized .. as T_DOTDOT at position 9
Lexer: recognized .. as T_DOTDOT at position 9
flat assembler version 1.69.14 (1572863 kilobytes memory)
3 passes, 2870 bytes.
Linking:case range test.debug.exe
Executing:case range test.debug.exe
Low
Process complete
Its only taken about 5-6 years :-\
But got there in the end now im going to get rid of the back to front for eachin stuff.
Me thinks, im going to start modding the ide so it looks better a good dark theme. :P
Kind Regards Baggey
Now some more testing.
num=2
Select num
Case 1..3, 2..4
Print "Ambiguous?"
Case 5..6
Print "Upper"
Default
Print "Out"
End Select
Building case range test
Compiling:case range test.bmx
Lexer: recognized .. as T_DOTDOT at position 9
Lexer: recognized .. as T_DOTDOT at position 15
Lexer: recognized .. as T_DOTDOT at position 9
flat assembler version 1.69.14 (1572863 kilobytes memory)
3 passes, 2898 bytes.
Linking:case range test.debug.exe
Executing:case range test.debug.exe
Ambiguous?
Process complete
NON Sequential jump
num=2
Select num
Case 1..2, 5..6
Print "Grouped range"
Case 3..4
Print "Mid skip"
Default
Print "Out"
End Select
Building case range test
Compiling:case range test.bmx
Lexer: recognized .. as T_DOTDOT at position 9
Lexer: recognized .. as T_DOTDOT at position 15
Lexer: recognized .. as T_DOTDOT at position 9
flat assembler version 1.69.14 (1572863 kilobytes memory)
3 passes, 2912 bytes.
Linking:case range test.debug.exe
Executing:case range test.debug.exe
Grouped range
Process complete
Yeap, Definitely working a treat! 8)
So i want to be able to type in C Directly now?
Quote from: Baggey on Jul 06, 2025, 10:52 AMSo i want to be able to type in C Directly now?
With out all the needless squiggly brackets, semicolons, and ==, ||
I really feel like it got added and added to and the DEV's are just kicking the can down the road :P
I do like the way FOR is setup in C.
So more of a hybrid between C and Max. Hmm Cmax.
So, BlitzmaxBG, was baggey for short but maybe that'l turn into BlitzmaxBC
Also, working on a nice Darktheme and icon changes.
im also adding microsecs() so it works as a normal keyword straight out of the box as well ;)
Baggey
Goto is coming back :D
Dark IDE is coming along nicely!
Strange how things turn around in 5 or 6 years. I wanted things a bit different! Well, i Suppose you just have to learn how to do it, and do it yourself ::)
Speed will be no slower but, it's Definatley going to be a little quicker. 8)
Baggey
Quote from: Baggey on Jul 09, 2025, 04:49 PMStrange how things turn around in 5 or 6 years. I wanted things a bit different! Well, i Suppose you just have to learn how to do it, and do it yourself
And when your really really really stuck, like, really really lemon squeezy stuck, give up and post a question, you usually figure it out within a minute! :D
Dabz
Still working on my IDE. Think ive finally found a Bootstrap ???
Baggey
Goto is coming back oooooooo heaven
Lee
Or maybe use the keyword jump or jmp
:P