Skip to main content

Approaches to Syntax Analysis

  • Chapter
  • First Online:
A Practical Approach to Compiler Construction

Part of the book series: Undergraduate Topics in Computer Science ((UTICS))

  • 3457 Accesses

Abstract

The heart of the analysis phase of the compiler is the syntax analyser. It takes a stream of lexical tokens from the lexical analyser and groups them together according to the rules of the language, thus determining the syntactic structure of the compiler’s input. The syntax analyser creates data structures reflecting this syntactic structure and then it is up to later phases of compilation to traverse these structures and finally to generate target code.

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 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 49.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Hopcroft JE, Ullman JD (1979) Introduction to automata theory, languages and computation. Addison-Wesley Publishing Company, Reading

    Google Scholar 

  2. Aho AV, Lam MS, Sethi R, Ullman JD (2007) Compilers – principles, techniques and tools, 2nd edn. Pearson Education, Upper Saddle River

    Google Scholar 

  3. Mogensen TÆ (2011) Introduction to compiler design. Undergraduate topics in computer science. Springer, Berlin

    Google Scholar 

  4. Aho AV, Johnson SC (1974) LR parsing. ACM Comput Surv 6(2):99–124

    Article  MATH  Google Scholar 

  5. Grune D, Jacobs CJH (2008) Parsing techniques – a practical guide. Monographs in computer science. Springer, New York

    Google Scholar 

  6. Earley J (1970) An efficient context-free parsing algorithm. Commun ACM 13(2):94–102

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Des Watson .

Rights and permissions

Reprints and permissions

Copyright information

© 2017 Springer International Publishing AG

About this chapter

Cite this chapter

Watson, D. (2017). Approaches to Syntax Analysis. In: A Practical Approach to Compiler Construction. Undergraduate Topics in Computer Science. Springer, Cham. https://doi.org/10.1007/978-3-319-52789-5_4

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-52789-5_4

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-52787-1

  • Online ISBN: 978-3-319-52789-5

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics