Fixes in history file.
- Context object now uses `__slots__` and has `extra` attribute for user
usage. `extra` is shallow copied during LR parser run and deep copied during
GLR parser heads split.
- - `dynamic_filter` params changed from `action, token, production, subresults,
- state, context` to `context, action, subresults`. To access previous param
- values use `context.token_ahead` for `token`, `context.production` for
- `production` and `context.state` for `state`.
- - `error_recovery` params changed from `parser, input, position,
+ - `dynamic_filter` callback params changed from `action, token, production,
+ subresults, state, context` to `context, action, subresults`. To access
+ previous param values use `context.token_ahead` for `token`,
+ `context.production` for `production` and `context.state` for `state`.
+ - `error_recovery` callback params changed from `parser, input, position,
expected_symbols` to `context`. To access previous param values use
`context.parser`, `context.input_str`, `context.position`,
`context.state.actions.keys()`.
- Error recovery function now returns token and position. The error is
automatically registered and returned with parsing results.
- - `custom_lexical_disambiguation` parser param changed to
+ - `custom_lexical_disambiguation` parser param/callback changed to
`custom_token_recognition`.
- - `custom_token_recognition` params changed from `symbols, input_str,
+ - `custom_token_recognition` callback params changed from `symbols, input_str,
position, get_tokens` to `context, get_tokens`. To access previous param
values use `context.state.actions.keys()` for `symbols`, `context.input_str`
and `context.position` for `input_str` and `position`.
