expandGrid {xegaBNF}R Documentation

Expands a vector of symbol vectors.

Description

Expands a vector of symbol vectors.

Usage

expandGrid(obj)

Arguments

obj

A vector of symbol vectors.

Value

A list of symbol vectors which is the Cartesian product of all symbol vectors in obj.

See Also

Other Compilation of short production table: allTerminal(), cL(), directRecursion(), expandRules(), findNextRuleForExpansion(), finiteRulesOfG(), nonTerminalsOfG(), smallestRules()

Examples

l<-list()
l[[1]]<-c(1, 2, 3)
l[[2]]<-c(4, 5)
expandGrid(l)


[Package xegaBNF version 1.0.0.5 Index]