Simple-escape
Fixtype of simple escape sequences [C:6.4.4.4] [C:A.1.5].
This is a tagged union type, introduced by fty::deftagsum.
Member Tags → Types
- :squote → simple-escape-squote
- :dquote → simple-escape-dquote
- :qmark → simple-escape-qmark
- :bslash → simple-escape-bslash
- :a → simple-escape-a
- :b → simple-escape-b
- :f → simple-escape-f
- :n → simple-escape-n
- :r → simple-escape-r
- :t → simple-escape-t
- :v → simple-escape-v
- :percent → simple-escape-percent
This corresponds to simple-escape-sequence in the grammar in [C].
A simple escape sequence consists of
a backslash (implicit in this fixtype definition)
followed by another character (indicated by the fixtype constructor):
\',
\",
\?,
\\,
\a,
\b,
\f,
\n,
\r,
\t, and
\v.
We also include the \% GCC extension (see our ABNF grammar).
Subtopics
- Simple-escape-fix
- Fixing function for simple-escape structures.
- Simple-escape-case
- Case macro for the different kinds of simple-escape structures.
- Simple-escape-equiv
- Basic equivalence relation for simple-escape structures.
- Simple-escapep
- Recognizer for simple-escape structures.
- Simple-escape-kind
- Get the kind (tag) of a simple-escape structure.
- Simple-escape-v
- Simple-escape-t
- Simple-escape-squote
- Simple-escape-r
- Simple-escape-qmark
- Simple-escape-percent
- Simple-escape-n
- Simple-escape-f
- Simple-escape-dquote
- Simple-escape-bslash
- Simple-escape-b
- Simple-escape-a