Skip to main content
DESCRIPTION
===========

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-2014 Nestor Arocha (nesaro@gmail.com)

Release files for pydsl 0.5.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pydsl 0.5.2
File Size Uploaded
pydsl-0.5.2.tar.gz 39.0 kB Details

Release files / pydsl-0.5.2.tar.gz

Download URL pydsl-0.5.2.tar.gz
Size 39.0 kB
Tags Source
SHA-256 checksum
How to use checksums
33c950bb694be8cdac33147a5702376c87973396d161e727e325810061847106
BLAKE2b-256 checksum
How to use checksums
d7e9ce38b33b93b3df1c20253d18b311b031cfd1ecc5488b3dfb295169ada0e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

0.5.4

1 release file

0.5.3

1 release file

This release

0.5.2 This release

1 release file

0.5.1

1 release file

0.5.0

1 release file

0.4.1

1 release file

0.4.0

1 release file

0.3.0

1 release file

0.2.0

1 release file

0.1.0

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page