Public feed #887866

baklava

public text v1 · immutable
Raw Edit
·published 2008-02-01 17:46 UTC
rendered paste body
Capital letters are non-terminals, epsilon is empty

Remove left recursions in the grammar:

A -> AaB:C; | epsilon
B -> b | B,b
C -> c | d

____

Abstracted from problem:

DECLS -> DECLS var ID_LIST : TYPE ; | epsilon
ID_LIST -> id | ID_LIST , id
TYPE -> int | real