Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Check that tokens are non-empty after `#Layout`

Đang mở
#4,595 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ó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
compilers

Hướng nghiên cứu

Read related issue #4592 first, then locate the code that removes tokens matching #Layout and validates token regular expressions. Implement the check that (~(L))&S is non-empty for every token S, and verify that the whitespace-stripping example is rejected while valid token definitions remain accepted.

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

Mô tả

Related to #4592

Check that, after removing all tokens matching #Layout, every token is still a non-empty regular expression, preventing bugs like

syntax #Layout ::= r"([\\n \\ \\r\\t])"
syntax Stmt ::= List{Int, " "}

where the list separator will never actually be matched because #Layout strips all white-space.

Explicitly, let L be the #Layout regex and S a token. We must check that (~(*L*))&S is non-empty where ~ is negation, * is Kleene star, and & is intersection.

Ngôn ngữ chính
Python
Star
598
Fork
164
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

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

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 runtimeverification/k

Tất cả issue của runtimeverification/k

Issue tương tự

Thêm issue về Python

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.