[][src]Module abnf::core

Parsing of ABNF Core Rules

See https://tools.ietf.org/html/rfc5234#appendix-B.1

Functions

ALPHA

ALPHA = %x41-5A / %x61-7A ; A-Z / a-z

BIT

BIT = "0" / "1"

CHAR

CHAR = %x01-7F ; any 7-bit US-ASCII character, excluding NUL

CR

CR = %x0D ; carriage return

CRLF

CRLF = CR LF ; Internet standard newline

CTL

CTL = %x00-1F / %x7F ; controls

DIGIT

DIGIT = %x30-39 ; 0-9

DQUOTE

DQUOTE = %x22 ; " (Double Quote)

HEXDIG

HEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F"

HTAB

HTAB = %x09 ; horizontal tab

LF

LF = %x0A ; linefeed

LWSP

LWSP = *(WSP / CRLF WSP) ; Use of this linear-white-space rule ; permits lines containing only white ; space that are no longer legal in ; mail headers and have caused ; interoperability problems in other ; contexts. ; Do not use when defining mail ; headers and use with caution in ; other contexts.

OCTET

OCTET = %x00-FF ; 8 bits of data

SP

SP = %x20

VCHAR

VCHAR = %x21-7E ; visible (printing) characters

WSP

WSP = SP / HTAB ; white space

is_ALPHA
is_CHAR
is_CTL
is_DIGIT
is_HEXDIG
is_VCHAR
is_WSP