TECH: scheme compiler (was Re: *mumble* *grumble* sound changes *mutter*)
|From:||Philip Newton <philip.newton@...>|
|Date:||Friday, April 28, 2006, 15:50|
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?
Is this a feature -- letting you use Perl regular expression
metacharacters if you know them -- or a bug? I would have thought that
the source file would use its own language, and either quotemeta() the
input or -- equivalently -- wrap it in /\Q ... \E/ so that regex
metacharacters are escaped for you.
Philip Newton <philip.newton@...>