parser: change deprecated `%pure-parser` to `%define api.pure` (#370)