Skip to main content
Top

2017 | OriginalPaper | Chapter

3. Lexical Analysis

Activate our intelligent search to find suitable subject content or patents.

search-config
loading …

Abstract

It is appropriate to start the details of compiler implementation by considering the lexical analyser. The place of the lexical analyser in the complete compiler has already been discussed in Chap. 2. Because it is the first phase of source code analysis, the format of its input is governed by the specification of the programming language being compiled. The output of the lexical analyser has to satisfy the needs of the next phase of compilation (syntax analysis) and details of this interface will be examined later in this chapter.

Dont have a licence yet? Then find out more about our products and how to get one now:

Springer Professional "Wirtschaft+Technik"

Online-Abonnement

Mit Springer Professional "Wirtschaft+Technik" erhalten Sie Zugriff auf:

  • über 102.000 Bücher
  • über 537 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Maschinenbau + Werkstoffe
  • Versicherung + Risiko

Jetzt Wissensvorsprung sichern!

Springer Professional "Technik"

Online-Abonnement

Mit Springer Professional "Technik" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 390 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Maschinenbau + Werkstoffe




 

Jetzt Wissensvorsprung sichern!

Springer Professional "Wirtschaft"

Online-Abonnement

Mit Springer Professional "Wirtschaft" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 340 Zeitschriften

aus folgenden Fachgebieten:

  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Versicherung + Risiko




Jetzt Wissensvorsprung sichern!

Literature
1.
go back to reference Goldberg D (1991) What every computer scientist should know about floating-point arithmetic. ACM Comput Surv 23(1):5–48CrossRef Goldberg D (1991) What every computer scientist should know about floating-point arithmetic. ACM Comput Surv 23(1):5–48CrossRef
2.
go back to reference Clinger WD (1990) How to read floating point numbers accurately. In: Proceedings of the ACM SIGPLAN ’90 conference on programming language design and implementation, White Plains, NY, pp. 92–101 Clinger WD (1990) How to read floating point numbers accurately. In: Proceedings of the ACM SIGPLAN ’90 conference on programming language design and implementation, White Plains, NY, pp. 92–101
3.
go back to reference Kernighan BW, Ritchie DM (1988) The C programming language, 2nd edn. Prentice Hall, Englewood CliffsMATH Kernighan BW, Ritchie DM (1988) The C programming language, 2nd edn. Prentice Hall, Englewood CliffsMATH
5.
go back to reference Mogensen TÆ (2011) Introduction to compiler design. Undergraduate topics in computer science. Springer, Berlin Mogensen TÆ (2011) Introduction to compiler design. Undergraduate topics in computer science. Springer, Berlin
6.
go back to reference Lesk ME (1975) Lex – a lexical analyser generator. AT&T Bell Laboratories, Murray Hill. Computing Science Technical Report 39 Lesk ME (1975) Lex – a lexical analyser generator. AT&T Bell Laboratories, Murray Hill. Computing Science Technical Report 39
7.
go back to reference Levine J (2009) Flex & bison. O’Reilly Media, Sebastopol Levine J (2009) Flex & bison. O’Reilly Media, Sebastopol
8.
go back to reference Grune D, Bal HE, Jacobs CJH, Langendoen KG (2000) Modern compiler design. Wiley, New York Grune D, Bal HE, Jacobs CJH, Langendoen KG (2000) Modern compiler design. Wiley, New York
9.
go back to reference Aho AV, Ullman JD (1979) Principles of compiler design. Addison-Wesley Publishing Company, Reading Aho AV, Ullman JD (1979) Principles of compiler design. Addison-Wesley Publishing Company, Reading
10.
go back to reference Aho AV, Lam MS, Sethi R, Ullman JD (2007) Compilers – principles, techniques and tools, 2nd edn. Pearson Education, London Aho AV, Lam MS, Sethi R, Ullman JD (2007) Compilers – principles, techniques and tools, 2nd edn. Pearson Education, London
Metadata
Title
Lexical Analysis
Author
Des Watson
Copyright Year
2017
DOI
https://doi.org/10.1007/978-3-319-52789-5_3

Premium Partner