[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: TextRider.ReadString not require quotes



Ian Rae wrote:

> Amazingly one could not easily do this with TextRider!
> Either one had to wrap the module names in quotes or
> do ReadChar (!) or ReadIdent (doesn't work if module starts
> with a digit!).
>

ReadIdent should do the job for all legal module names.

You might also check out the less well known Scanner
methods which allow you to read a file as a set of parsed
tokens.  I have successfully implemented file readers
based on Scanner.  It has several flags that allow tailoring
of things like whether quotes are recognized, set braces,
and boolean key words.

Michael G.