Documentation ¶
Index ¶
- func NewGrid() grid
- func NewSizedGrid(x, y int) grid
- func Parse(filename string, b []byte, opts ...Option) (interface{}, error)
- func ParseFile(filename string, opts ...Option) (interface{}, error)
- func ParseReader(filename string, r io.Reader, opts ...Option) (interface{}, error)
- type Diag
- func (diag *Diag) AttributesString() string
- func (diag *Diag) CircularString() string
- func (diag *Diag) EdgesString() string
- func (diag *Diag) FindCircular() bool
- func (diag *Diag) GoString() string
- func (diag *Diag) GridString() string
- func (diag *Diag) NodesString() string
- func (diag *Diag) PlaceInGrid()
- func (diag *Diag) String() string
- type Edge
- type Edges
- type Node
- type Nodes
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSizedGrid ¶
func NewSizedGrid(x, y int) grid
Types ¶
type Diag ¶
type Diag struct { Name string Nodes map[string]*Node Edges map[string]*Edge Attributes map[string]string Circular []*nodes Grid grid }
func (*Diag) AttributesString ¶
func (*Diag) CircularString ¶
func (*Diag) EdgesString ¶
func (*Diag) FindCircular ¶
func (*Diag) GridString ¶
func (*Diag) NodesString ¶
func (*Diag) PlaceInGrid ¶
func (diag *Diag) PlaceInGrid()
type Option ¶
type Option func(*parser) Option
Option is a function that can set an option on the parser. It returns the previous setting as an Option.
func Debug ¶
Debug creates an Option to set the debug flag to b. When set to true, debugging information is printed to stdout while parsing.
The default is false.
func Memoize ¶
Memoize creates an Option to set the memoize flag to b. When set to true, the parser will cache all results so each expression is evaluated only once. This guarantees linear parsing time even for pathological cases, at the expense of more memory and slower times for typical cases.
The default is false.
Click to show internal directories.
Click to hide internal directories.