Parsing

Implements parsing based on derivatives.