Since '$' is the introduction character for embedded code, it must be preceded by a backslash (\$) to be considered as part of the fixed text.
dollar := '\\$'