Finish Yecc grammar

Put token recognition into a separate rule.
Make symbol definitions play nice with global indexing

Sublime Text 3 has "Goto Symbol in Project", add some keys
so it produces reasonable results in the global symbol list.