[fpc-devel] Some thoughts on multi-line string support, and a possible syntax that I think is perfectly clean and Pascal-ish.
Ben Grasset
operator97 at gmail.com
Fri Jul 5 22:46:28 CEST 2019
On Fri, Jul 5, 2019 at 4:39 PM Ben Grasset <operator97 at gmail.com> wrote:
> I'll have to look at this later today when I have more free time. I did
> however test a variety of things (both typed and untyped constants and
> variables, and also literals in function calls, and had no issues.)
>
> Note again that {$modeswitch multilinestrings} does not exist yet, though.
> Try putting your directives after "program", not before, also.
>
Also, in general, my implementation as it stands is entirely unrelated to
any part of the compiler that cares about the overall "langauge modes". It
is implemented entirely in the scanner, and simply builds upon the existing
string-reading code.
Even the in-progress {$modeswitch} isn't really going to be heavily
concerned with anything other than whether it specifically is on or off,
because it doesn't need to be.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20190705/5b93d023/attachment.html>
More information about the fpc-devel
mailing list