A parser that follows another parser and computes location information

Đang mở
#3,074 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ó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/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ệ
haskell
Lĩnh vực
backend

Hướng nghiên cứu

Start by reading the parser design in #591, which this issue references. The issue proposes feeding discarded input from the parser driver to a separate position parser, but does not identify implementation files or tests. Done means the modular position parser can compute error locations such as byte position or line number.

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

Mô tả

aspect:parsers

The problem to be solved is the parse error position reporting in a modular way. To do that we can use a separate parser which computes the current position from the stream. This position could be byte position, line number or any other way of indicating the position. The position parser would accept the input that has already been consumed and discarded by the main parser. Therefore, the parser driver just needs to feed it the input that is being discarded from the backtrack buffer. Anything that is still in the backtrack buffer does not need to be given to this parser as it can be accounted at the time of error.

See #591

Ngôn ngữ chính
Haskell
Star
926
Fork
71
Merge trung bình
6 giờ 49 phút
Pull request đã merge (30 ngày)
3

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 composewell/streamly

Tất cả issue của composewell/streamly

Issue tương tự

Thêm issue về Haskell

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.