private bool detectNOT() { return (lookAhead(1).getType() == (int)LogicTokenTypes.CONNECTOR) && (lookAhead(1).getText().Equals("NOT")); }