**Update v954b **-- Well, I've spent all day sitting here and staring over lines of code that just finally melted into goo on the computer screen, but I've finally gotten our _MATH function to play nice with everything else inside CONST.

You can now add more than 1 variable to a line while using _math. You can mix and match _math and _RGB if you really want to. Things like: CONST x = _math(cos(30)), y = 14, z = _RGB0(255,0,0), Steve = "Awesome" will all work on the same line now and generate the proper values for our constants.

As far as I know, I've got all the little bugs out and everything performs as it should. At this point, there are NO BUGS in it. If something doesn't work 100%, then that's just a personality quirk I added so you guys know I luv you....

This has been a MESS to sort though, and it's amazing how much shifting a result just 1 byte left or right will screw things up when parsing input. And our generation method isn't the prettiest in the world either behind the scenes.

To type: CONST a =1, x = _math(cos(30)) , the parser runs through this nice little process:

`*******************`

const

*******************

const

*******************

const a

*******************

const a

*******************

const a

*******************

const a =

*******************

const a =

*******************

const a = 1

*******************

const a = 1,

*******************

const a = 1,

*******************

const a = 1, x

*******************

const a = 1, x

*******************

const a = 1, x =

*******************

const a = 1, x =

*******************

const a = 1, x = _

*******************

const a = 1, x = _m

*******************

const a = 1, x = _ma

*******************

const a = 1, x = _mat

*******************

const a = 1, x = 0onst a = 1, x = 0nst a = 1, x = 0st a = 1, x = 0t a = 1, x = 0 a = 1, x = 0a = 1, x = 0 = 1, x = 0 = 1, x = 0= 1, x = 0 1, x = 01, x = 0, x = 0 x = 0x = 0 = 0= 0 0 0math

*******************

const a = 1, x = 0onst a = 1, x = 0nst a = 1, x = 0st a = 1, x = 0t a = 1, x = 0 a = 1, x = 0a = 1, x = 0 = 1, x = 0 = 1, x = 0= 1, x = 0 1, x = 01, x = 0, x = 0 x = 0x = 0 = 0= 0 0 0math

*******************

const a = 1, x = 0onst a = 1, x = 0nst a = 1, x = 0st a = 1, x = 0t a = 1, x = 0 a = 1, x = 0a = 1, x = 0 = 1, x = 0 = 1, x = 0= 1, x = 0 1, x = 01, x = 0, x = 0 x = 0x = 0 = 0= 0 0 0math9

*******************

const a = 1, x = 0onst a = 1, x = 0nst a = 1, x = 0st a = 1, x = 0t a = 1, x = 0 a = 1, x = 0a = 1, x = 0 = 1, x = 0 = 1, x = 0= 1, x = 0 1, x = 01, x = 0, x = 0 x = 0x = 0 = 0= 0 0 0math9

*******************

const a = 1, x = 0onst a = 1, x = 0nst a = 1, x = 0st a = 1, x = 0t a = 1, x = 0 a = 1, x = 0a = 1, x = 0 = 1, x = 0 = 1, x = 0= 1, x = 0 1, x = 01, x = 0, x = 0 x = 0x = 0 = 0= 0 0 0math9c

*******************

const a = 1, x = 0onst a = 1, x = 0nst a = 1, x = 0st a = 1, x = 0t a = 1, x = 0 a = 1, x = 0a = 1, x = 0 = 1, x = 0 = 1, x = 0= 1, x = 0 1, x = 01, x = 0, x = 0 x = 0x = 0 = 0= 0 0 0math9c

*******************

const a = 1, x = 0onst a = 1, x = 0nst a = 1, x = 0st a = 1, x = 0t a = 1, x = 0 a = 1, x = 0a = 1, x = 0 = 1, x = 0 = 1, x = 0= 1, x = 0 1, x = 01, x = 0, x = 0 x = 0x = 0 = 0= 0 0 0math9co

*******************

