Syntax Error on line 1

Unknown error concerning the definition of subroutine postauto1.

Edit the Settings File for 2QRHLS Chess

For the sake of debugging, here is the full GAME Code program that this error occurred in. The lines have been properly indented to help you spot scope errors.

   0 alias M GU_y m GU_lb W _DT_WU w _DT_wu
   1 sub postauto1
   2   if equal moved R
   3     add RB dest
   4   endif
   5   if equal moved RB
   6     add R dest
   7   endif
   8   if equal moved r
   9     add rb dest
  10   endif
  11   if equal moved rb
  12     add r dest
  13   endif
  14   if equal moved p
  15     add x dest
  16   endif
  17   if equal moved x
  18     add p dest
  19   endif
  20   if equal moved P
  21     add X dest
  22   endif
  23   if equal moved X
  24     add P dest
  25   endif
  26   if equal moved b
  27     add gu dest
  28   endif
  29   if equal moved gu
  30     add b dest
  31   endif
  32   if equal moved B
  33     add GU dest
  34   endif
  35   if equal moved GU
  36     add B dest
  37   endif
  38   if equal moved N
  39     add .EW dest
  40   endif
  41   if equal moved .EW
  42     add N dest
  43   endif
  44   if equal moved n
  45     add .ew dest
  46   endif
  47   if equal moved .ew
  48     add n dest
  49   endif
  50   if equal moved K
  51     add _DT_WU dest
  52   endif
  53   if equal moved _DT_WU
  54     add K dest
  55   endif
  56   if equal moved k
  57     add _DT_wu dest
  58   endif
  59   if equal moved _DT_wu
  60     add k dest
  61   endif
  62   if equal moved Q
  63     add GU_y dest
  64   endif
  65   if equal moved GU_y
  66     add Q dest
  67   endif
  68   if equal moved q
  69     add GU_lb dest
  70   endif
  71   if equal moved GU_lb
  72     add q dest
  73   endsub
  74   end
  75   

functions

uservar

Array ( [0] => Array ( [main] => Array ( ) ) )

mline

Array ( [0] => MoveLine Object ( [movenum] => 0 [move] => [level] => 0 [comment] => [length] => 0 [newturn] => [turn] => 0 ) )

allmoves

Array ( )

movelist

constants

Array