A friendly syntax for strings literals that have backslashes and quotes.
Examples:
ACL2 !> #{"""Hello, World!"""} "Hello, World!" ACL2 !> #{"""<img src="hello.png"/>"""} "<img src=\"hello.png\"/>" ACL2 !> #{"""C:\ACL2\axioms.lisp"""} "C:\\ACL2\\axioms.lisp"
String literals in ACL2 and Common Lisp source code files are usually
written as text strings within quote marks. For instance, the 5-character
string whose contents are
Usually this syntax is fine, but things can get tricky when you want to
write a string whose contents include
<img src="hello.png"/>
then you would need to escape the quote marks within it using backslash characters, e.g., as follows:
"<img src=\"hello.png\"/>"
But using
C:\ACL2\axioms.lisp
Then we would need to write something a string literal such as:
"C:\\ACL2\\axioms.lisp"
In certain cases, such as when writing long documentation strings, the extra escaping can be tedious and error-prone.
To simplify this, ACL2 provides an alternate
In the rare case that you need to have the sequence