Skip to content

a question on the "right sibling" handling #2

@hq9000

Description

@hq9000

Hello, and thank you for sharing this work.

Got a little question:

the paper (https://arxiv.org/abs/1711.09573) says we need to encode two additional bits of info for each flattened AST node:

  • has children
  • has a right sibling

image

the note about "right" is essential, as otherwise it will be impossible (I believe) to restore the tree.

However, the implementation seems to encode the fact that this node has (any) siblings (not necessarily a "right" one):

image

Am I missing anything or it's something to be be fixed?

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions