Skip to content

[META] Planned changes to AST structure #567

@Keno

Description

@Keno

Discussing with @mlechu, I think there's a few near term changes we'd like to make to the core JuliaSyntax AST data structures. I'm opening up this issue so we have a place to track them all and discuss the overall plan. Particulars of any change can go to the appropriate issue or PR. I think the plan would be that we put them all in and then tag JuliaSyntax 2.0 for 1.13 to go with putting JuliaLowering in Base.

Planned changes (will amend list as more things come up).

  1. Separate out "trivia" from "notation" #564
  2. Remove the DOTOP_FLAG - it's hardly used at this point anyway (Remove DOTOP_FLAG from tokenizer and parser #568)
  3. Find a different representation for the numeric bits - they are only used by two heads, but take up 8 bits in every syntax node. This seems a bit wasteful.
  4. Remove individual syntax heads for unicode operators - replace with one head per precedence level (plus possibly a few special heads used elsewhere)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions