Verification system for unused and undefined non-terminals

Abierto
#14 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
42/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
csharp

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.
Lenguaje dominante
C#
Estrellas
0
Forks
0
Merge medio
3 d 4 h
PR fusionados (30 d)
5

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Natvs/Nt.SyntaxParser

Todos los issues de Natvs/Nt.SyntaxParser

Issues similares

Más issues de C#

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.