const a = 1, x = 0onst a = 1, x = 0nst a = 1, x = 0st a = 1, x = 0t a = 1, x = 0 a = 1, x = 0a = 1, x = 0 = 1, x = 0 = 1, x = 0= 1, x = 0 1, x = 01, x = 0, x = 0 x = 0x = 0 = 0= 0 0 0math9co

*******************

const a = 1, x = 0onst a = 1, x = 0nst a = 1, x = 0st a = 1, x = 0t a = 1, x = 0 a = 1, x = 0a = 1, x = 0 = 1, x = 0 = 1, x = 0= 1, x = 0 1, x = 01, x = 0, x = 0 x = 0x = 0 = 0= 0 0 0math9cos

*******************

const a = 1, x = 0onst a = 1, x = 0nst a = 1, x = 0st a = 1, x = 0t a = 1, x = 0 a = 1, x = 0a = 1, x = 0 = 1, x = 0 = 1, x = 0= 1, x = 0 1, x = 01, x = 0, x = 0 x = 0x = 0 = 0= 0 0 0math9cos

*******************

const a = 1, x = 0onst a = 1, x = 0nst a = 1, x = 0st a = 1, x = 0t a = 1, x = 0 a = 1, x = 0a = 1, x = 0 = 1, x = 0 = 1, x = 0= 1, x = 0 1, x = 01, x = 0, x = 0 x = 0x = 0 = 0= 0 0 0math9cos(

*******************

const a = 1, x = 0onst a = 1, x = 0nst a = 1, x = 0st a = 1, x = 0t a = 1, x = 0 a = 1, x = 0a = 1, x = 0 = 1, x = 0 = 1, x = 0= 1, x = 0 1, x = 01, x = 0, x = 0 x = 0x = 0 = 0= 0 0 0math9cos(

*******************

const a = 1, x = 0onst a = 1, x = 0nst a = 1, x = 0st a = 1, x = 0t a = 1, x = 0 a = 1, x = 0a = 1, x = 0 = 1, x = 0 = 1, x = 0= 1, x = 0 1, x = 01, x = 0, x = 0 x = 0x = 0 = 0= 0 0 0math9cos(3

*******************

const a = 1, x = 0onst a = 1, x = 0nst a = 1, x = 0st a = 1, x = 0t a = 1, x = 0 a = 1, x = 0a = 1, x = 0 = 1, x = 0 = 1, x = 0= 1, x = 0 1, x = 01, x = 0, x = 0 x = 0x = 0 = 0= 0 0 0math9cos(3

*******************

const a = 1, x = 0onst a = 1, x = 0nst a = 1, x = 0st a = 1, x = 0t a = 1, x = 0 a = 1, x = 0a = 1, x = 0 = 1, x = 0 = 1, x = 0= 1, x = 0 1, x = 01, x = 0, x = 0 x = 0x = 0 = 0= 0 0 0math9cos(30

*******************

const a = 1, x = 0onst a = 1, x = 0nst a = 1, x = 0st a = 1, x = 0t a = 1, x = 0 a = 1, x = 0a = 1, x = 0 = 1, x = 0 = 1, x = 0= 1, x = 0 1, x = 01, x = 0, x = 0 x = 0x = 0 = 0= 0 0 0math9cos(30

*******************

const a = 1, x = 0onst a = 1, x = 0nst a = 1, x = 0st a = 1, x = 0t a = 1, x = 0 a = 1, x = 0a = 1, x = 0 = 1, x = 0 = 1, x = 0= 1, x = 0 1, x = 01, x = 0, x = 0 x = 0x = 0 = 0= 0 0 0math9cos(300

*******************

const a = 1, x = 0onst a = 1, x = 0nst a = 1, x = 0st a = 1, x = 0t a = 1, x = 0 a = 1, x = 0a = 1, x = 0 = 1, x = 0 = 1, x = 0= 1, x = 0 1, x = 01, x = 0, x = 0 x = 0x = 0 = 0= 0 0 0math9cos(300

*******************

const a = 1, x = 0onst a = 1, x = 0nst a = 1, x = 0st a = 1, x = 0t a = 1, x = 0 a = 1, x = 0a = 1, x = 0 = 1, x = 0 = 1, x = 0= 1, x = 0 1, x = 01, x = 0, x = 0 x = 0x = 0 = 0= 0 0 0math9cos(30

*******************

const a = 1, x = 0onst a = 1, x = 0nst a = 1, x = 0st a = 1, x = 0t a = 1, x = 0 a = 1, x = 0a = 1, x = 0 = 1, x = 0 = 1, x = 0= 1, x = 0 1, x = 01, x = 0, x = 0 x = 0x = 0 = 0= 0 0 0math9cos(30

*******************

const a = 1, x = 0onst a = 1, x = 0nst a = 1, x = 0st a = 1, x = 0t a = 1, x = 0 a = 1, x = 0a = 1, x = 0 = 1, x = 0 = 1, x = 0= 1, x = 0 1, x = 01, x = 0, x = 0 x = 0x = 0 = 0= 0 0 0math9cos(3

*******************

const a = 1, x = 0onst a = 1, x = 0nst a = 1, x = 0st a = 1, x = 0t a = 1, x = 0 a = 1, x = 0a = 1, x = 0 = 1, x = 0 = 1, x = 0= 1, x = 0 1, x = 01, x = 0, x = 0 x = 0x = 0 = 0= 0 0 0math9cos(3

*******************

const a = 1, x = 0onst a = 1, x = 0nst a = 1, x = 0st a = 1, x = 0t a = 1, x = 0 a = 1, x = 0a = 1, x = 0 = 1, x = 0 = 1, x = 0= 1, x = 0 1, x = 01, x = 0, x = 0 x = 0x = 0 = 0= 0 0 0math9cos(

*******************

const a = 1, x = 0onst a = 1, x = 0nst a = 1, x = 0st a = 1, x = 0t a = 1, x = 0 a = 1, x = 0a = 1, x = 0 = 1, x = 0 = 1, x = 0= 1, x = 0 1, x = 01, x = 0, x = 0 x = 0x = 0 = 0= 0 0 0math9cos(

*******************

const a = 1, x = 0onst a = 1, x = 0nst a = 1, x = 0st a = 1, x = 0t a = 1, x = 0 a = 1, x = 0a = 1, x = 0 = 1, x = 0 = 1, x = 0= 1, x = 0 1, x = 01, x = 0, x = 0 x = 0x = 0 = 0= 0 0 0math9cos

*******************

const a = 1, x = 0onst a = 1, x = 0nst a = 1, x = 0st a = 1, x = 0t a = 1, x = 0 a = 1, x = 0a = 1, x = 0 = 1, x = 0 = 1, x = 0= 1, x = 0 1, x = 01, x = 0, x = 0 x = 0x = 0 = 0= 0 0 0math9cos

*******************

const a = 1, x = 0onst a = 1, x = 0nst a = 1, x = 0st a = 1, x = 0t a = 1, x = 0 a = 1, x = 0a = 1, x = 0 = 1, x = 0 = 1, x = 0= 1, x = 0 1, x = 01, x = 0, x = 0 x = 0x = 0 = 0= 0 0 0math9co

*******************

const a = 1, x = 0onst a = 1, x = 0nst a = 1, x = 0st a = 1, x = 0t a = 1, x = 0 a = 1, x = 0a = 1, x = 0 = 1, x = 0 = 1, x = 0= 1, x = 0 1, x = 01, x = 0, x = 0 x = 0x = 0 = 0= 0 0 0math9co

*******************

const a = 1, x = 0onst a = 1, x = 0nst a = 1, x = 0st a = 1, x = 0t a = 1, x = 0 a = 1, x = 0a = 1, x = 0 = 1, x = 0 = 1, x = 0= 1, x = 0 1, x = 01, x = 0, x = 0 x = 0x = 0 = 0= 0 0 0math9c

*******************

const a = 1, x = 0onst a = 1, x = 0nst a = 1, x = 0st a = 1, x = 0t a = 1, x = 0 a = 1, x = 0a = 1, x = 0 = 1, x = 0 = 1, x = 0= 1, x = 0 1, x = 01, x = 0, x = 0 x = 0x = 0 = 0= 0 0 0math9c

*******************

const a = 1, x = 0onst a = 1, x = 0nst a = 1, x = 0st a = 1, x = 0t a = 1, x = 0 a = 1, x = 0a = 1, x = 0 = 1, x = 0 = 1, x = 0= 1, x = 0 1, x = 01, x = 0, x = 0 x = 0x = 0 = 0= 0 0 0math9

*******************

const a = 1, x = 0onst a = 1, x = 0nst a = 1, x = 0st a = 1, x = 0t a = 1, x = 0 a = 1, x = 0a = 1, x = 0 = 1, x = 0 = 1, x = 0= 1, x = 0 1, x = 01, x = 0, x = 0 x = 0x = 0 = 0= 0 0 0math9

*******************

const a = 1, x = 0onst a = 1, x = 0nst a = 1, x = 0st a = 1, x = 0t a = 1, x = 0 a = 1, x = 0a = 1, x = 0 = 1, x = 0 = 1, x = 0= 1, x = 0 1, x = 01, x = 0, x = 0 x = 0x = 0 = 0= 0 0 0math

*******************

const a = 1, x = 0onst a = 1, x = 0nst a = 1, x = 0st a = 1, x = 0t a = 1, x = 0 a = 1, x = 0a = 1, x = 0 = 1, x = 0 = 1, x = 0= 1, x = 0 1, x = 01, x = 0, x = 0 x = 0x = 0 = 0= 0 0 0math

*******************

const a = 1, x = 0onst a = 1, x = 0nst a = 1, x = 0st a = 1, x = 0t a = 1, x = 0 a = 1, x = 0a = 1, x = 0 = 1, x = 0 = 1, x = 0= 1, x = 0 1, x = 01, x = 0, x = 0 x = 0x = 0 = 0= 0 0 0math(

*******************

const a = 1, x = 0onst a = 1, x = 0nst a = 1, x = 0st a = 1, x = 0t a = 1, x = 0 a = 1, x = 0a = 1, x = 0 = 1, x = 0 = 1, x = 0= 1, x = 0 1, x = 01, x = 0, x = 0 x = 0x = 0 = 0= 0 0 0math(

*******************

const a = 1, x = 0onst a = 1, x = 0nst a = 1, x = 0st a = 1, x = 0t a = 1, x = 0 a = 1, x = 0a = 1, x = 0 = 1, x = 0 = 1, x = 0= 1, x = 0 1, x = 01, x = 0, x = 0 x = 0x = 0 = 0= 0 0 0math(c

*******************

const a = 1, x = 0onst a = 1, x = 0nst a = 1, x = 0st a = 1, x = 0t a = 1, x = 0 a = 1, x = 0a = 1, x = 0 = 1, x = 0 = 1, x = 0= 1, x = 0 1, x = 01, x = 0, x = 0 x = 0x = 0 = 0= 0 0 0math(c

*******************

const a = 1, x = 0onst a = 1, x = 0nst a = 1, x = 0st a = 1, x = 0t a = 1, x = 0 a = 1, x = 0a = 1, x = 0 = 1, x = 0 = 1, x = 0= 1, x = 0 1, x = 01, x = 0, x = 0 x = 0x = 0 = 0= 0 0 0math(co

*******************

const a = 1, x = 0onst a = 1, x = 0nst a = 1, x = 0st a = 1, x = 0t a = 1, x = 0 a = 1, x = 0a = 1, x = 0 = 1, x = 0 = 1, x = 0= 1, x = 0 1, x = 01, x = 0, x = 0 x = 0x = 0 = 0= 0 0 0math(co

*******************

const a = 1, x = 0onst a = 1, x = 0nst a = 1, x = 0st a = 1, x = 0t a = 1, x = 0 a = 1, x = 0a = 1, x = 0 = 1, x = 0 = 1, x = 0= 1, x = 0 1, x = 01, x = 0, x = 0 x = 0x = 0 = 0= 0 0 0math(cos

*******************

const a = 1, x = 0onst a = 1, x = 0nst a = 1, x = 0st a = 1, x = 0t a = 1, x = 0 a = 1, x = 0a = 1, x = 0 = 1, x = 0 = 1, x = 0= 1, x = 0 1, x = 01, x = 0, x = 0 x = 0x = 0 = 0= 0 0 0math(cos

*******************

const a = 1, x = 0onst a = 1, x = 0nst a = 1, x = 0st a = 1, x = 0t a = 1, x = 0 a = 1, x = 0a = 1, x = 0 = 1, x = 0 = 1, x = 0= 1, x = 0 1, x = 01, x = 0, x = 0 x = 0x = 0 = 0= 0 0 0math(cos(

*******************

const a = 1, x = 0onst a = 1, x = 0nst a = 1, x = 0st a = 1, x = 0t a = 1, x = 0 a = 1, x = 0a = 1, x = 0 = 1, x = 0 = 1, x = 0= 1, x = 0 1, x = 01, x = 0, x = 0 x = 0x = 0 = 0= 0 0 0math(cos(

*******************

const a = 1, x = 0onst a = 1, x = 0nst a = 1, x = 0st a = 1, x = 0t a = 1, x = 0 a = 1, x = 0a = 1, x = 0 = 1, x = 0 = 1, x = 0= 1, x = 0 1, x = 01, x = 0, x = 0 x = 0x = 0 = 0= 0 0 0math(cos(3

*******************

const a = 1, x = 0onst a = 1, x = 0nst a = 1, x = 0st a = 1, x = 0t a = 1, x = 0 a = 1, x = 0a = 1, x = 0 = 1, x = 0 = 1, x = 0= 1, x = 0 1, x = 01, x = 0, x = 0 x = 0x = 0 = 0= 0 0 0math(cos(3

*******************

const a = 1, x = 0onst a = 1, x = 0nst a = 1, x = 0st a = 1, x = 0t a = 1, x = 0 a = 1, x = 0a = 1, x = 0 = 1, x = 0 = 1, x = 0= 1, x = 0 1, x = 01, x = 0, x = 0 x = 0x = 0 = 0= 0 0 0math(cos(30

*******************

const a = 1, x = 0onst a = 1, x = 0nst a = 1, x = 0st a = 1, x = 0t a = 1, x = 0 a = 1, x = 0a = 1, x = 0 = 1, x = 0 = 1, x = 0= 1, x = 0 1, x = 01, x = 0, x = 0 x = 0x = 0 = 0= 0 0 0math(cos(30

*******************

const a = 1, x = .1542514498875841

*******************

const a = 1, x = .1542514498875841

*******************

const a = 1, x = .1542514498875841

*******************

const a = 1, x = .1542514498875841

*******************

const a = 1, x = .1542514498875841

*******************

const a = 1, x = .1542514498875841

*******************

CONST a = 1, x = .1542514498875841

*******************

CONST a = 1, x = .1542514498875841

Now, this is a working result. Imagine if something is off and we generate false results on the 3rd or 4th variable in that mess... THAT's what I've been sorting through all day long to get this thing to work. (Well, maybe not all day. I did get annoyed earlier and took a nap and said PATOOIE on it!!)

But, I think the final result is worth it. We now integrate _RGB and _MATH seamlessly into the existing CONST structure. Add them at any point in the declaration process, mix them up, it's all good! Heck, you can even do a CONST x = _MATH(_RGB32(255,0,0)/10) if you really wanted to. (Though I have no clue why someone would want to....)

Take it, try it out, enjoy it. And if it melts your computer or turns your brain to goo, I blame Clippy and you should too! It's always nice to have someone to blame.