最終更新日:2022/12/22
例文
An
LR(k)
grammar
is
clearly
unambiguous,
since
the
definition
implies
every
derivation
tree
must
have
the
same
handle,
and
by
induction
there
is
only
one
possible
tree.
It
is
interesting
to
point
out
furthermore
that
nearly
every
grammar
which
is
known
to
be
unambiguous
is
either
an
LR(k)
grammar,
or
(dually)
is
a
right-to-left
translatable
grammar,
or
is
some
grammar
which
is
translated
using
"both
ends
toward
the
middle."
Thus,
the
LR(k)
condition
may
be
regarded
as
the
most
powerful
general
test
for
nonambiguity
that
is
now
available.
復習用の問題
An LR(k) grammar is clearly unambiguous, since the definition implies every derivation tree must have the same handle, and by induction there is only one possible tree. It is interesting to point out furthermore that nearly every grammar which is known to be unambiguous is either an LR(k) grammar, or (dually) is a right-to-left translatable grammar, or is some grammar which is translated using both ends toward the middle.
Thus, the LR(k) condition may be regarded as the most powerful general test for nonambiguity that is now available.
項目の編集設定
- 項目の編集権限を持つユーザー - すべてのユーザー
- 項目の新規作成を審査する
- 項目の編集を審査する
- 項目の削除を審査する
- 重複の恐れのある項目名の追加を審査する
- 項目名の変更を審査する
- 審査に対する投票権限を持つユーザー - 編集者
- 決定に必要な投票数 - 1
例文の編集設定
- 例文の編集権限を持つユーザー - すべてのユーザー
- 例文の削除を審査する
- 審査に対する投票権限を持つユーザー - 編集者
- 決定に必要な投票数 - 1
問題の編集設定
- 問題の編集権限を持つユーザー - すべてのユーザー
- 審査に対する投票権限を持つユーザー - 編集者
- 決定に必要な投票数 - 1