Created a mixed grammar method for mixed input.