'Single Quote'
Less than 1 minuteOperators And TokensConstants
'Single Quote'
Initiates or terminates a string (variables not expanded)
Description
Single quote is used to initiate and terminate strict strings where variables cannot be expanded.
Commands can also be quoted using single quotes (eg where a command might contain a space character in it's name)
Examples
» set example='World!'
» out 'Hello $example'
Hello $example
Detail
Quotes can also work over multiple lines
» out 'foo
» bar'
foo
bar
See Also
- Define Variable (
set
): Define a variable (typically local) and set it's value - Output String (
out
): Print a string to the stdout with a trailing new line character "Double Quote"
: Initiates or terminates a string (variables expanded)%(Brace Quote)
: Initiates or terminates a string (variables expanded)(brace quote)
: Write a string to the stdout without new line (deprecated)@Array
Sigil: Expand values as an arraystring
(stringing): string (primitive){ Curly Brace }
: Initiates or terminates a code block~
Home Sigil: Home directory path variable
This document was generated from gen/parser/quotes_doc.yaml.