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

  1. $LHS: A vector of nonterminals.

  2. $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]