我有這樣的語法:刪除左遞歸語法中的
agent
= nil
| @
| id
| act . agent
| agent + agent
| agent "|" agent
| agent \ restriction
| agent [relabeling]
| agent where agent_frame end
| automation
| (agent)
,其中重點是:
"where" < "+" < "|" < "\" < "." < "[" < "nil", "@"
我需要刪除左遞歸尊重優先級(寫所有的JavaCC) 。
你能幫我刪除遞歸嗎?
你的語法很難看。難道你不能只縮進4個空格的語法來源,並將其替換爲你的問題?謝謝。 – Seki