Verification system for unused and undefined non-terminals

Offen
#14 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
42/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
csharp

Rechercherichtung

The payload names no source files, so start by locating the grammar model in the C# project, where rules, non-terminals and their definitions are represented. Add a check that flags non-terminals no rule uses as a warning, and one that flags used non-terminals with no definition as an exception. Cover each case with a test, and document both messages in Doc/Exceptions.md. Done means the tests pass and the new messages appear in that document.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

enhancement

There should be a verification system for unused and undefined terminals, so that there won't be issue when further analysing a source code.

Here is how that should work:

  • For every non-terminal, check if at least one rule uses it.
  • If no rule uses it, then throw a warning
  • For every non-terminal that is used, check if there is at least one definition for it
  • If there are none, throw an exception

Don't forget to

  • Add several tests, at least one for each case
  • Add the exceptions and warnings raised to Doc/Exceptions.md.
Vorherrschende Sprache
C#
Sterne
0
Forks
0
Ø Merge
3 T. 4 Std.
Gemergte PRs (30 T.)
5

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus Natvs/Nt.SyntaxParser

Alle Issues in Natvs/Nt.SyntaxParser

Ähnliche Issues

Weitere Issues zu C#

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.