represent input tokens in a way that doesn't clash with NULL
don't output extraneous comma in symbol sets
rename h_grammar to h_cfgrammar
move grammar analysis stuff to its own files
add scaffold for grammar tests and codify the dummy test case