JuliaSyntax.jl icon indicating copy to clipboard operation
JuliaSyntax.jl copied to clipboard

Additional :block for non-standard for loops compared to flisp

Open pfitzseb opened this issue 7 months ago • 1 comments

flisp:

julia> Meta.show_sexpr(Meta.parse("for f() = 1:3; f(); end"))
(:for, (:(=), (:call, :f), (:call, :(:), 1, 3)), (:block,
    :(#= none:1 =#),
    (:call, :f),
    :(#= none:1 =#)
  ))

JuliaSyntax#main:

julia> Meta.show_sexpr(JuliaSyntax.parse(Expr, "for f() = 1:3; f(); end"))
(:for, (:(=), (:call, :f), (:block,
      :(#= line 1 =#),
      (:call, :(:), 1, 3)
    )), (:block,
    :(#= line 1 =#),
    (:call, :f),
    :(#= line 1 =#)
  ))

Is this an intentional change?

pfitzseb avatar Jan 03 '24 12:01 pfitzseb