Attribute resolution and intermediate representation
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
- 35/100
Hướng nghiên cứu
Bắt đầu bằng cách xác định AST đã được phân tích cú pháp, điểm vào của renderer và pass lowering AST-to-IR được mô tả trong issue. Xem xét cách các statement, subgraph, attribute và chuỗi edge được biểu diễn trước khi thiết kế IR. Công việc được hoàn tất khi pass lowering phân giải các attribute kế thừa, loại bỏ các node trùng lặp, mở rộng các edge và tạo ra các cấu trúc graph, node, edge và cluster được chỉ định.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
The parsed AST is a syntactic representation of the DOT file. The renderer needs a semantic intermediate representation (IR) that resolves attribute inheritance, deduplicates nodes, and builds an adjacency structure suitable for layout algorithms.
The IR consists of IrGraph (nodes, edges, clusters, graph-level attributes), IrNode (id, label, resolved attributes, position/size slots for layout to fill), IrEdge (from/to indices, label, resolved attributes, routed points for layout to fill), and IrCluster (node indices, sub-clusters, bounding box for layout to fill). Attributes are stored as a string map with typed accessor methods for known attributes like shape, color, and fontsize; unknown attributes are silently ignored.
The AST-to-IR lowering pass walks statements in order, maintaining a scope stack with default attribute maps for graph, node, and edge targets. AttributeStatement updates the current scope's defaults. Nodes are deduplicated by ID, with later attribute declarations merged in. Edge chains like A -> B -> C are expanded into individual edges. Subgraphs whose IDs start with cluster_ produce IrCluster entries. Subgraph edge targets are expanded to edges from/to all nodes in the subgraph.
- Ngôn ngữ chính
- Rust
- Star
- 0
- Fork
- 0
- 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
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
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của terror/dotgraph
-
Expose public `render` apiĐang mởenhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
-
SVG renderingĐang mởenhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
-
Style resolutionĐang mởenhancement
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
-
Arrowhead geometryĐang mởenhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
-
Node shape geometryĐang mởenhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
Tất cả issue của terror/dotgraph
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
swc-project/swc#12516 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
mls-rs-crypto-awslc: exact aws-lc-rs =1.16.3 pin blocks rustls security updateCó thể đã có người làm @muscariello đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
[work-item] adam-adae-worsening-emergence: conform spec.yaml to the specification style contract (REQ-1280)Có thể đã có người làm @muse-yamaa-bot đã nhận hôm nay. Đang mởwork-item
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Possible memory leak: message iterators from pactffi_pact_handle_get_*message_iter are never deletedĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
pact-foundation/pact-go#652 ·
Maintainer thường phản hồi trong vòng 1 ngày