An open API service indexing awesome lists of open source software.

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.

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).