JuliaLang / JuliaLang/JuliaSyntax.jl

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

Open
#403 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
293
Forks
50
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.