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 |
=={{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 '''$SUDOKU.REX''' program. |
The following text file is the documentation (HELp) for the '''$SUDOKU.REX''' program. |
||
Line 1,153: | Line 1,153: | ||
</pre> |
</pre> |
||
=== REXX Version 1 |
=== REXX Version 1 $ERROR.REX === |
||
The '''$ERR.REX''' (REXX) program is used to issue various formatted error messages from other REXX programs. |
The '''$ERR.REX''' (REXX) program is used to issue various formatted error messages from other REXX programs. |
||
<br><br>The '''$ERR.REX''' program makes use of the '''$T.REX''' program to issue the error messages in red (if available). |
<br><br>The '''$ERR.REX''' program makes use of the '''$T.REX''' 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 |
=== REXX Version 1 $T.REX === |
||
This is the '''$T.REX''' (REXX) program which is used by other REXX programs to display error or informational message(s), |
This is the '''$T.REX''' (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 |
=== REXX CHANGESTR.REX === |
||
This version of the '''changestr''' BIF has more functionality than the standard BIF. |
This version of the '''changestr''' 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]] |
||