Re-named EBNF helper functions in the CFG class.
Code cleanup and improvement in cfg.rb.

Converted all generated productions to left-recursive form.
Changed some function names to more clearly indicate their purpose.
Merged several related functions into a single function.