SyntaxBoom

Languages & Coding => BlitzMax (NG/Vanilla variants) => Topic started by: Baggey on Jul 06, 2025, 08:37 AM

Title: BlitzmaxBG
Post by: Baggey on Jul 06, 2025, 08:37 AM
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
Title: Re: BlitzmaxBG
Post by: Baggey on Jul 06, 2025, 08:49 AM
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)
Title: Re: BlitzmaxBG
Post by: Baggey on Jul 06, 2025, 10:52 AM
So i want to be able to type in C Directly now?
Title: Re: BlitzmaxBG
Post by: Baggey on Jul 08, 2025, 03:49 AM
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
Title: Re: BlitzmaxBG
Post by: Baggey on Jul 09, 2025, 04:49 PM
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
Title: Re: BlitzmaxBG
Post by: Dabzy on Jul 09, 2025, 07:11 PM
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
Title: Re: BlitzmaxBG
Post by: Baggey on Jul 12, 2025, 07:33 AM
Still working on my IDE. Think ive finally found a Bootstrap ???

Baggey
Title: Re: BlitzmaxBG
Post by: wadmixfm on Jul 30, 2025, 08:10 PM
Goto is coming back oooooooo heaven

Lee

Title: Re: BlitzmaxBG
Post by: wadmixfm on Jul 30, 2025, 08:12 PM
Or maybe use the keyword jump or jmp

 :P