这是我没有留下递归的语法。我必须把它变成LL(1)。我该怎么做呢?
S -> Exp eof
Exp -> Term Exp2
Exp2 -> + Term Exp2 | - Term Exp2| e
Term -> Factor Term2
Term2 -> * Factor Term2 | / Factor Term2 | e
Factor -> id | num | Fncall | Aref | (Exp)
Fncall -> id (Arguments)
Aref -> id [Indices]
Arguments -> Exp | Exp, Arguments
Incides -> Exp | Exp, Indices