|
1 |
| - |
2 |
| - |
3 |
| - |
4 |
| -[](https://pyVHDLParser.readthedocs.io/en/latest/?badge=latest) |
5 |
| -[](https://pypi.org/project/pyVHDLParser/) |
6 |
| - |
7 |
| - |
8 |
| - |
9 |
| - |
10 |
| -<!-- |
11 |
| - [](https://travis-ci.org/Paebbels/pyVHDLParser) |
12 |
| ---> |
| 1 | +[](LICENSE.md) |
| 2 | +[](https://github.com/Paebbels/pyVHDLParser/tags) |
| 3 | +[](https://github.com/Paebbels/pyVHDLParser/releases/latest) |
| 4 | +[](https://github.com/Paebbels/pyVHDLParser/releases) |
| 5 | +[](https://libraries.io/github/Paebbels/pyVHDLParser) |
| 6 | +[](https://requires.io/github/Paebbels/pyVHDLParser/requirements/?branch=master) |
| 7 | +[](https://travis-ci.com/Paebbels/pyVHDLParser) |
| 8 | +[](https://pypi.org/project/pyVHDLParser/) |
| 9 | + |
| 10 | + |
| 11 | +[](https://github.com/Paebbels/pyVHDLParser/network/dependents) |
| 12 | +[](https://www.codacy.com/manual/Paebbels/pyVHDLParser) |
| 13 | +[](https://libraries.io/github/Paebbels/pyVHDLParser/sourcerank) |
| 14 | +[](https://pyVHDLParser.readthedocs.io/en/latest/) |
13 | 15 |
|
14 | 16 | # pyVHDLParser
|
15 | 17 |
|
16 | 18 | This is a token-stream based parser for VHDL-2008.
|
17 | 19 |
|
18 |
| -Main goals: |
19 |
| - * slice an input document into text blocks which are categorized |
20 |
| - * group text blocks for fast-forward scanning |
21 |
| - * provide a generic VHDL language model |
| 20 | +## Intruduction |
22 | 21 |
|
23 |
| -Use cases: |
24 |
| - * generate documentation by using the fast-forward scanner |
25 |
| - * generate a document/language model by using the grouped text-block scanner |
26 |
| - * extract compile orders and other dependency graphs |
27 |
| - * generate highlighted syntax |
28 |
| - * re-annotate documenting comments to their objects for doc extraction |
| 22 | +### Main Goals |
29 | 23 |
|
30 |
| -Long time goals: |
31 |
| - * A Sphinx language plugin for VHDL |
| 24 | +* **Parsing** |
| 25 | + * slice an input document into **tokens** and text **blocks** which are categorized |
| 26 | + * preserve case, whitespace and comments |
| 27 | + * recover on parsing errors |
| 28 | + * good error reporting / throw exceptions |
| 29 | +* **Fast Processing** |
| 30 | + * multi-pass parsing and analysis |
| 31 | + * delay analysis if not needed at current pass |
| 32 | + * link tokens and blocks for fast-forward scanning |
| 33 | +* **Generic VHDL Language Model** |
| 34 | + * Assemble a document-object-model (Code-DOM) |
| 35 | + * Provide an API for code introspection |
| 36 | + |
| 37 | +### Use Cases |
| 38 | + |
| 39 | +* generate documentation by using the fast-forward scanner |
| 40 | +* generate a document/language model by using the grouped text-block scanner |
| 41 | +* extract compile orders and other dependency graphs |
| 42 | +* generate highlighted syntax |
| 43 | +* re-annotate documenting comments to their objects for doc extraction |
| 44 | + |
| 45 | +### Parsing approach |
| 46 | + |
| 47 | +1. slice an input document into **tokens** |
| 48 | +2. assemble tokens to text **blocks** which are categorized |
| 49 | +3. assemble text blocks for fast-forward scanning into **groups** |
| 50 | +4. translate groups into a document-object-model (DOM) |
| 51 | +5. provide a generic VHDL language model |
| 52 | + |
| 53 | +### Long time goals |
| 54 | + |
| 55 | +* A Sphinx language plugin for VHDL |
| 56 | + |
| 57 | + TODO: Move the following documentation to ReadTheDocs and replace it with a more lightweight version. |
32 | 58 |
|
33 | 59 | ## Basic Concept
|
34 | 60 |
|
35 | 61 | [![][concept]][concept]
|
36 | 62 |
|
37 |
| -[concept]: https://raw.githubusercontent.com/Paebbels/pyVHDLParser/master/docs/images/Linking_TokenBlockGroup.png |
| 63 | +[concept]: https://raw.githubusercontent.com/Paebbels/pyVHDLParser/master/doc/images/Linking_TokenBlockGroup.png |
38 | 64 |
|
39 | 65 | ## Example 1
|
40 | 66 |
|
|
0 commit comments