Skip to main content

Grammatiken und formale Sprachen

  • Chapter
Theoretische Informatik

Part of the book series: Springer-Lehrbuch ((SLB))

  • 390 Accesses

Zusammenfassung

Angenommen, wir wollen ein Programm schreiben, das C-Programme darauf testet, ob sie syntaktisch korrekt sind. Dann muß unser Programm folgendes leisten:

  1. 1.

    Es muß erst einmal erkennen, wo ein Wort der Programmiersprache anfängt und wo es aufhört. Außerdem muß es Schlüsselwörter der Sprache, wie z.B. „if“ oder „while“, von Variablennamen unterscheiden.

  2. 2.

    Dann muß es feststellen, welche Sprachkonstrukte vorliegen — eine ifAnweisung, eine Variablendeklaration, eine Funktionsdefinition — und ob diese Sprachkonstrukte syntaktisch korrekt sind oder ob der if-Anweisung ein ,)’ fehlt.

  3. 3.

    Schließlich sollte unser Programm noch darauf achten, daß nicht versucht wird, z.B. einer Integer-Variablen einen String zuzuweisen.

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 54.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever

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.

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2002 Springer-Verlag Berlin Heidelberg

About this chapter

Cite this chapter

Erk, K., Priese, L. (2002). Grammatiken und formale Sprachen. In: Theoretische Informatik. Springer-Lehrbuch. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-662-10428-6_4

Download citation

  • DOI: https://doi.org/10.1007/978-3-662-10428-6_4

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-42624-0

  • Online ISBN: 978-3-662-10428-6

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics