[WIP] CND parser

this is @sixty-nine WIP of the cnd parser. sorry @dantleech for not having opened this PR long ago - i myself did not find the code anymore even though i remembered we had done something about parsing.