Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Item ¶
type Item struct { BasicProdIdx int Id string Symbols []string Position int NextItem *Item // contains filtered or unexported fields }
A general CFG item without context. Context is the set of symbols which may follow an item.
func NewItem ¶
func NewItem(head string, alt *ast.SyntaxAlternate, index int) []*Item
NewItem returns the LR(0) item of a basic production index: index of prod in list of basic productions after rewrite from parsed productions.
func (*Item) ExpectedSymbol ¶
func (*Item) TailString ¶
Return the symbols following the expected symbol. Possibly empty
Click to show internal directories.
Click to hide internal directories.