Skip to main content

Syntax Analysis

  • Chapter
Principles of Compilers
  • 1326 Accesses

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

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 129.00
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Hardcover Book
USD 169.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Grune D, Jacobs CJH (1990) Parsing Technique: A Practical Guide, Ellis Horwood, New York.

    Google Scholar 

  2. Sippu S, Soisalon-Soinenan E (1989/1990) Parsing Theory, vol. II LL(k) Parsing and LR(k) Parsing. Springer, Berlin.

    Google Scholar 

  3. Robin Hunter (1988) Compilers: their design and construction using Pascal. Cambridge University Press, Cambridge.

    Google Scholar 

  4. Aho A V, Ullman J D (1973) the theory of parsing, translation, and compiling, vol. II: Compiling. Prentice-Hall, Englewood Cliffs, New Jersey.

    Google Scholar 

  5. Chen Huowang, Qian Jiahua, Sun Yongqiang (1980) Compiler principles. Defense Industry Press, Beijing.

    Google Scholar 

  6. Jin Chengzhi (1981) Compilers: The principles and implementation. Higher Education Press, Beijing.

    Google Scholar 

  7. Aho A V, Ullman J D (1972) The theory of parsing, translation and compiling, vol. I: Parsing,. Prentice-Hall, Englewood Cliffs, New Jersey.

    Google Scholar 

  8. Grune D, Bal H E, Jacobs C J (2007) Modern compiler design. Addison-Wiley, Reading, MA.

    Google Scholar 

  9. Chapman NP (1987) LR Parsing: Theory and Practice. Cambridge University Press, Cambridge.

    MATH  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints 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)

Publish with us

Policies and ethics