Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - 4000 syntax error http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 4000                Syntax error
------------------------------------------------------------------------------
 Description
   This error occurs when the syntax used in the source code does not match
   the correct language syntax. Deviations from the correct calling syntax
   of a command frequently results in this error, like in:

   menu to             // the variable receiving the selection is missing
   set date "american" // the american specifier must not be a string literal

   In addition, this error message will also occur in any situation
   where the compiler is confused by what are essentially duplicate
   symbols, as in:

   #include screen.hdr
   #include color.hdr

   proc ShowBox
   vardef
      char( 8 ) box[ 6 ]        // a variable named box
      char( 8 ) cBoxBorder
   enddef
   box[ 0 ] := "+-+|+-+|"
   box[ 1 ] := "+-+|+-+|"
   box[ 2 ] := "+-+|+-+|"
   box[ 3 ] := "+-+|+-+|"
   box[ 4 ] := "########"
   box[ 5 ] := "########"
   cBoxBorder := box[ 3 ]
   box( 5, 10, 20, 60, cBoxBorder, __color_std ) // calling function box()
   endproc

   In this example, the compiler will produce the error message on the
   line where the box() function is called, as it has already assigned the
   symbol box to a variable as an array, and thus assumes that the
   correct function call is an incorrect syntax.

 Solution
   Use the correct syntax for commands and other elements of the language.

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson