Abstract
The syntax analysis is the essential step for the compilation of programs written in programming languages. In order to produce the object programs executable on the computer, the source program has to be analyzed with respect to its correctness, the correctness of the lexicon, syntax and semantics. And in general, the construction of the compiler puts the first two, i.e., the analysis of the lexicon and analysis of the syntax into a phase-the analysis phase. In the two analyses, obviously the syntax analysis is more important than the lexical analysis though it is the base of the former. In comparison with the lexical analysis, the syntax analysis has more issues to explore. In the development history of compilers many researchers and software engineers had devoted lots of their times to design methods for the syntax analysis. The syntax analysis had been regarded as the key to the success of compilers, and it was also regarded as the most arduous task in the construction of compilers. Now in the field of the syntax analysis there are many successful techniques that are widely used in the construction of compilers, especially in the design of the syntax analysis, we should introduce and discuss them in the book that devotes to the principles of compilers. The aim of this chapter is to explain the role of the syntax analysis and to introduce the important techniques used in the syntax analysis, and to compare these techniques in terms of their efficiency and easiness, etc.
The next level in the linguistic hierarchy is that of syntax, or the rules that govern the combination of morphemes in phrases and sentences. In recent years the principles underlying syntax have been extended to include how information can be transformed from one to another. Robert L. Solso
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
References
Grune D, Jacobs CJH (1990) Parsing Technique: A Practical Guide, Ellis Horwood, New York.
Sippu S, Soisalon-Soinenan E (1989/1990) Parsing Theory, vol. II LL(k) Parsing and LR(k) Parsing. Springer, Berlin.
Robin Hunter (1988) Compilers: their design and construction using Pascal. Cambridge University Press, Cambridge.
Aho A V, Ullman J D (1973) the theory of parsing, translation, and compiling, vol. II: Compiling. Prentice-Hall, Englewood Cliffs, New Jersey.
Chen Huowang, Qian Jiahua, Sun Yongqiang (1980) Compiler principles. Defense Industry Press, Beijing.
Jin Chengzhi (1981) Compilers: The principles and implementation. Higher Education Press, Beijing.
Aho A V, Ullman J D (1972) The theory of parsing, translation and compiling, vol. I: Parsing,. Prentice-Hall, Englewood Cliffs, New Jersey.
Grune D, Bal H E, Jacobs C J (2007) Modern compiler design. Addison-Wiley, Reading, MA.
Chapman NP (1987) LR Parsing: Theory and Practice. Cambridge University Press, Cambridge.
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2011 Higher Education Press, Beijing and Springer-Verlag Berlin Heidelberg
About this chapter
Cite this chapter
Su, Y., Yan, S.Y. (2011). Syntax Analysis. In: Principles of Compilers. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-20835-5_7
Download citation
DOI: https://doi.org/10.1007/978-3-642-20835-5_7
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-642-20834-8
Online ISBN: 978-3-642-20835-5
eBook Packages: Computer ScienceComputer Science (R0)