Verification system for unused and undefined non-terminals

Đang mở
#14 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
42/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
csharp
Lĩnh vực
documentation, tooling

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.
Ngôn ngữ chính
C#
Star
0
Fork
0
Merge trung bình
3 ngày 4 giờ
Pull request đã merge (30 ngày)
5

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Natvs/Nt.SyntaxParser

Tất cả issue của Natvs/Nt.SyntaxParser

Issue tương tự

Thêm issue về C#

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.