Added method for parsing simple literals for use in top-level class
declarations.
Along with this change we've also moved out methods specific for parsing
low-level literals into the same file as new method, since that
structure made more sense.
Previous definition of `Line` type was obnoxious and too difficult to
work with. This one should make iterator implementation much easier and
has clearer structure on its own.