On Sun, Sep 21, 2003 at 06:25:04PM +0200, Mirar @ Pike developers forum wrote:
#` is nice. But is there any better character that is even less common? Or, I think I'd like the final to be a tupel too, since that's easier to avoid.
Well... Tuple is also good enough, so why not #``...``? This way we can avoid quoting almost everywhere. Also, string with this syntax might be made multiline by default, i.e. those may contain newlines etc. Only problem that I see with backquotes is that (for instance) on German keyboard layout I've to press it twice to get one (same applies to Swiss and Austria I guess) :)
How about #`...`#? But it kind of looks ugly...
There is an option for #<...#> for instance, it might be made nested to simplify processing for Pike programs which generate Pike programs.
string s2 = #multiline __DELIM ... __DELIM;
Looks good for me. Very good, I'd say :)
(note the semicolon; it must be there to complete the sentence.)
This is reasonable.
How easy is that to implement in the parser?
I don't see any problems with parser, concerning this syntax. A bit of work, but nothing significant. Any parser gurus here? :)
Regards, /Al