Skip to content

Instantly share code, notes, and snippets.

@Gnimuc
Created February 25, 2019 01:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Gnimuc/37bb730b1046f1b8d0115307624656a7 to your computer and use it in GitHub Desktop.
Save Gnimuc/37bb730b1046f1b8d0115307624656a7 to your computer and use it in GitHub Desktop.
julia> :(struct Foo
struct Bar
struct Baz
x
end
struct Goo
y
end
baz::Baz
goo::Goo
end
end) |> x->dump(x, maxdepth=100)
Expr
head: Symbol struct
args: Array{Any}((3,))
1: Bool false
2: Symbol Foo
3: Expr
head: Symbol block
args: Array{Any}((2,))
1: LineNumberNode
line: Int64 2
file: Symbol REPL[5]
2: Expr
head: Symbol struct
args: Array{Any}((3,))
1: Bool false
2: Symbol Bar
3: Expr
head: Symbol block
args: Array{Any}((8,))
1: LineNumberNode
line: Int64 3
file: Symbol REPL[5]
2: Expr
head: Symbol struct
args: Array{Any}((3,))
1: Bool false
2: Symbol Baz
3: Expr
head: Symbol block
args: Array{Any}((2,))
1: LineNumberNode
line: Int64 4
file: Symbol REPL[5]
2: Symbol x
3: LineNumberNode
line: Int64 6
file: Symbol REPL[5]
4: Expr
head: Symbol struct
args: Array{Any}((3,))
1: Bool false
2: Symbol Goo
3: Expr
head: Symbol block
args: Array{Any}((2,))
1: LineNumberNode
line: Int64 7
file: Symbol REPL[5]
2: Symbol y
5: LineNumberNode
line: Int64 9
file: Symbol REPL[5]
6: Expr
head: Symbol ::
args: Array{Any}((2,))
1: Symbol baz
2: Symbol Baz
7: LineNumberNode
line: Int64 10
file: Symbol REPL[5]
8: Expr
head: Symbol ::
args: Array{Any}((2,))
1: Symbol goo
2: Symbol Goo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment