|
關注:1
2013-05-23 12:21
求翻譯:Consider the first production rule when a LR(1) or LALR(1) parsing algorithm is used to parse the input a d b c. Initially, when the symbol a is encountered, the choice of rules is unambiguous. It is still unambiguous after the a has been shifted, and d is the current symbol. But after the d, there is an ambiguity as t是什么意思?![]() ![]() Consider the first production rule when a LR(1) or LALR(1) parsing algorithm is used to parse the input a d b c. Initially, when the symbol a is encountered, the choice of rules is unambiguous. It is still unambiguous after the a has been shifted, and d is the current symbol. But after the d, there is an ambiguity as t
問題補充: |
|
2013-05-23 12:21:38
考慮到第一條生產規則,當一個LR(1)或LALR(1)分析算法用于解析輸入ADB?。最初,當象征遇到規則的選擇是明確的。一個已被轉移后,它仍然是明確的和d是當前的符號。但在D之后,有一個模糊的b是否屬于第1條規則的右邊或右側的第2條。因此,與B和b的符號右側的第1條規則,規則歧義存在時,只有一個符號超前的分析方法是使用。然而,規則歧義解決盡快另一個符號閱讀和C成為輸入符號。
|
|
2013-05-23 12:23:18
考慮到第一批生產時第一個lr(1)或lalr(1)解析算法,用于解析輸入一個dbc。 最初,當遇到一個符號,他們的選擇是明確的規則。 它仍然是毫不含糊的后一個已轉移,而d是當前的符號。 但當d、有一個含糊不清的問題,因為,是否屬于b的右側,1條規則或第2的右側。
|
|
2013-05-23 12:24:58
正在翻譯,請等待...
|
|
2013-05-23 12:26:38
LR(1) 或 LALR(1) 解析算法用于解析輸入 d b c 時,請考慮生產的第一個規則。最初,當符號是遇到,規則的選擇是毫不含糊。它是仍然明確后發生改變,d 是當前的符號。但 d、 后有歧義,b 屬于右手邊的第 1 條規則或者到第 2 條規則的右手邊。因此,在右手邊的第 1 條規則 B 和 b 符號之間規則存在模糊時使用的預測先行只有一個符號解析方法。然而,當另一個符號讀取和 c 將成為輸入的符號解決規則多義性。
|
|
2013-05-23 12:28:18
考慮第一個生產慣例,當LR (1)或LALR (1個)分析算法用于解析輸入d b c。 最初,當標志a遇到時,規則選擇是毫不含糊的。 它是毫不含糊的,在a被轉移了之后,并且d是當前標志。 但在d以后,有二義性至于是否那b屬于規則1的右邊或規則2的右邊。 因此,當以lookahead的一個標志只使用時,在B和b標志之間在規則1的右邊,規則二義性存在一個解析方法。 然而,規則二義性解決,當另一個標志讀,并且c成為輸入標志。
|
湖北省互聯網違法和不良信息舉報平臺 | 網上有害信息舉報專區 | 電信詐騙舉報專區 | 涉歷史虛無主義有害信息舉報專區 | 涉企侵權舉報專區