请输入您要查询的字词:

 

单词 context-sensitive grammar
释义
context-sensitive grammar

Computer
  • A grammar in which each production has the form

    αAβαγβ
    where A is a nonterminal and α‎, β‎, and γ‎ are arbitrary words with γ‎ nonempty. If γ‎ was allowed to be empty then any type 0 (equivalently, recursively enumerable) language of the Chomsky hierarchy could be generated. To derive the empty word, a production
    SΛ
    must also be included, with S not occurring in the right-hand side of any production. The term context-sensitive refers to the fact that A can be rewritten to γ‎ only in the ‘context’ α‎…β‎.

    In a length-increasing grammar each production has a right-hand side at least as long as its left-hand side (apart possibly from S → Λ‎). Clearly any context-sensitive grammar is length-increasing, but it can also be shown that any length-increasing grammar is equivalent to a context-sensitive one. Context-sensitive grammars are a class of phrase-structure grammar.

    Compare context-free grammar.


随便看

 

科学参考收录了60776条科技类词条,基本涵盖了常见科技类参考文献及英语词汇的翻译,是科学学习和研究的有利工具。

 

Copyright © 2000-2023 Sciref.net All Rights Reserved
京ICP备2021023879号 更新时间:2024/6/30 20:37:36