Parse list

Work in progress
How about a test case to ensure LIMIT 0 is invalid? To test that code path?