From: Jeff H. <Je...@Je...> - 2023-04-01 20:12:20
|
<html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body> <p>I have just pushed a HELP stage (and AHELP) for Pipeline stages.</p> <p>This works to display, via SAY, the diagram and notes (more info for NetRexx-only stages) if it is the last stage in a pipe, or pass those lines on to the next stage.</p> <p>For example:</p> <div style="display:inline-block;white-space:pre;background-color:#012456;font-family:'Cascadia Code',monospace;font-size:10pt;padding:4px;"><span style="color:#D3D7CF;background-color:#012456;">PS C:\Users\Jeff\Documents\nr\netrexx-code> </span><span style="color:#FCE94F;background-color:#012456;">pipe </span><span style="color:#06989A;background-color:#012456;">"help literal" </span><span style="color:#D3D7CF;background-color:#012456;">/** literal -- Write the Argument String +-{-object-name-}-+ >>---LITERAL---+--------+--------+---->< +-string-+ Note: njPipes does not preserve trailing spaces on string. CMS does. */</span></div> <p></p> <div style="display:inline-block;white-space:pre;background-color:#012456;font-family:'Cascadia Code',monospace;font-size:10pt;padding:4px;"><span style="color:#D3D7CF;background-color:#012456;">PS C:\Users\Jeff\Documents\nr\netrexx-code> </span><span style="color:#FCE94F;background-color:#012456;">pipe </span><span style="color:#06989A;background-color:#012456;">"help literal | reverse | cons" </span><span style="color:#D3D7CF;background-color:#012456;">gnirtS tnemugrA eht etirW -- laretil **/ +-}-eman-tcejbo-{-+ <>----+--------+--------+---LARETIL--->> +-gnirts-+ .seod SMC .gnirts no secaps gniliart evreserp ton seod sepiPjn :etoN /*</span></div> <p></p> <p>The information to be displayed is in the stage's source file as:</p> <blockquote> <p><br> <font face="Cascadia Code">Method givehelp() static<br> return -<br> "/** literal -- Write the Argument String\n" -<br> "\n" -<br> " +-{-object-name-}-+\n" -<br> " >>---LITERAL---+--------+--------+----><\n" -<br> " +-string-+\n" -<br> "\n" -<br> " Note: njPipes does not preserve trailing spaces on string. CMS does.\n" -<br> "*/\n" </font> <br> </p> </blockquote> <p> Jeff Hennick <br> </p> </body> </html> |