Skip to content

macros desugars code blocks #2

@MasseGuillaume

Description

@MasseGuillaume

for example I see this in the trace

{
  val someVal = 2;
  (1).+(someVal).==(4)
}

I expect

{
  val someVal = 2
  1 + someVal == 4
}

this project solve the problem
https://github.com/lihaoyi/sourcecode#debug-prints

scalameta also has a good print of ast, but no def macro support yet.
https://github.com/scalameta/tutorial/tree/advanced-dendrology#showsyntax

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