Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Tree Parser (theoretische Informatik)

Empfohlene Antworten

Veröffentlicht

Tach auch,

ich weiß jetzt nicht genau, ob ich in diesem Forumteil richtig bin.

Aber ich frage mal los und hoffe sonst den richtigen Ansprechpartner zu bekommen.

Bin derzeit dabei mich ein wenig mit theoretischer Informatik auseinanderzusetzen, bezogen auf lexikalische Analyse und syntaktische Analyse (sprich Lexer und Parser).

Typisches Thema für den Compilerbau.

Ich verwende das Tool 'Antlr', welches mir die Möglichkeit bietet eine Grammatik zu schreiben und das Tool generiert mir die dazugehörigen Klassen in Java. Dann brauche ich nur noch diese Objekte zu erstellen und kann sie nutzen.

Leider kann ich keine semantische Prüfung damit abdecken. Was so viel heißt der Ausdruck

( a < b )

kann vom Parser erkannt werden und sagt mir, ob er aufgrund seiner Grammatik richtig ist oder welches Zeichen er nicht kennt.

Der Parser sagt mir aber nicht, ob 'a' wirklich kleiner 'b' ist, d.h. a=5 und b=3 ist für den Parser korrekt, weil er eben keinen Inhalt prüft.

Jetzt habe ich aber gehört/ gelesen, dass der TreeParser jenes kann und wollte mal fragen ob jemand überhaupt mit 'Antlr' schon Erfahrung gemacht hat bzw. sogar mit dem TreeParser.

Schönen Dank für eure Hilfe.

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.