id2symb {xegaBNF} | R Documentation |
id2symb()
converts a numeric id to a symbol.
id2symb(Id, ST)
Id |
A numeric identifier (integer). |
ST |
A symbol table. |
A symbol string if the identifier exists or
an empty character string (character(0)
)
if the identifier
does not exist.
Other Utility Functions:
derive()
,
isNonTerminal()
,
isTerminal()
,
rules()
,
symb2id()
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))