protected List < Name > parseNameList ( TokenStream tokens ) { List < Name > names = new ArrayList < Name > ( ) ; if ( ! tokens . canConsume ( ' ' ) ) { // Read names until we see a ',' do { names . add ( parseName ( tokens ) ) ; } while ( tokens . canConsume ( ' ' ) ) ; } return names ; }
Parse a list of names separated by commas . Any quotes surrounding the names are removed .