2021-09-01 14:59:04 +00:00
|
|
|
=====================================
|
|
|
|
simple literal
|
|
|
|
=====================================
|
|
|
|
|
|
|
|
~s(content)
|
|
|
|
~r{content}
|
|
|
|
~w[content]
|
|
|
|
~a<content>
|
|
|
|
~b"content"
|
|
|
|
~c'content'
|
|
|
|
~d|content|
|
|
|
|
~e/content/
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
(source
|
2021-09-28 14:00:35 +00:00
|
|
|
(sigil (sigil_name) (quoted_content))
|
|
|
|
(sigil (sigil_name) (quoted_content))
|
|
|
|
(sigil (sigil_name) (quoted_content))
|
|
|
|
(sigil (sigil_name) (quoted_content))
|
|
|
|
(sigil (sigil_name) (quoted_content))
|
|
|
|
(sigil (sigil_name) (quoted_content))
|
|
|
|
(sigil (sigil_name) (quoted_content))
|
|
|
|
(sigil (sigil_name) (quoted_content)))
|
2021-09-01 14:59:04 +00:00
|
|
|
|
|
|
|
|
|
|
|
=====================================
|
|
|
|
multiple lines
|
|
|
|
=====================================
|
|
|
|
|
|
|
|
~s"line 1
|
|
|
|
line 2"
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
(source
|
|
|
|
(sigil
|
|
|
|
(sigil_name)
|
2021-09-28 14:00:35 +00:00
|
|
|
(quoted_content)))
|
2021-09-01 14:59:04 +00:00
|
|
|
|
|
|
|
=====================================
|
|
|
|
interpolation
|
|
|
|
=====================================
|
|
|
|
|
|
|
|
~s"hey #{name}!"
|
|
|
|
~r/hey #{
|
|
|
|
name
|
|
|
|
}!/
|
|
|
|
~w{##{name}#}
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
(source
|
|
|
|
(sigil
|
|
|
|
(sigil_name)
|
2021-09-28 14:00:35 +00:00
|
|
|
(quoted_content)
|
2021-09-01 14:59:04 +00:00
|
|
|
(interpolation
|
|
|
|
(identifier))
|
2021-09-28 14:00:35 +00:00
|
|
|
(quoted_content))
|
2021-09-01 14:59:04 +00:00
|
|
|
(sigil
|
|
|
|
(sigil_name)
|
2021-09-28 14:00:35 +00:00
|
|
|
(quoted_content)
|
2021-09-01 14:59:04 +00:00
|
|
|
(interpolation
|
|
|
|
(identifier))
|
2021-09-28 14:00:35 +00:00
|
|
|
(quoted_content))
|
2021-09-01 14:59:04 +00:00
|
|
|
(sigil
|
|
|
|
(sigil_name)
|
2021-09-28 14:00:35 +00:00
|
|
|
(quoted_content)
|
2021-09-01 14:59:04 +00:00
|
|
|
(interpolation
|
|
|
|
(identifier))
|
2021-09-28 14:00:35 +00:00
|
|
|
(quoted_content)))
|
2021-09-01 14:59:04 +00:00
|
|
|
|
|
|
|
=====================================
|
|
|
|
nested interpolation
|
|
|
|
=====================================
|
|
|
|
|
|
|
|
~s{this is #{~s{number #{1}}}!}
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
(source
|
|
|
|
(sigil
|
|
|
|
(sigil_name)
|
2021-09-28 14:00:35 +00:00
|
|
|
(quoted_content)
|
2021-09-01 14:59:04 +00:00
|
|
|
(interpolation
|
|
|
|
(sigil
|
|
|
|
(sigil_name)
|
2021-09-28 14:00:35 +00:00
|
|
|
(quoted_content)
|
2021-09-01 14:59:04 +00:00
|
|
|
(interpolation
|
2021-09-25 00:23:37 +00:00
|
|
|
(integer))))
|
2021-09-28 14:00:35 +00:00
|
|
|
(quoted_content)))
|
2021-09-01 14:59:04 +00:00
|
|
|
|
|
|
|
=====================================
|
|
|
|
escape sequence
|
|
|
|
=====================================
|
|
|
|
|
|
|
|
~s{_\}_\n_\t_\r_\e_\\_\1_\x3f_\u0065\u0301_}
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
(source
|
|
|
|
(sigil
|
|
|
|
(sigil_name)
|
2021-09-28 14:00:35 +00:00
|
|
|
(quoted_content)
|
2021-09-01 14:59:04 +00:00
|
|
|
(escape_sequence)
|
2021-09-28 14:00:35 +00:00
|
|
|
(quoted_content)
|
2021-09-01 14:59:04 +00:00
|
|
|
(escape_sequence)
|
2021-09-28 14:00:35 +00:00
|
|
|
(quoted_content)
|
2021-09-01 14:59:04 +00:00
|
|
|
(escape_sequence)
|
2021-09-28 14:00:35 +00:00
|
|
|
(quoted_content)
|
2021-09-01 14:59:04 +00:00
|
|
|
(escape_sequence)
|
2021-09-28 14:00:35 +00:00
|
|
|
(quoted_content)
|
2021-09-01 14:59:04 +00:00
|
|
|
(escape_sequence)
|
2021-09-28 14:00:35 +00:00
|
|
|
(quoted_content)
|
2021-09-01 14:59:04 +00:00
|
|
|
(escape_sequence)
|
2021-09-28 14:00:35 +00:00
|
|
|
(quoted_content)
|
2021-09-01 14:59:04 +00:00
|
|
|
(escape_sequence)
|
2021-09-28 14:00:35 +00:00
|
|
|
(quoted_content)
|
2021-09-01 14:59:04 +00:00
|
|
|
(escape_sequence)
|
2021-09-28 14:00:35 +00:00
|
|
|
(quoted_content)
|
2021-09-01 14:59:04 +00:00
|
|
|
(escape_sequence)
|
|
|
|
(escape_sequence)
|
2021-09-28 14:00:35 +00:00
|
|
|
(quoted_content)))
|
2021-09-01 14:59:04 +00:00
|
|
|
|
|
|
|
=====================================
|
|
|
|
escaped interpolation
|
|
|
|
=====================================
|
|
|
|
|
2021-09-25 00:23:37 +00:00
|
|
|
~s/\#{1}/
|
2021-09-01 14:59:04 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
(source
|
|
|
|
(sigil
|
|
|
|
(sigil_name)
|
|
|
|
(escape_sequence)
|
2021-09-28 14:00:35 +00:00
|
|
|
(quoted_content)))
|
2021-09-01 14:59:04 +00:00
|
|
|
|
|
|
|
=====================================
|
|
|
|
upper sigil / no interpolation
|
|
|
|
=====================================
|
|
|
|
|
|
|
|
~S"hey #{name}!"
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
(source
|
|
|
|
(sigil
|
|
|
|
(sigil_name)
|
2021-09-28 14:00:35 +00:00
|
|
|
(quoted_content)))
|
2021-09-01 14:59:04 +00:00
|
|
|
|
|
|
|
=====================================
|
|
|
|
upper sigil / no escape sequence
|
|
|
|
=====================================
|
|
|
|
|
|
|
|
~S"\n"
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
(source
|
|
|
|
(sigil
|
|
|
|
(sigil_name)
|
2021-09-28 14:00:35 +00:00
|
|
|
(quoted_content)))
|
2021-09-01 14:59:04 +00:00
|
|
|
|
|
|
|
=====================================
|
|
|
|
upper sigil / escape terminator
|
|
|
|
=====================================
|
|
|
|
|
|
|
|
~S"content \" content"
|
|
|
|
~S{content \} content}
|
|
|
|
~S/content \/ content/
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
(source
|
|
|
|
(sigil
|
|
|
|
(sigil_name)
|
2021-09-28 14:00:35 +00:00
|
|
|
(quoted_content)
|
2021-09-01 14:59:04 +00:00
|
|
|
(escape_sequence)
|
2021-09-28 14:00:35 +00:00
|
|
|
(quoted_content))
|
2021-09-01 14:59:04 +00:00
|
|
|
(sigil
|
|
|
|
(sigil_name)
|
2021-09-28 14:00:35 +00:00
|
|
|
(quoted_content)
|
2021-09-01 14:59:04 +00:00
|
|
|
(escape_sequence)
|
2021-09-28 14:00:35 +00:00
|
|
|
(quoted_content))
|
2021-09-01 14:59:04 +00:00
|
|
|
(sigil
|
|
|
|
(sigil_name)
|
2021-09-28 14:00:35 +00:00
|
|
|
(quoted_content)
|
2021-09-01 14:59:04 +00:00
|
|
|
(escape_sequence)
|
2021-09-28 14:00:35 +00:00
|
|
|
(quoted_content)))
|
2021-09-01 14:59:04 +00:00
|
|
|
|
|
|
|
=====================================
|
|
|
|
heredoc delimiter
|
|
|
|
=====================================
|
|
|
|
|
|
|
|
~s"""
|
|
|
|
text
|
|
|
|
with "quotes"
|
|
|
|
"""
|
|
|
|
|
|
|
|
~s'''
|
|
|
|
text
|
|
|
|
with 'quotes'
|
|
|
|
'''
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
(source
|
|
|
|
(sigil
|
|
|
|
(sigil_name)
|
2021-09-28 14:00:35 +00:00
|
|
|
(quoted_content))
|
2021-09-01 14:59:04 +00:00
|
|
|
(sigil
|
|
|
|
(sigil_name)
|
2021-09-28 14:00:35 +00:00
|
|
|
(quoted_content)))
|
2021-09-01 14:59:04 +00:00
|
|
|
|
|
|
|
=====================================
|
|
|
|
modifiers
|
|
|
|
=====================================
|
|
|
|
|
|
|
|
~r/left|right/i
|
|
|
|
~r/left|right/iUx
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
(source
|
|
|
|
(sigil
|
|
|
|
(sigil_name)
|
2021-09-28 14:00:35 +00:00
|
|
|
(quoted_content)
|
2021-09-01 14:59:04 +00:00
|
|
|
(sigil_modifiers))
|
|
|
|
(sigil
|
|
|
|
(sigil_name)
|
2021-09-28 14:00:35 +00:00
|
|
|
(quoted_content)
|
2021-09-01 14:59:04 +00:00
|
|
|
(sigil_modifiers)))
|
|
|
|
|
|
|
|
=====================================
|
|
|
|
[error] accepts only a single character
|
|
|
|
=====================================
|
|
|
|
|
|
|
|
~mysigil"content"
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
(source
|
2021-09-25 00:23:37 +00:00
|
|
|
(sigil
|
|
|
|
(sigil_name)
|
|
|
|
(ERROR)
|
2021-09-28 14:00:35 +00:00
|
|
|
(quoted_content)))
|