skip to navigation
skip to content

pydsl 0.5.0

Python Domain Specific Language Tools

Latest Version: 0.5.4


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


  • disttools: * python3 install
  • pip: * pip install pydsl




Copyright (C) 2008-2014 Nestor Arocha (

File Type Py Version Uploaded on Size
pydsl-0.5.0.tar.gz (md5) Source 2014-03-17 37KB