This is the mail archive of the
cgen@sources.redhat.com
mailing list for the CGEN project.
Re: escaping in syntax strings
>>>>> "Frank" == Frank Ch Eigler <fche@redhat.com> writes:
Frank> : If a `$' is required in the syntax, it is specified with `$'.
Frank> This is a rendering problem with the docs. The texinfo file says "\$".
Actually, that was a problem with my transcribing of the docs to
email. I accidentally removed the backslash. Oops. Now:
Frank> : Is it a bug that I had to use "... \\$" in my cpu description?
Frank> Try plain "\$".
I did. It reached the relevant routine as merely `$'. It looks like
an earlier stage of processing stripped that level of escaping. I
definitely needed two \\'s to make it work.
Ben