code refactored; using properties instead of public members; comments added
Parser.next now a property; Parser.eatTypeInfo improved