implement the method call in the expression parser