General-purpose parser working