id2symb {xegaBNF}R Documentation

Convert a numeric identifier to a symbol.

Description

id2symb() converts a numeric id to a symbol.

Usage

id2symb(Id, ST)

Arguments

Id

A numeric identifier (integer).

ST

A symbol table.

Value

See Also

Other Utility Functions: derive(), isNonTerminal(), isTerminal(), rules(), symb2id()

Examples

g<-compileBNF(booleanGrammar())
id2symb(1, g$ST)
id2symb(2, g$ST)
id2symb(5, g$ST)
id2symb(12, g$ST)
id2symb(15, g$ST)
identical(id2symb(15, g$ST), character(0))


[Package xegaBNF version 1.0.0.0 Index]