Re-write Parsing Expression Grammar (PEG) without left recursion
问题 Using https://github.com/JetBrains/Grammar-Kit how to rewrite grammar without left recursion? grammar ::= exprs exprs::= (sum_expr (';')?)* private sum_expr::= sum_expr_infix | sum_expr_prefix sum_expr_infix ::= number sum_expr_prefix left sum_expr_prefix::= op_plus number private op_plus ::= '+' number ::= float | integer float ::= digit+ '.' digit* integer ::= digit+ private digit ::=('0'|'1'|'2'|'3'|'4'|'5'|'6'|'7'|'8'|'9') Sample input: 10+20+30.0; 10+20+30.0 Answer shall maintain parse