Files
linguist/samples/Clarion/Utility.tpw
2014-11-26 14:51:47 +01:00

17 lines
626 B
Plaintext

#UTILITY(ProcCallTree, 'Output procedure call tree')
#CREATE(%Application & '.TRE')
Procedure Call Tree: for %Application
#INSERT(%DisplayTree, %FirstProcedure, '', ' ')
#CLOSE
#!***********************************************************
#GROUP(%DisplayTree, %ThisProc, %Level, %NextIndent)
#FIX(%Procedure, %ThisProc)
%Level+-%ThisProc (%ProcedureTemplate)
#FOR(%ProcedureCalled)
#IF(INSTANCE(%ProcedureCalled) = ITEMS(%ProcedureCalled))
#INSERT(%DisplayTree, %ProcedureCalled, %Level & %NextIndent, ' ')
#ELSE
#INSERT(%DisplayTree, %ProcedureCalled, %Level & %NextIndent, '| ')
#ENDIF
#ENDFOR