Post Reply 
[SOLVED] 50g Invalid Syntax error receiving ASCII file
06-23-2014, 03:34 PM (This post was last modified: 06-23-2014 08:29 PM by DavidM.)
Post: #8
RE: [SOLVED] 50g Invalid Syntax error receiving ASCII file
(06-23-2014 06:40 AM)HP67 Wrote:  Perhaps the system objected to compiling a command that already exists in an attached library.

You've hit the nail on the head. Here's another way of looking at what's happening.

The syntax for a valid directory object is as follows:
<id> <object definition>
<id> <object definition>

Put the following string on the stack:
"DIR MOD 12345 END"

That string is an attempt to build a directory object with a single item -- a number (12345) with the name of "MOD".

Now execute OBJ\->. You should see an error message indicating a Syntax Error, because when "MOD" is encountered by the system compiler, it is recognized as a command instead of a valid ID.

If you change MOD to some other string that isn't already defined, the OBJ/-> command will correctly convert that string to an ID and leave this on the stack:
1: DIR
   <whatever> 12345

...where <whatever> is the name you chose.

I believe it's the internal compilation step of restoring your directories that is generating the error in your situation. When the compiler encounters the strings in the ID position of your directory objects, they are translated into library command references instead of IDs. This happens as a natural consequence of their existence in a previously-installed library. A library command reference is not a valid ID, hence the syntax error.
Find all posts by this user
Quote this message in a reply
Post Reply 

Messages In This Thread
RE: [SOLVED] 50g Invalid Syntax error receiving ASCII file - DavidM - 06-23-2014 03:34 PM

User(s) browsing this thread: 1 Guest(s)