close
Blogtrottr
Yahoo!奇摩知識+ - 分類問答 - 電腦網路 - 發問中
Yahoo!奇摩知識+ - 分類問答 - 電腦網路 - 發問中 
Compiler LR(1) & LALR parsing
Dec 18th 2014, 07:24

(1) 我想請問LR(1)後面的lookahead要怎麼找?查了網路上的資料有的寫FIRST有的寫FOLLOW...
(2) 我想請問LALR的parsing table,在action那一塊要怎麼看shift和reduce
第一題:
S -> CC
C -> cC
C -> d
parsing table中state0、2、36的action c都是s36,action d都是s47
第二題:
S -> L = R | R
L -> *R | id
R -> L
parsing table中state0、411、6的state id都是s512,action *的話state 0和state 411都是s411,但是state 6是s11,為什麼不是s411??

以上,麻煩大家了,謝謝~

This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers.
Want something else to read? How about 'Grievous Censorship' By The Guardian: Israel, Gaza And The Termination Of Nafeez Ahmed's Blog

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions
arrow
arrow
    全站熱搜
    創作者介紹
    創作者 nbv6d9vomp1hu 的頭像
    nbv6d9vomp1hu

    線上遊戲排行榜2013/2014,進擊的巨人線上看,candy crush saga外掛,正妹寫真三圍

    nbv6d9vomp1hu 發表在 痞客邦 留言(0) 人氣()