lexemes: switch over (completely) to lexeme based specification

Static specification should now be possible.

Signed-off-by: Peter Williams <pwil3058@bigpond.net.au>