Documentation ¶
Index ¶
Constants ¶
View Source
const EMPTY = "empty"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FirstSets ¶
type FirstSets struct {
// contains filtered or unexported fields
}
FirstSets represents a map of id->production.
func GetFirstSets ¶
GetFirstSets returns the FirstSets of the Grammar.
type SymbolSet ¶
key: symbol string
func FirstS ¶
Returns First of the string, xyz, e.g.: for the item,
X : w • xyz Let x, y, z be strings from the union of T and NT. First(xy...z) = First(x) if First(x) does not contain ϵ First(x) + First(y) if First(x) contains ϵ but First(y) does not contain ϵ ... First(x) + First(y) + ... + First(z)
Click to show internal directories.
Click to hide internal directories.