Scarlet Line home page Scarlet Line - SOFTWARE DESIGN & DEVELOPMENT

[Home]->[Documentation]->[Syntac Universal Parser]->[Other Grammars]->[Extended Backus-Naur form (EBNF)]->[Symbols]->[escaped_character]

Expand All
Collapse All
Contents

ebnf::escaped_character Locate in Contents

Declaration Locate in Contents

escaped_character[long & _value] ::= { _value = 0;/* }*/
        'a'    {    _value = 0x07;/* } *//* BEL alert */
    |    'b'    {    _value = 0x08;/* } *//* BS backspace */
    |    't'    {    _value = 0x09;/* } *//* HT horizontal tab */
    |    'n'    {    _value = 0x0A;/* } *//* NL, LF newline */
    |    'v'    {    _value = 0x0B;/* } *//* VT vertical tab */
    |    'f'    {    _value = 0x0C;/* } *//* FF form feed */
    |    'r'    {    _value = 0x0D;/* } *//* CR carriage return */
    |    'z'    {    _value = -1;/* } *//* EOF end of file */
    |    hex_character[_value]
    |    oct_character[_value]
    |    dec_character[_value]
    |    unicode_character[_value]
    |    punct {    _value = (unsigned char)($0[0]);/* }*/
    |    ' '    {    _value = 0x20;/* }*/

Composition Locate in Contents

regexp_elem_char_first escaped_character Alternation Node regexp_elem_char regexp_range_char regexp_range_char_first_oneof regexp_range_char_first_not_oneof quoted_char 'a' 'b' 't' 'n' 'v' 'f' 'r' 'z' hex_character oct_character dec_character unicode_character punct<std::string> ' '

State Machine Locate in Contents

start:869:$0 final:870:$0 hex_character|{871|$9|872} oct_character|{879|$10|880} dec_character|{883|$11|884} unicode_character|{887|$12|888} punct<std::string>|{891|$13|892}