A few changes here:
    -new file for grammar rules, grammar.c
    -array of strings for symbol IDs
    -supporting routine to compute index for symbol IDs