形式语言中的上下文无关和上下文相关
Context-free/-sensitive in Formal Language
-
摘要: 形式语言与自动机理论已成为计算机科学的理论基础;对于程序设计语言的说明和分析尤其重要。文中介绍了形式语言与自动机理论中的基本原理,给出了上下文无关文法、上下文相关文法及其相应语言的定义,讨论了它们之间的关系。Abstract: As the acidemic foundmental of computer science,formal language and automatic machine theory are important for specification and analysis of programming language.The element principle of formal language and automatic machine are introduced in this paper.Then the defination of the context-free gramma,context sensitive gramma,and their relative language are given.The relationship between them is also dicussed.