https://github.com/databiosphere/wdl-parsers
A package that provides the generated ANTLR4 WDL parsers for Python.
https://github.com/databiosphere/wdl-parsers
Last synced: 11 months ago
JSON representation
A package that provides the generated ANTLR4 WDL parsers for Python.
- Host: GitHub
- URL: https://github.com/databiosphere/wdl-parsers
- Owner: DataBiosphere
- License: apache-2.0
- Created: 2020-12-23T17:39:43.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-05-01T06:02:58.000Z (about 4 years ago)
- Last Synced: 2025-06-21T13:18:51.827Z (12 months ago)
- Language: Python
- Homepage:
- Size: 17.6 KB
- Stars: 1
- Watchers: 7
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# wdl-parsers
A Python package that provides the generated `Hermes` and `Antlr4` WDL parsers for Python.
| Version | Parser(s) | Module |
|---------|-----------|--------|
| draft-2 | Hermes | draft2 |
| v1.0 | Antlr4 | v1 |
| development | Antlr4 |dev |
## Installation
From the CLI:
```
pip install wdlparse
```
## Usage
```python
# the following modules are available:
import wdlparse.draft2
import wdlparse.v1
import wdlparse.dev
```
```python
# draft-2 hermes parser
from wdlparse.draft2 import wdl_parser
# 1.0 antlr4 parser
from wdlparse.v1.WdlV1Lexer import WdlV1Lexer
from wdlparse.v1.WdlV1Parser import WdlV1Parser
# development antlr4 parser
from wdlparse.dev.WdlLexer import WdlLexer
from wdlparse.dev.WdlParser import WdlParser
# parse WDL files with these parsers
# ...
```
## License
The grammar and generated files come from [openwdl/wdl](https://github.com/openwdl/wdl/) under the [BSD 3-Clause "New" or "Revised" License](https://github.com/openwdl/wdl/blob/main/LICENSE).