Implemented basic syntax tree validation. XOR and AND operators implemented, as well as the Numeric rule.