Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func First ¶
func First(g ebnf.Grammar, x ebnf.Expression) []string
First returns the first token set of a given expression
func Inspect ¶
func Inspect(e ebnf.Expression, fn func(e ebnf.Expression) bool) bool
Inspect traverses the given expression and calls the given function for each.
func Productions ¶
func Productions(g ebnf.Grammar) []*ebnf.Production
Productions returns the productions of the grammar in the order they appear in the source file.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.