-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Token locations python bindings (#120)
* bindings: Expose TokenType for Token * bindings: Introduce `Position` and expose location * location: Merge Rule::Location and Location In order to preserve backwards compatibility the `line_number` property has been kept, but will be deprecated. Now any other `Location` instance will include `line_number`, that should not be mentioned in the documentation. * string: Add location to strings * token: Expose common tokens for strings and rules * TokenType: convert to cpp11 enum class * Revert "TokenType: convert to cpp11 enum class" This reverts commit 5e6dc9c. * tests: Add location python bindings test
- Loading branch information
1 parent
732b07f
commit eee73e8
Showing
7 changed files
with
378 additions
and
49 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
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
Oops, something went wrong.