My guess is that the ambiguity of the generated grammar caused infinite recursion or an infinite loop.

@pankajgajjar can you update the PR and remove the ambiguity please?