看板 [ Perl ]
討論串[問題] Parse::RecDescent 如何取出grammer 裡 …
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者kornelius (c9s)時間16年前 (2009/08/02 15:47), 編輯資訊
0
0
0
內容預覽:
應該會像是這樣用:. parser = new Parse::RecDescent (q{. expression: and_expr '||' expression. { [@item] }. | and_expr. { [@item] }. and_expr: not_expr '&&' and
(還有243個字)

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者kornelius (c9s)時間16年前 (2009/08/02 15:38), 編輯資訊
0
0
1
內容預覽:
^^^^^^ 被註解掉了?. 請參考 perldoc Parse::RecDescent 的 Rules 章節,. 我想 $grammer 裡面的 rule 應該是要照那樣寫:. rule1: production1. | production2 |. production3 | productio
(還有181個字)
首頁
上一頁
1
下一頁
尾頁