PREV INDEX NEXT

Author: Stan Eisenstat
Subject: Re: [Cs323] local vs text
Date: Thursday, 01 Oct 2020, 13:33:09


    > Message Posted By: Anonymous
    >
    > The input "a=" seems to produce null commands. Why are these not treated
    > as valid text tokens?

As stated in the specification,

  Aside: The grammar is ambiguous in the sense that in the input
    % A=B
  parsley could treat the TEXT token A=B as an argument in a valid command or
  as a local in an invalid one.  Similarly, for the input
    % A=B C=D E
  it could treat A=B and C=D as locals, or treat A=B as a local and C=D as an
  argument, or treat A=B and C=D as arguments; all of which result in valid
  commands.  To resolve the ambiguity we will assume that a TEXT token of the
  form NAME=VALUE is always treated as a [local] if it can be.

--Stan-
PREV INDEX NEXT