Need to write a quick method static boolean varTest(String id) that tests of the input is indeed a variable based on the following rules:
variable ::= a dollar sign ($) followed by an integer, or any identifier starting with a letter followed by a mix of letters or digits.
Where for example both x$ or $x can be var's without this test.
So if not true, I want to throw ArithmeticException