parser: improve error message when syntax error due to unexpected end of data

Signed-off-by: Peter Williams <pwil3058@gmail.com>
symbols: make each symbol tables id numbers start at zero and be sequential

Signed-off-by: Peter Williams <pwil3058@gmail.com>
grammar: fix id numbering for parser states

Signed-off-by: Peter Williams <pwil3058@gmail.com>
grammar: fix id numbering for productions

Signed-off-by: Peter Williams <pwil3058@gmail.com>
symbols: get rid of static as we want number per instance not universal

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