tprod Instruction ¶This instruction has the syntax
tprod NONT_QUOTED, ORD
The instruction increments the frequency of a production of a source PCFG with a nonterminal symbol NONT_QUOTED at the left-hand side and terminal symbols at the right-hand side and updates the spur accordingly.
The parameter ORD is the ordinal number of a tprod instruction with the same parameter NONT_QUOTED.
A tprod instruction corresponds to a #pt-… specifier in a top-down template grammar.
See Ending a Terminal Production, for more information on #pt-… specifiers.
Example:
tprod "_W2_10_1T2", 3
This instruction corresponds to an occurrence of #pt-_W2_10_1T2 specifier in a regular expression of a top-down template grammar.
The occurrence has ordinal number 3.