newPT {xegaBNF} | R Documentation |
Constructs a new production table.
Description
Constructs a new production table.
Usage
newPT(LHS, RHS)
Arguments
LHS |
The vector of non-terminal identifiers. |
RHS |
A list of vectors of symbols. |
Value
A production table (a named list) with the elements
-
$LHS
: A vector of nonterminals. -
$RHS
: A list of vectors of symbols.
Examples
g<-compileBNF(booleanGrammar())
nPT<-newPT(g$PT$LHS, g$PT$RHS)
[Package xegaBNF version 1.0.0.5 Index]