Skip to content

Consider combining "foo" "bar" into single *StringNode. #1479

@enebo

Description

@enebo

The build logic for this is pretty ugly:

"a" "b"
"a #{oh}" "b"
"a" "b #{oh}"
"a #{oh}" "b #{oh}"

Legacy parsers do this combination during parse. The only reason I can think of not to add this enhancement is syntax tooling probably needs to know this. With that said this:

  1. uses extra post-processing (wastes time)
  2. bigger (wastes space)

I keep thinking we need to have two profiles (semantics, syntax) during parse which does the thing each type of tool wants.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions