refactor: remove the biggest parts of the former expression parsing algorithm

Closes #296