Skip to content

Expand string interpolation expressions into dedicated AST #4192

@flying-sheep

Description

@flying-sheep

Hi, as seen in #3831, string interpolation like "A #{a} B #{b}" is lexed as if it was 'A '+a+' B '+b.

as mentioned in juliankrispel/decaf#2, there are use cases for having the semantic information survive lexing.

Therefore it would be awesome if we could introduce a new StringInterpolation AST node which is later converted to a concatenation expression.

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