-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
13 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
# Upgrading from 1.x | ||
|
||
Tokenproducer 2.0 replaces the methods `openGroup()` and `closeGroup()` with | ||
`leftParenthesis()`/`rightParenthesis()` and others. Using the new event methods | ||
may allow you to write clearer code, although you can also have your old | ||
`TokenHandler` implementation inherit from the new `LegacyTokenHandler`, which | ||
is compatible with the 1.x API and provides a simpler upgrade path. | ||
Tokenproducer 2.0.1 uses a new `TokenHandler2` interface which replaces the methods | ||
`openGroup()` and `closeGroup()` with `leftParenthesis()`/`rightParenthesis()` | ||
and others. | ||
|
||
Using the new event methods may allow you to write clearer code, although you can | ||
keep implementing the old 1.x `TokenHandler` interface, which provides a simpler | ||
upgrade path. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters