Add parser support for symbols.
Refactor parser.rb a bit.