Source

pyyaml-legacy / experimental / bnfyaml / yamltest.bnf

c_printable ::= ( [\x09] /
                  [\x0A] /
                  [\x0D] /
             [\x20-\x7E] /
                  [\x85] /
           [\xA0-\xD7FF] /
         [\xE000-\xFFFD] /
      [\x10000-\x10FFFF] )
c_byte_order_mark ::= [\xFEFF]
c_sequence_start ::= "["
c_sequence_end ::= "]"
c_mapping_start ::= "{"
c_mapping_end ::= "}"
c_sequence_entry ::= "-"
c_mapping_entry ::= ":"
c_collect_entry ::= ","
c_complex_key ::= "?"
c_tag ::= "!"
c_anchor ::= "&"
c_alias ::= "*"
c_literal ::= "|"
c_folded ::= ">"
c_single_quote ::= "'"
c_double_quote ::= '"'
c_throwaway ::= "#"
c_directive ::= "%"
c_reserved ::= ( "@" / "`" )
c_indicators ::= [][!{}-:?,*&|>'"#%@`]

b_line_feed ::= [\x0A]                                                     
b_carriage_return ::= [\x0D]                                               
b_next_line ::= [\x85]                                                    
b_line_separator ::= [\x2028]
b_paragraph_separator ::= [\x2029]                                        
b_char ::=    ( b_line_feed /
          b_carriage_return /
                b_next_line /
           b_line_separator /
      b_paragraph_separator )
b_generic ::= ( (b_carriage_return, b_line_feed) /
                               b_carriage_return /
                                     b_line_feed /
                                     b_next_line )                                           
b_specific ::= ( b_line_separator /
               b_paragraph_separator )                                   
b_any ::= ( b_generic / b_specific )


nb_char ::= c_printable, -b_char                                        
s_char ::= ( [\x09] / [\x20] )
ns_char ::= nb_char, -s_char                                            
ns_ascii_letter ::= ( [\x41-\x5A] / [\x61-\x7A] )
ns_decimal_digit ::= [\x30-\x39]  
ns_hex_digit ::= ( ns_decimal_digit / [\x41-\x46] / [\x61-\x66] )
ns_word_char ::= ( ns_decimal_digit / ns_ascii_letter / "-" )