unable to delimit strings - Maple Help

Home : Support : Online Help : System : Error Message Guide : unable to delimit strings

Error, unable to delimit strings/identifiers

 Description A string is a sequence of characters that are enclosed within a pair of double quote characters (" "). The opening double quote determines the start of the string and the closing double quote determines the end of the string.   A name can be formed by enclosing any sequence of characters in a pair of left single quotes ( ).  The opening single quote determines the start of the name and the closing single quote determines the end of the name.   This error occurs when the double quotes associated with a string (or, similarly, the left single quotes associated with a name) are unclosed (for example, an opening or closing double quote is missing), or an extra double quote is inserted around the string (or an extra single quote is inserted around the name).

Examples

Example 1
In this example, two double quotes are at the end of the string, leading to an imbalance of double quotes.

 > $"a string""$
 

Solution:

Remove the extra double quotes at the end of the string so that the number of double quotes at the beginning of the string equals the number of double quotes at the end of the string.

 > $"a string"$
 ${"a string"}$ (2.1)

Alternately, if you want to display the extra double quotes in the string, you can enter a backslash (\) before the double quotes to escape them.

 > $"a string\""$
 ${"a string""}$ (2.2)

Example 2

This error can also occur when left single quotes () are used to define a name.

 >
 

Solution:

In the example above, the solution is to remove the extra left single quote.

 > $\mathrm{an identifier`}$
 ${\mathrm{an identifier}}$ (2.3)