mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-12-07 20:08:48 +00:00
additional samples and fixed extensions list
This commit is contained in:
16
samples/Clarion/Utility.tpw
Normal file
16
samples/Clarion/Utility.tpw
Normal file
@@ -0,0 +1,16 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user