Abstract
The syntax analysis or parser is the essential stage of designing compilers, and the role of the parser is parsing strings according to a definite number of rules. Researchers often use either LL(1) top-down technique or LR bottom-up technique to parse strings to decide whether all these strings or some of them are accepted by some defined language. Theoretically, many papers illustrated that the LR method is more suitable for LL(1). The current paper treats the problem of parsing practically. It proves that the LR technique is more suitable of LL(1) in terms of the computing time of parsing in each technique.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
References
Su Y, Yan SY (2011) Principles of compilers—a new approach to compilers including the algebraic method. Higher Education Press, Beijing and Springer Heidelberg Dordrecht, London, New York
Ah AV, Lam MS, Sethi R, Ullman JD (2007) Compilers—principles, techniques, and tools. Pearson Addison Wesley, New York
Jacobs CJH, Kees DG, Bal HE, van Reeuwijk (2012) Modern compiler design. Springer, New York, Heidelberg Dordrecht London
Waite WM, Goos G (1994) Compiler construction. Springer-Verlag, Berlin, New York
Holub AI (1990) Compiler design in C. Prentice Hall, New Jersey
Meduna A (2008) Elements of compiler design. Auerbach Publications, New York
Ismail IA, Ali NA (2019) LL(1) as a property is not enough for obtaining proper parsing. In: The first world conference on internet of things: applications & future. French University-Cairo, SPRINGER Peer-Reviewed Proceedings, Cairo
Ægidius Mogensen T (2011) An introduction to compiler design. Springer-Verlag, London
Ismail IA, Ali NA (2017) Parsing strings using a subset of the production rules of the C-language. Egypt Comput Sci J 41:30–35
Ægidius Mogensen T (2010) Basics of compiler design. Published through lulu.com. University of Copenhagen, Copenhagen
Puntambekar AA (2008) Compiler design. Technical Publication
Maheshwari A, Smid M (2017) Introduction to theory of computation. Carleton University, Canada
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2022 The Author(s), under exclusive license to Springer Nature Singapore Pte Ltd.
About this paper
Cite this paper
Ali, N.A. (2022). Practical Comparison Between the LR(1) Bottom-Up and LL(1) Top-Down Methodology. In: Magdi, D.A., Helmy, Y.K., Mamdouh, M., Joshi, A. (eds) Digital Transformation Technology. Lecture Notes in Networks and Systems, vol 224. Springer, Singapore. https://doi.org/10.1007/978-981-16-2275-5_10
Download citation
DOI: https://doi.org/10.1007/978-981-16-2275-5_10
Published:
Publisher Name: Springer, Singapore
Print ISBN: 978-981-16-2274-8
Online ISBN: 978-981-16-2275-5
eBook Packages: Intelligent Technologies and RoboticsIntelligent Technologies and Robotics (R0)