Module: ABNF::Parser::Common

Defined in:
lib/abnf/parser/common.rb

Class Method Summary collapse

Class Method Details

.to_sObject



4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# File 'lib/abnf/parser/common.rb', line 4

def self.to_s
  "ALPHA          =  %x41-5A / %x61-7A   ; A-Z / a-z\\r\n\\r\nBIT            =  \"0\" / \"1\"\\r\n\\r\nCHAR           =  %x01-7F\\r\n                 ; any 7-bit US-ASCII character,\\r\n                 ;  excluding NUL\\r\n\\r\nCR             =  %x0D\\r\n                 ; carriage return\\r\n\\r\nCRLF           =  CR LF\\r\n                 ; Internet standard newline\\r\n\\r\nCTL            =  %x00-1F / %x7F\\r\n                 ; controls\\r\n\\r\nDIGIT          =  %x30-39\\r\n                 ; 0-9\\r\n\\r\nDQUOTE         =  %x22\\r\n                 ; \" (Double Quote)\\r\n\\r\nHEXDIG         =  DIGIT / \"A\" / \"B\" / \"C\" / \"D\" / \"E\" / \"F\"\\r\n\\r\nHTAB           =  %x09\\r\n                 ; horizontal tab\\r\n\\r\nLF             =  %x0A\\r\n                 ; linefeed\\r\n\\r\nLWSP           =  *(WSP / CRLF WSP)\\r\n                 ; Use of this linear-white-space rule\\r\n                 ;  permits lines containing only white\\r\n                 ;  space that are no longer legal in\\r\n                 ;  mail headers and have caused\\r\n                 ;  interoperability problems in other\\r\n                 ;  contexts.\\r\n                 ; Do not use when defining mail\\r\n                 ;  headers and use with caution in\\r\n                 ;  other contexts.\\r\n\\r\nOCTET          =  %x00-FF\\r\n                 ; 8 bits of data\\r\n\\r\nSP             =  %x20\\r\n\\r\nVCHAR          =  %x21-7E\\r\n                 ; visible (printing) characters\\r\n\\r\nWSP            =  SP / HTAB\\r\n                 ; white space\\r\n\\r\n  ABNF\nend\n"