package goabnf
var (
inf int = -1
coreRules = map[string]*Rule{
alpha.Name: alpha,
bit.Name: bit,
char.Name: char,
cr.Name: cr,
crlf.Name: crlf,
ctl.Name: ctl,
digit.Name: digit,
dquote.Name: dquote,
hexdig.Name: hexdig,
htab.Name: htab,
lf.Name: lf,
lwsp.Name: lwsp,
octet.Name: octet,
sp.Name: sp,
vchar.Name: vchar,
wsp.Name: wsp,
}
alpha = &Rule{
Name: "ALPHA",
Alternation: Alternation{
Concatenations: []Concatenation{
{
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemNumVal{
Base: "x",
Status: StatRange,
Elems: []string{"41", "5A"},
},
},
},
}, {
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemNumVal{
Base: "x",
Status: StatRange,
Elems: []string{"61", "7A"},
},
},
},
},
},
},
}
bit = &Rule{
Name: "BIT",
Alternation: Alternation{
Concatenations: []Concatenation{
{
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemCharVal{
Sensitive: false,
Values: []rune{'0'},
},
},
},
}, {
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemCharVal{
Sensitive: false,
Values: []rune{'1'},
},
},
},
},
},
},
}
char = &Rule{
Name: "CHAR",
Alternation: Alternation{
Concatenations: []Concatenation{
{
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemNumVal{
Base: "x",
Status: StatRange,
Elems: []string{"01", "7F"},
},
},
},
},
},
},
}
cr = &Rule{
Name: "CR",
Alternation: Alternation{
Concatenations: []Concatenation{
{
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemNumVal{
Base: "x",
Status: StatSeries,
Elems: []string{"0D"},
},
},
},
},
},
},
}
crlf = &Rule{
Name: "CRLF",
Alternation: Alternation{
Concatenations: []Concatenation{
{
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemRulename{
Name: "CR",
},
}, {
Min: 1,
Max: 1,
Element: ElemRulename{
Name: "LF",
},
},
},
},
},
},
}
ctl = &Rule{
Name: "CTL",
Alternation: Alternation{
Concatenations: []Concatenation{
{
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemNumVal{
Base: "x",
Status: StatRange,
Elems: []string{"00", "1F"},
},
},
},
}, {
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemNumVal{
Base: "x",
Status: StatSeries,
Elems: []string{"7F"},
},
},
},
},
},
},
}
digit = &Rule{
Name: "DIGIT",
Alternation: Alternation{
Concatenations: []Concatenation{
{
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemNumVal{
Base: "x",
Status: StatRange,
Elems: []string{"30", "39"},
},
},
},
},
},
},
}
dquote = &Rule{
Name: "DQUOTE",
Alternation: Alternation{
Concatenations: []Concatenation{
{
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemNumVal{
Base: "x",
Status: StatSeries,
Elems: []string{"22"},
},
},
},
},
},
},
}
hexdig = &Rule{
Name: "HEXDIG",
Alternation: Alternation{
Concatenations: []Concatenation{
{
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemRulename{
Name: "DIGIT",
},
},
},
}, {
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemCharVal{
Sensitive: false,
Values: []rune{'A'},
},
},
},
}, {
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemCharVal{
Sensitive: false,
Values: []rune{'B'},
},
},
},
}, {
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemCharVal{
Sensitive: false,
Values: []rune{'C'},
},
},
},
}, {
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemCharVal{
Sensitive: false,
Values: []rune{'D'},
},
},
},
}, {
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemCharVal{
Sensitive: false,
Values: []rune{'E'},
},
},
},
}, {
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemCharVal{
Sensitive: false,
Values: []rune{'F'},
},
},
},
},
},
},
}
htab = &Rule{
Name: "HTAB",
Alternation: Alternation{
Concatenations: []Concatenation{
{
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemNumVal{
Base: "x",
Status: StatSeries,
Elems: []string{"09"},
},
},
},
},
},
},
}
lf = &Rule{
Name: "LF",
Alternation: Alternation{
Concatenations: []Concatenation{
{
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemNumVal{
Base: "x",
Status: StatSeries,
Elems: []string{"0A"},
},
},
},
},
},
},
}
lwsp = &Rule{
Name: "LWSP",
Alternation: Alternation{
Concatenations: []Concatenation{
{
Repetitions: []Repetition{
{
Min: 0,
Max: inf,
Element: ElemGroup{
Alternation: Alternation{
Concatenations: []Concatenation{
{
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemRulename{
Name: "WSP",
},
},
},
}, {
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemRulename{
Name: "CRLF",
},
}, {
Min: 1,
Max: 1,
Element: ElemRulename{
Name: "WSP",
},
},
},
},
},
},
},
},
},
},
},
},
}
octet = &Rule{
Name: "OCTET",
Alternation: Alternation{
Concatenations: []Concatenation{
{
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemNumVal{
Base: "x",
Status: StatRange,
Elems: []string{"00", "FF"},
},
},
},
},
},
},
}
sp = &Rule{
Name: "SP",
Alternation: Alternation{
Concatenations: []Concatenation{
{
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemNumVal{
Base: "x",
Status: StatSeries,
Elems: []string{"20"},
},
},
},
},
},
},
}
vchar = &Rule{
Name: "VCHAR",
Alternation: Alternation{
Concatenations: []Concatenation{
{
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemNumVal{
Base: "x",
Status: StatRange,
Elems: []string{"21", "7E"},
},
},
},
},
},
},
}
wsp = &Rule{
Name: "WSP",
Alternation: Alternation{
Concatenations: []Concatenation{
{
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemRulename{
Name: "SP",
},
},
},
}, {
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemRulename{
Name: "HTAB",
},
},
},
},
},
},
}
)
var (
abnfRulelist = &Rule{
Name: "rulelist",
Alternation: Alternation{
Concatenations: []Concatenation{
{
Repetitions: []Repetition{
{
Min: 1,
Max: inf,
Element: ElemGroup{
Alternation: Alternation{
Concatenations: []Concatenation{
{
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemRulename{
Name: "rule",
},
},
},
}, {
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemGroup{
Alternation: Alternation{
Concatenations: []Concatenation{
{
Repetitions: []Repetition{
{
Min: 0,
Max: inf,
Element: ElemRulename{
Name: "WSP",
},
}, {
Min: 1,
Max: 1,
Element: ElemRulename{
Name: "c-nl",
},
},
},
},
},
},
},
},
},
},
},
},
},
},
},
},
},
},
}
abnfRule = &Rule{
Name: "rule",
Alternation: Alternation{
Concatenations: []Concatenation{
{
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemRulename{
Name: "rulename",
},
}, {
Min: 1,
Max: 1,
Element: ElemRulename{
Name: "defined-as",
},
}, {
Min: 1,
Max: 1,
Element: ElemRulename{
Name: "elements",
},
}, {
Min: 1,
Max: 1,
Element: ElemRulename{
Name: "c-nl",
},
},
},
},
},
},
}
abnfRulename = &Rule{
Name: "rulename",
Alternation: Alternation{
Concatenations: []Concatenation{
{
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemRulename{
Name: "ALPHA",
},
}, {
Min: 0,
Max: inf,
Element: ElemGroup{
Alternation: Alternation{
Concatenations: []Concatenation{
{
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemRulename{
Name: "ALPHA",
},
},
},
}, {
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemRulename{
Name: "DIGIT",
},
},
},
}, {
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemCharVal{
Sensitive: false,
Values: []rune{'-'},
},
},
},
},
},
},
},
},
},
},
},
},
}
abnfDefinedAs = &Rule{
Name: "defined-as",
Alternation: Alternation{
Concatenations: []Concatenation{
{
Repetitions: []Repetition{
{
Min: 0,
Max: inf,
Element: ElemRulename{
Name: "c-wsp",
},
}, {
Min: 1,
Max: 1,
Element: ElemGroup{
Alternation: Alternation{
Concatenations: []Concatenation{
{
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemCharVal{
Sensitive: false,
Values: []rune{'='},
},
},
},
}, {
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemCharVal{
Sensitive: false,
Values: []rune{'=', '/'},
},
},
},
},
},
},
},
}, {
Min: 0,
Max: inf,
Element: ElemRulename{
Name: "c-wsp",
},
},
},
},
},
},
}
abnfElements = &Rule{
Name: "elements",
Alternation: Alternation{
Concatenations: []Concatenation{
{
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemRulename{
Name: "alternation",
},
}, {
Min: 0,
Max: inf,
Element: ElemRulename{
Name: "WSP",
},
},
},
},
},
},
}
abnfCWsp = &Rule{
Name: "c-wsp",
Alternation: Alternation{
Concatenations: []Concatenation{
{
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemRulename{
Name: "WSP",
},
},
},
}, {
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemGroup{
Alternation: Alternation{
Concatenations: []Concatenation{
{
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemRulename{
Name: "c-nl",
},
}, {
Min: 1,
Max: 1,
Element: ElemRulename{
Name: "WSP",
},
},
},
},
},
},
},
},
},
},
},
},
}
abnfCNl = &Rule{
Name: "c-nl",
Alternation: Alternation{
Concatenations: []Concatenation{
{
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemRulename{
Name: "comment",
},
},
},
}, {
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemRulename{
Name: "CRLF",
},
},
},
},
},
},
}
abnfComment = &Rule{
Name: "comment",
Alternation: Alternation{
Concatenations: []Concatenation{
{
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemCharVal{
Sensitive: false,
Values: []rune{';'},
},
},
{
Min: 0,
Max: inf,
Element: ElemGroup{
Alternation: Alternation{
Concatenations: []Concatenation{
{
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemRulename{
Name: "WSP",
},
},
},
},
{
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemRulename{
Name: "VCHAR",
},
},
},
},
},
},
},
},
{
Min: 1,
Max: 1,
Element: ElemRulename{
Name: "CRLF",
},
},
},
},
},
},
}
abnfAlternation = &Rule{
Name: "alternation",
Alternation: Alternation{
Concatenations: []Concatenation{
{
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemRulename{
Name: "concatenation",
},
},
{
Min: 0,
Max: inf,
Element: ElemGroup{
Alternation: Alternation{
Concatenations: []Concatenation{
{
Repetitions: []Repetition{
{
Min: 0,
Max: inf,
Element: ElemRulename{
Name: "c-wsp",
},
},
{
Min: 1,
Max: 1,
Element: ElemCharVal{
Sensitive: false,
Values: []rune{'/'},
},
},
{
Min: 0,
Max: inf,
Element: ElemRulename{
Name: "c-wsp",
},
},
{
Min: 1,
Max: 1,
Element: ElemRulename{
Name: "concatenation",
},
},
},
},
},
},
},
},
},
},
},
},
}
abnfConcatenation = &Rule{
Name: "concatenation",
Alternation: Alternation{
Concatenations: []Concatenation{
{
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemRulename{
Name: "repetition",
},
},
{
Min: 0,
Max: inf,
Element: ElemGroup{
Alternation: Alternation{
Concatenations: []Concatenation{
{
Repetitions: []Repetition{
{
Min: 1,
Max: inf,
Element: ElemRulename{
Name: "c-wsp",
},
},
{
Min: 1,
Max: 1,
Element: ElemRulename{
Name: "repetition",
},
},
},
},
},
},
},
},
},
},
},
},
}
abnfRepetition = &Rule{
Name: "repetition",
Alternation: Alternation{
Concatenations: []Concatenation{
{
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemOption{
Alternation: Alternation{
Concatenations: []Concatenation{
{
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemRulename{
Name: "repeat",
},
},
},
},
},
},
},
},
{
Min: 1,
Max: 1,
Element: ElemRulename{
Name: "element",
},
},
},
},
},
},
}
abnfRepeat = &Rule{
Name: "repeat",
Alternation: Alternation{
Concatenations: []Concatenation{
{
Repetitions: []Repetition{
{
Min: 1,
Max: inf,
Element: ElemRulename{
Name: "DIGIT",
},
},
},
},
{
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemGroup{
Alternation: Alternation{
Concatenations: []Concatenation{
{
Repetitions: []Repetition{
{
Min: 0,
Max: inf,
Element: ElemRulename{
Name: "DIGIT",
},
},
{
Min: 1,
Max: 1,
Element: ElemCharVal{
Sensitive: false,
Values: []rune{'*'},
},
},
{
Min: 0,
Max: inf,
Element: ElemRulename{
Name: "DIGIT",
},
},
},
},
},
},
},
},
},
},
},
},
}
abnfElement = &Rule{
Name: "element",
Alternation: Alternation{
Concatenations: []Concatenation{
{
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemRulename{
Name: "rulename",
},
},
},
},
{
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemRulename{
Name: "group",
},
},
},
},
{
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemRulename{
Name: "option",
},
},
},
},
{
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemRulename{
Name: "char-val",
},
},
},
},
{
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemRulename{
Name: "num-val",
},
},
},
},
{
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemRulename{
Name: "prose-val",
},
},
},
},
},
},
}
abnfGroup = &Rule{
Name: "group",
Alternation: Alternation{
Concatenations: []Concatenation{
{
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemCharVal{
Sensitive: false,
Values: []rune{'('},
},
},
{
Min: 0,
Max: inf,
Element: ElemRulename{
Name: "c-wsp",
},
},
{
Min: 1,
Max: 1,
Element: ElemRulename{
Name: "alternation",
},
},
{
Min: 0,
Max: inf,
Element: ElemRulename{
Name: "c-wsp",
},
},
{
Min: 1,
Max: 1,
Element: ElemCharVal{
Sensitive: false,
Values: []rune{')'},
},
},
},
},
},
},
}
abnfOption = &Rule{
Name: "option",
Alternation: Alternation{
Concatenations: []Concatenation{
{
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemCharVal{
Sensitive: false,
Values: []rune{'['},
},
},
{
Min: 0,
Max: inf,
Element: ElemRulename{
Name: "c-wsp",
},
},
{
Min: 1,
Max: 1,
Element: ElemRulename{
Name: "alternation",
},
},
{
Min: 0,
Max: inf,
Element: ElemRulename{
Name: "c-wsp",
},
},
{
Min: 1,
Max: 1,
Element: ElemCharVal{
Sensitive: false,
Values: []rune{']'},
},
},
},
},
},
},
}
abnfCharVal = &Rule{
Name: "char-val",
Alternation: Alternation{
Concatenations: []Concatenation{
{
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemRulename{
Name: "case-insensitive-string",
},
},
},
}, {
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemRulename{
Name: "case-sensitive-string",
},
},
},
},
},
},
}
abnfCaseInsensitiveString = &Rule{
Name: "case-insensitive-string",
Alternation: Alternation{
Concatenations: []Concatenation{
{
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemOption{
Alternation: Alternation{
Concatenations: []Concatenation{
{
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemCharVal{
Sensitive: false,
Values: []rune{'%', 'i'},
},
},
},
},
},
},
},
}, {
Min: 1,
Max: 1,
Element: ElemRulename{
Name: "quoted-string",
},
},
},
},
},
},
}
abnfCaseSensitiveString = &Rule{
Name: "case-sensitive-string",
Alternation: Alternation{
Concatenations: []Concatenation{
{
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemCharVal{
Sensitive: false,
Values: []rune{'%', 's'},
},
}, {
Min: 1,
Max: 1,
Element: ElemRulename{
Name: "quoted-string",
},
},
},
},
},
},
}
abnfQuotedString = &Rule{
Name: "quoted-string",
Alternation: Alternation{
Concatenations: []Concatenation{
{
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemRulename{
Name: "DQUOTE",
},
}, {
Min: 0,
Max: inf,
Element: ElemGroup{
Alternation: Alternation{
Concatenations: []Concatenation{
{
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemNumVal{
Base: "x",
Status: StatRange,
Elems: []string{"20", "21"},
},
},
},
}, {
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemNumVal{
Base: "x",
Status: StatRange,
Elems: []string{"23", "7E"},
},
},
},
},
},
},
},
}, {
Min: 1,
Max: 1,
Element: ElemRulename{
Name: "DQUOTE",
},
},
},
},
},
},
}
abnfNumVal = &Rule{
Name: "num-val",
Alternation: Alternation{
Concatenations: []Concatenation{
{
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemCharVal{
Sensitive: false,
Values: []rune{'%'},
},
},
{
Min: 1,
Max: 1,
Element: ElemGroup{
Alternation: Alternation{
Concatenations: []Concatenation{
{
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemRulename{
Name: "bin-val",
},
},
},
},
{
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemRulename{
Name: "dec-val",
},
},
},
},
{
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemRulename{
Name: "hex-val",
},
},
},
},
},
},
},
},
},
},
},
},
}
abnfBinVal = &Rule{
Name: "bin-val",
Alternation: Alternation{
Concatenations: []Concatenation{
{
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemCharVal{
Sensitive: false,
Values: []rune{'b'},
},
},
{
Min: 1,
Max: inf,
Element: ElemRulename{
Name: "BIT",
},
},
{
Min: 1,
Max: 1,
Element: ElemOption{
Alternation: Alternation{
Concatenations: []Concatenation{
{
Repetitions: []Repetition{
{
Min: 1,
Max: inf,
Element: ElemGroup{
Alternation: Alternation{
Concatenations: []Concatenation{
{
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemCharVal{
Sensitive: false,
Values: []rune{'.'},
},
},
{
Min: 1,
Max: inf,
Element: ElemRulename{
Name: "BIT",
},
},
},
},
},
},
},
},
},
},
{
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemGroup{
Alternation: Alternation{
Concatenations: []Concatenation{
{
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemCharVal{
Sensitive: false,
Values: []rune{'-'},
},
},
{
Min: 1,
Max: inf,
Element: ElemRulename{
Name: "BIT",
},
},
},
},
},
},
},
},
},
},
},
},
},
},
},
},
},
},
}
abnfDecVal = &Rule{
Name: "dec-val",
Alternation: Alternation{
Concatenations: []Concatenation{
{
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemCharVal{
Sensitive: false,
Values: []rune{'d'},
},
},
{
Min: 1,
Max: inf,
Element: ElemRulename{
Name: "DIGIT",
},
},
{
Min: 1,
Max: 1,
Element: ElemOption{
Alternation: Alternation{
Concatenations: []Concatenation{
{
Repetitions: []Repetition{
{
Min: 1,
Max: inf,
Element: ElemGroup{
Alternation: Alternation{
Concatenations: []Concatenation{
{
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemCharVal{
Sensitive: false,
Values: []rune{'.'},
},
},
{
Min: 1,
Max: inf,
Element: ElemRulename{
Name: "DIGIT",
},
},
},
},
},
},
},
},
},
},
{
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemGroup{
Alternation: Alternation{
Concatenations: []Concatenation{
{
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemCharVal{
Sensitive: false,
Values: []rune{'-'},
},
},
{
Min: 1,
Max: inf,
Element: ElemRulename{
Name: "DIGIT",
},
},
},
},
},
},
},
},
},
},
},
},
},
},
},
},
},
},
}
abnfHexVal = &Rule{
Name: "hex-val",
Alternation: Alternation{
Concatenations: []Concatenation{
{
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemCharVal{
Sensitive: false,
Values: []rune{'x'},
},
},
{
Min: 1,
Max: inf,
Element: ElemRulename{
Name: "HEXDIG",
},
},
{
Min: 1,
Max: 1,
Element: ElemOption{
Alternation: Alternation{
Concatenations: []Concatenation{
{
Repetitions: []Repetition{
{
Min: 1,
Max: inf,
Element: ElemGroup{
Alternation: Alternation{
Concatenations: []Concatenation{
{
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemCharVal{
Sensitive: false,
Values: []rune{'.'},
},
},
{
Min: 1,
Max: inf,
Element: ElemRulename{
Name: "HEXDIG",
},
},
},
},
},
},
},
},
},
},
{
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemGroup{
Alternation: Alternation{
Concatenations: []Concatenation{
{
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemCharVal{
Sensitive: false,
Values: []rune{'-'},
},
},
{
Min: 1,
Max: inf,
Element: ElemRulename{
Name: "HEXDIG",
},
},
},
},
},
},
},
},
},
},
},
},
},
},
},
},
},
},
}
abnfProseVal = &Rule{
Name: "prose-val",
Alternation: Alternation{
Concatenations: []Concatenation{
{
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemCharVal{
Sensitive: false,
Values: []rune{'<'},
},
},
{
Min: 0,
Max: inf,
Element: ElemGroup{
Alternation: Alternation{
Concatenations: []Concatenation{
{
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemNumVal{
Base: "x",
Status: StatRange,
Elems: []string{"20", "3D"},
},
},
},
},
{
Repetitions: []Repetition{
{
Min: 1,
Max: 1,
Element: ElemNumVal{
Base: "x",
Status: StatRange,
Elems: []string{"3F", "7E"},
},
},
},
},
},
},
},
},
{
Min: 1,
Max: 1,
Element: ElemCharVal{
Sensitive: false,
Values: []rune{'>'},
},
},
},
},
},
},
}
)
 |
The pages are generated with Golds v0.8.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |