2011 | OriginalPaper | Chapter
Grammars and Languages
Authors : Prof. Yunlin Su, Prof. Song Y. Yan
Published in: Principles of Compilers
Publisher: Springer Berlin Heidelberg
Activate our intelligent search to find suitable subject content or patents.
Select sections of text to find matching patents with Artificial Intelligence. powered by
Select sections of text to find additional relevant content using AI-assisted search. powered by
From the development of the mankind language, the language itself was created first without the establishment of the grammar. As the knowledge of mankind enriched and developed, the grammar was created to help the study of the language and to make the language normalized. As any native language is very complicate and the grammar was founded after the language, no matter what language is, not any grammar can totally describe the phenomena of the language. In addition, there exist ambiguities in the native languages. For the human being, in general, these phenomena of ambiguities can be handled by human themselves. For computers, however, it is hard for them to accept and even to understand ambiguity. Programming languages are different from native languages in that the generation of the language is almost at the same time. The the purpose of the grammar is to help the users of the language to avoid any ambiguity and to express the meaning correctly. The program should be correctly written in order to be run on computer with correct results. Therefore, the research on compilers should be started with the discussion on the relation between grammars and languages.