fix the parser to accept productions of the form A --> a (i.e single char to
single char productions). add code to determine terminal symbols.