| commit | aa9ff47db80bf107999f00709291bd264a269dd7 | [log] [tgz] |
|---|---|---|
| author | Dusan Klinec <dusan.klinec@gmail.com> | Mon Nov 10 18:02:03 2014 +0100 |
| committer | Dusan Klinec <dusan.klinec@gmail.com> | Mon Nov 10 18:02:03 2014 +0100 |
| tree | 6186d664b892e41cf4bd352480b11b93a7c2b078 | |
| parent | c9b031aefeefcbcde9055438587003a1e3834be4 [diff] |
Lexical units added * Lexical support added to the model. Enables to get information about position of a particular element in the source text (character number). This helps with refactoring (search & replace). * Lexical unit object wraps raw string occurrence so it can be easily found.
[Protocol Buffers] 0 lexer & parser written in Python for [PLY] 1.
With this library you can create and process parse trees of a Protocol Buffers files with Python. For example usage see demo.py.
My use case: automated refactoring of .proto files.
ply/ subdirectory is present in this repo for demonstration purposes and completeness only. If you intend to use this project, prefer better original [PLY] 1 repository which is up-to-date.Oneof is not implemented yet.This work was inspired by:
.proto files. Initial model may be considered suboptimal and changed at some point. This project is intended to serve as an inspiration or a starting point. You will probably adapt it for your own needs.