Author: Stan Eisenstat
Subject: Re: [Cs323] Space after #
Date: Tuesday, 29 Sep 2020, 17:38:08
> Message Posted By: Unknown
>
> According to the solution, when we have "A # text", the part of # is
> treated as a comment. But specification says that if a text token begins
> immediately after "#", then it is a comment. So the whitespace between #
> and text should not be considered?
As stated in the specification (and is easily confirmed
by running Hwk2/parsley),
[Comments] If a # would begin a TEXT token, IT AND THE REMAINDER OF THE
LINE (including any trailing \'s) ARE IGNORED; ...
(emphasis added).
--Stan-
PREV
INDEX
NEXT