推 sophialiege:我試不會耶?! 能給個例子嗎? 05/23 17:42
※ 引述《sophialiege (with friends)》之銘言:
: ※ 引述《sophialiege (with friends)》之銘言:
: : 大家好, 我是雙班compiler新增的助教
: : 不知道大家lex和yacc是否用得還順手? 需要找時間來討論看看嗎?
: : 新增兩個作業4的測資:
: : http://www.csie.ntu.edu.tw/~comp07/hwk4/fibonacci.p
: : http://www.csie.ntu.edu.tw/~comp07/hwk4/expression.p
: : 需要error handling的測資會在稍後公佈
: The precise specification is already annouced and two more test cases
: are online now.
: -tsai-
發現只要用 error,
yacc 一定會印 syntax error.
有沒有辦法避免他印出來啊?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.112.90.104