Forgot to include the dash in regex for valid function names.
Moved the evaluation of CSS/variable value expressions to a seperate function.
Function applications with no args work.
Overriding CSS "functions" work (only with no args at the moment).
Got math statements to evaluate by cheating and using calc (or is it deciding not to reinvent the wheel..? up to you).