Reader Syntax Entry: String Literal
← Prev | ↑ Chapter | Next → | Index | Symbols
Reader Syntax Entry: String Literal
Name
String Literal
Class
Reader Syntax
Concrete Syntax
string ::= "\"" string-char* "\""
Constituents
- opening double quote
- zero or more string characters
- closing double quote
Description
A string literal denotes a string object.
Acceptance Rules
- a string is delimited by double quotes
- backslash introduces escape/control sequences
Strict/Lax Policy
- strict: accept only documented or tested escapes
- lax: accept additional escapes only when they do not conflict with documented behavior and compatibility requires them
Examples
"abc""A string with spaces"
Compatibility
- string interpretation changed materially with Autodesk Unicode/LISPSYS changes beginning in 2021
- BricsCAD also documents Unicode-aware file text handling
Notes
The complete escape repertoire remains under-specified in the current source corpus.
Availability
- AutoCAD 2026: documented (per Autodesk reference page).
- BricsCAD V26: presumed compatible (no contradicting page found).
- Status: AutoCAD documented; BricsCAD presumed-both pending Phase 4 verification.
Source Notes
- [About Strings (AutoLISP)](https://help.autodesk.com/cloudhelp/2024/ESP/AutoCAD-AutoLISP/files/GUID-D7C33A49-9715-4E9B-9D8A-4C2E7BFC0FE5.htm)
- [LISPSYS](https://help.autodesk.com/cloudhelp/2026/ENU/AutoCAD-Core/files/GUID-1853092D-6E6D-4A06-8956-AD2C3DF203A3.htm)
- [read + write text files (BricsCAD)](https://developer.bricsys.com/bricscad/help/en_US/V25/DevRef/source/readwritetextfiles.htm)
- Status: documented in principle, incomplete in detail.