Get part of the parsing done for ls.cpp