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