template: remove unused function

Signed-off-by: Peter Williams <pwil3058@gmail.com>
lexan: parameterise the token handle.

Parameterise so that numbers can be used instead of strings where that
would lead to better efficiency.

Signed-off-by: Peter Williams <pwil3058@gmail.com>
grammar: use DDToken instead of token name for lexical analysis handle.

Avoid unnecessary conversion from string to DDToken in generated parser.

Signed-off-by: Peter Williams <pwil3058@gmail.com>