ex_abnf v0.3.0 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)
alpha?(char) :: boolean

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

bit?(char)
bit?(char) :: boolean

BIT = “0” / “1”

char?(char)
char?(char) :: boolean

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

cr?(char)
cr?(char) :: boolean

CR = %x0D ; carriage return

ctl?(char)
ctl?(char) :: boolean

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

digit?(char)
digit?(char) :: boolean

DIGIT = %x30-39; 0-9

dquote?(char)
dquote?(char) :: boolean

DQUOTE = %x22 ; “ (Double Quote)

hexdig?(char)
hexdig?(char) :: boolean

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

htab?(char)
htab?(char) :: boolean

HTAB = %x09 ; horizontal tab

lf?(char)
lf?(char) :: boolean

LF = %x0A ; linefeed

octet?(char)
octet?(char) :: boolean

OCTET = %x00-FF ; 8 bits of data

sp?(char)
sp?(char) :: boolean

SP = %x20

vchar?(char)
vchar?(char) :: boolean

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

wsp?(char)
wsp?(char) :: boolean

WSP = SP / HTAB ; white space