Skip to content

Overlapping elements in generated Parse Tree visualization #321

Description

@kgs233

If a parser rule node and lexer nodes are placed on the same row, and the parser node has more than two children, the edges connecting the parser node to its children will overlap (see image below).

Image

My suggestion: when lexer nodes and a parser node share the same row, extend the connector from the parser node’s parent so that the parser node is placed on the next row (or, in Horizontal mode, the next column). This moves the parser node (and its children) one line/column away from the lexer nodes and prevents the child-connector lines from overlapping the adjacent lexical nodes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions