Documentation ¶
Index ¶
- type Rule
- func A(r ...Rule) Rule
- func ALPHA() Rule
- func ALPHANUM() Rule
- func BIT() Rule
- func C(r ...Rule) Rule
- func CHAR() Rule
- func CR() Rule
- func CRLF() Rule
- func CTL() Rule
- func DIGIT() Rule
- func DQUOTE() Rule
- func ETX() Rule
- func HEXDIG() Rule
- func HTAB() Rule
- func K(r Rule, k int) Rule
- func LF() Rule
- func LHEX() Rule
- func LWSP() Rule
- func N(r Rule) Rule
- func O(r Rule) Rule
- func OCTET() Rule
- func R0(r Rule) Rule
- func R1(r Rule) Rule
- func RN(n int, r Rule) Rule
- func RV(min int, max int, r Rule) Rule
- func SP() Rule
- func V(c rune) Rule
- func VCHAR() Rule
- func VI(s string) Rule
- func VIL(sl ...string) Rule
- func VL(cl ...rune) Rule
- func VR(h rune, t rune) Rule
- func VS(s string) Rule
- func VSL(sl ...string) Rule
- func WSP() Rule
- type Tree
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Rule ¶
type Rule func(s *scanner) []rune
Rule is rule function of ABNF
func A ¶
A is Alternatives(Rule1 / Rule2) Incremental Alternatives: Rule1 =/ Rule2 different or ETX -> nil
func O ¶
O is Optional Sequence([RULE]) match -> []rune of match value different or ETX -> empty []rune
func RV ¶
RV is Variable Repetition(*Rule) match -> []rune of match value different or ETX -> nil If max=-1 then max=infinity.
type Tree ¶
Tree is tree structure that contains pair of key and value
func ParseReader ¶
func ParseReader(r io.RuneReader, blen, slen int, f Rule) *Tree
ParseReader parse reader value by Rule
func (*Tree) AllChildren ¶
AllChildren return all children
Click to show internal directories.
Click to hide internal directories.