Theiling Online    Sitemap    Conlang Mailing List HQ   

Re: TECH: scheme compiler (was Re: *mumble* *grumble* sound changes *mutter*)

From:Henrik Theiling <theiling@...>
Date:Friday, April 28, 2006, 16:10

Philip Newton <philip.newton@...> writes:
> On 4/28/06, Benct Philip Jonsson <bpj@...> wrote: > > Add to that that ^ and @ have to be escaped > > as \^ and \@, so you get r\^\@, and r\^\@: for the long! > > Is this because text is interpolated directly into a Perl regular > expression?
It is because of a combination of simple search for special chars like _ plus a simple translation to Perl expressions.
> Is this a feature -- letting you use Perl regular expression > metacharacters if you know them -- or a bug? ...
Letting you use Perl regexps is definitely a feature. But whether it is a bug that there is no way to escape some special chars -- well -- that question is yet to be decided. :-P **Henrik