Sudoku/REXX: Difference between revisions

Content added Content deleted
m (→‎REXX: Version 1: replaced COMMA subroutine with a simpler COMMAS subroutine.)
(fixed some HTML headers.)
Line 1: Line 1:
{{collection|Sudoku}}
{{collection|Sudoku}}


==REXX: Version 1==
=={{header|REXX}}==
===REXX: Version 1===
This is the   '''$SUDOKU.REX'''   (REXX) program and is used to solve the Rosetta Code task of "sudoku".
This is the   '''$SUDOKU.REX'''   (REXX) program and is used to solve the Rosetta Code task of "sudoku".
<br><br>This REXX program was originally written to assist in sudoku puzzle solving (by giving strong hints), and not to solve the puzzle outright.
<br><br>This REXX program was originally written to assist in sudoku puzzle solving (by giving strong hints), and not to solve the puzzle outright.
Line 937: Line 938:


===REXX Version 1 Help===
===REXX Version 1 Help===

The following text file is the documentation (HELp) for the &nbsp; '''$SUDOKU.REX''' &nbsp; program.
The following text file is the documentation (HELp) for the &nbsp; '''$SUDOKU.REX''' &nbsp; program.


Line 1,153: Line 1,153:
</pre>
</pre>


=== REXX Version 1 Errors ===
=== REXX Version 1 $ERROR.REX ===
The &nbsp; '''$ERR.REX''' &nbsp; (REXX) program is used to issue various formatted error messages from other REXX programs.
The &nbsp; '''$ERR.REX''' &nbsp; (REXX) program is used to issue various formatted error messages from other REXX programs.
<br><br>The &nbsp; '''$ERR.REX''' &nbsp; program makes use of the &nbsp; '''$T.REX''' &nbsp; program to issue the error messages in red (if available).
<br><br>The &nbsp; '''$ERR.REX''' &nbsp; program makes use of the &nbsp; '''$T.REX''' &nbsp; program to issue the error messages in red (if available).
Line 1,537: Line 1,537:
syntax: !sigl=sigl; call er 13,!fid(2) !fid(3) !sigl !cal() condition('D') sourceline(!sigl)</lang>
syntax: !sigl=sigl; call er 13,!fid(2) !fid(3) !sigl !cal() condition('D') sourceline(!sigl)</lang>


=== REXX Version 1 Messages ===
=== REXX Version 1 $T.REX ===
This is the &nbsp; '''$T.REX''' &nbsp; (REXX) program which is used by other REXX programs to display error or informational message(s),
This is the &nbsp; '''$T.REX''' &nbsp; (REXX) program which is used by other REXX programs to display error or informational message(s),
<br>some of the options follow):
<br>some of the options follow):
Line 2,456: Line 2,456:
</lang>
</lang>


=== REXX CHANGESTR function ===
=== REXX CHANGESTR.REX ===
This version of the &nbsp; '''changestr''' &nbsp; BIF has more functionality than the standard BIF.
This version of the &nbsp; '''changestr''' &nbsp; BIF has more functionality than the standard BIF.


Line 2,511: Line 2,511:
return f || $ || h /* support three options. */</lang>
return f || $ || h /* support three options. */</lang>


==REXX: Version 2==
===REXX: Version 2 ===
'''Translation of''' [[Sudoku#PL/I]]
'''Translation of''' [[Sudoku#PL/I]]