Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RSG ¶
type RSG struct {
// contains filtered or unexported fields
}
RSG is a random syntax generator.
func (*RSG) Generate ¶
Generate generates a unique random syntax from the root node. At most depth levels of token expansion are performed. An empty string is returned on error or if depth is exceeded. Generate is safe to call from mulitipule goroutines. If Generate is called more times than it can generate unique output, it will block forever.
Click to show internal directories.
Click to hide internal directories.