Adding basic support for ensuring operator precedence. This still needs much improvement.