Re: eof and ws?

On Fri, 31 Dec 2021 at 12:27, Norm Tovey-Walsh <norm@saxonica.com> wrote:
>
> > Proposal. Any / all ws at the end of file should be ignored.
>
> What’s a file? Discuss.

Characters read from (careful) disk as apposed to from the command line?


>
> My API takes a string and matches that string against the grammar.
> That’s the only kind of input it can accept and, bug or feature, it has
> to have the whole string in memory.

line.stringTrim()?

>
> From the perspective of my API, there is no file, there is only a
> string. (Yes, obviously, I can read a file to get that string, but
> strictly speaking, that’s something that happens outside of the grammar
> matching.)

I think my main point (simple though it is) is that I can't 'see' the
ws at end of line, end of file?

regards

-- 
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.

Received on Friday, 31 December 2021 12:59:49 UTC