Added test runner for predict_generator.
Grammar analyzer now gets RHS of one production.
Strip out newlines from productions and return lhs correctly.
Predict generator mark_lambda now working.