ex_abnf v0.2.8 ABNF.Core

Core rules found in the Apendix B of the ABNF RFC.

Copyright 2015 Marcelo Gornstein <marcelog@gmail.com>

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Summary

Functions

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

BIT = “0” / “1”

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

CR = %x0D ; carriage return

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

DIGIT = %x30-39; 0-9

DQUOTE = %x22 ; “ (Double Quote)

HEXDIG = DIGIT / “A” / “B” / “C” / “D” / “E” / “F”

HTAB = %x09 ; horizontal tab

LF = %x0A ; linefeed

OCTET = %x00-FF ; 8 bits of data

SP = %x20

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

WSP = SP / HTAB ; white space

Functions

alpha?(char)

Specs

alpha?(char) :: boolean

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

bit?(char)

Specs

bit?(char) :: boolean

BIT = “0” / “1”

char?(char)

Specs

char?(char) :: boolean

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

cr?(char)

Specs

cr?(char) :: boolean

CR = %x0D ; carriage return

ctl?(char)

Specs

ctl?(char) :: boolean

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

digit?(char)

Specs

digit?(char) :: boolean

DIGIT = %x30-39; 0-9

dquote?(char)

Specs

dquote?(char) :: boolean

DQUOTE = %x22 ; “ (Double Quote)

hexdig?(char)

Specs

hexdig?(char) :: boolean

HEXDIG = DIGIT / “A” / “B” / “C” / “D” / “E” / “F”

htab?(char)

Specs

htab?(char) :: boolean

HTAB = %x09 ; horizontal tab

lf?(char)

Specs

lf?(char) :: boolean

LF = %x0A ; linefeed

octet?(char)

Specs

octet?(char) :: boolean

OCTET = %x00-FF ; 8 bits of data

sp?(char)

Specs

sp?(char) :: boolean

SP = %x20

vchar?(char)

Specs

vchar?(char) :: boolean

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

wsp?(char)

Specs

wsp?(char) :: boolean

WSP = SP / HTAB ; white space