===========
pydsl is a language library written in python. It provides some verbs for Grammars.
from pydsl.file.BNF import load_bnf_file
grammardefinition = loand_bnf_file('myfile.bnf')
grammardefinition.alphabet # Returns the alphabet used by this grammar
grammardefinition.minsize
grammardefinition.maxsize
grammardefinition.enumerate # Returns a generator that generates every accepted word
from pydsl.check import check
check(grammardefinition,'mystring') # returns True or False
from pydsl.parser import parse
parse(grammardefinition,'mystring') # returns a ParseTree
from pydsl.extract import extract
extract(grammardefinition,'abcmystringabc') # returns ('mystring',3,11)
FORMATS
=======
Functions
---------
| Format |Check|Match|Search|Split|Extract|Translate|Validate|Diff|
| ------- |:---:|-----|------|-----|:-----:|:-------:|:------:|----|
| BNF | V | | | |V | Parse | V | |
| regexp | V | | | |V | X | | |
| ply | V | | | |V | V | | |
| parsley | V | | | |V | V | | |
|pyparsing| V | | | |V | | | |
Properties
----------
| Format |First|Min|Max|Enumerate|
| ------- |:---:|---|---|---------|
| BNF | V | | | |
| regexp | | | | |
| ply | | | | |
| parsley | | | | |
|pyparsing| | | | |
INSTALLATION
============
* disttools:
* python3 setup.py install
* pip:
* pip install pydsl
CONTRIBUTIONS
=============
* check existing issues: https://github.com/nesaro/pydsl
* read the project's blog: http://pydsl.blogspot.co.uk
* pull requests :)
REQUIREMENTS
============
* python >= 2.7
* optional: ply library ( http://www.dabeaz.com/ply/ )
ABOUT
=====
Copyright (C) 2008-2015 Nestor Arocha (nesaro@gmail.com)
Metadata
Release files for pydsl 0.5.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pydsl-0.5.4.tar.gz | 38.8 kB | Without provenance | Details |
Release files / pydsl-0.5.4.tar.gz
| Download URL | pydsl-0.5.4.tar.gz |
|---|---|
| Size | 38.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7b9bebec60e1a7c75d4b591fa5bd57255f165db677a28795c2c6a5a9009adb17
|
|
BLAKE2b-256 checksum How to use checksums |
3742841002abdff1577f4181386f773e34226c3d0bb6edf173f36dafd774cb41
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pydsl 0.5.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.