Redirigiendo al acceso original de articulo en 22 segundos...
ARTÍCULO
TITULO

About LL(1)-grammars, algorithms on them and methods of their analysis in programming

S.V. Kozlov    
A. V. Svetlakov    

Resumen

The article discusses the theoretical foundations of parsing, namely, the definition of LL(1)-grammars and proves the key positions associated with them for practice. The authors demonstrate the impracticality of the proof by definition that context-free grammar is an LL(1)-grammar. In view of this, a theorem is formulated and proved that sets the criterion of LL(1)-grammar. First and follow sets are constructed, which determine the necessary and sufficient conditions for the existence of LL(1)-grammar. Examples show the application of the formulated criterion. The central point of the article is the question of finding grammars equivalent to LL(1)-grammar. A number of statements are considered to reveal that the grammar being analyzed is not an LL(1)-grammar. In particular, two necessary conditions for the existence of LL(1)-grammar are analyzed. Namely, theorems that if a grammar contains a left recursion or a right branching, then it is not an LL(1)-grammar. The example shows that these conditions are not sufficient. Two methods for analyzing LL(1)-grammars used in practice are discussed and compared: the recursive descent method and the emission-transfer method. For each of the methods, its meaningful description and implementation in pseudocode is given. All the provisions of the article are accompanied by the necessary examples. The relevance of the article is associated with the search and study of parsing algorithms for grammars of natural and artificial languages, which are successfully used as tools for writing pattern recognition systems in the field of artificial intelligence.

 Artículos similares

       
 
Jifeng Jin, Lin Shang, Zijian Yang, Haiwang Wang and Guotong Li    
Satellite networks show the development trend in global coverage, flexible access, and reliable transmission. They are the key to building a wide coverage, massive connection, three-dimensional, all-round, all-weather, space-, air- and ground-integrated ... ver más
Revista: Applied Sciences

 
Yunzhou Chen, Shumin Wang, Ziying Gu and Fan Yang    
Spatial population distribution data is the discretization of demographic data into spatial grids, which has vital reference significance for disaster emergency response, disaster assessment, emergency rescue resource allocation, and post-disaster recons... ver más
Revista: Applied Sciences

 
Lucio Pinello, Omar Hassan, Marco Giglio and Claudio Sbarufatti    
An increase in aircraft availability and readiness is one of the most desired characteristics of aircraft fleets. Unforeseen failures cause additional expenses and are particularly critical when thinking about combat jets and Unmanned Aerial Vehicles (UA... ver más
Revista: Aerospace

 
Daicheng Peng, Fei Cheng, Hao Xu and Yuquan Zong    
Precise surveys are indispensable in coastal engineering projects. The extensive presence of sand in the coastal area leads to significant attenuation of seismic waves within unsaturated loose sediments. As a result, it becomes challenging for seismic wa... ver más

 
Pavel V. Matrenin, Valeriy V. Gamaley, Alexandra I. Khalyasmaa and Alina I. Stepanova    
Forecasting the generation of solar power plants (SPPs) requires taking into account meteorological parameters that influence the difference between the solar irradiance at the top of the atmosphere calculated with high accuracy and the solar irradiance ... ver más
Revista: Algorithms