@@ -270,8 +270,8 @@ _formula(stream::IO, X::AbstractNode, indent) =
270270 (print (stream, repeat (' ' , indent));_formula (stream, X, 0 , indent))
271271_formula (stream:: IO , X:: Source , depth, indent) = show (stream, X)
272272function _formula (stream, X:: Node , depth, indent)
273- operation_name = string ( typeof ( X. operation) . name . mt . name )
274- anti = max (length (operation_name) - INDENT)
273+ operation_name = simple_repr ( X. operation)
274+ anti = max (length (operation_name) - INDENT, 0 )
275275 print (stream, operation_name, " (" )
276276 n_args = length (X. args)
277277 if X. machine != = nothing
@@ -287,9 +287,9 @@ function _formula(stream, X::Node, depth, indent)
287287 _formula (stream, X. args[k],
288288 depth + 1 ,
289289 indent + length (operation_name) - anti )
290- k == n_args || print (stream, " ," )
290+ print (stream, " ," )
291291 end
292- print (stream, " )" )
292+ print (stream, crind (indent), " )" )
293293end
294294
295295function Base. show (io:: IO , :: MIME"text/plain" , X:: Node )
@@ -303,7 +303,7 @@ function Base.show(io::IO, ::MIME"text/plain", X::Node)
303303 _formula (io, X, 4 )
304304end
305305
306- # for displaying withing other objects:
306+ # for displaying within other objects:
307307function Base. show (stream:: IO , object:: Node )
308308 str = simple_repr (typeof (object)) * " $(handle (object)) "
309309 mach = object. machine
0 commit comments