Python Domain Specific Language Tools
Project description
DESCRIPTION
pydsl is a language library written in python. It provides high level functions for Grammars/Alphabets, hiding the complexity of parsers and similar tools
INSTALLATION
disttools: * python3 setup.py install
pip: * pip install pydsl
USAGE
Simple check session:
from pydsl.Memory.File.BNF import load_bnf_file from pydsl.Checker import check grammardefinition = loand_bnf_file(‘myfile.bnf’) check(grammardefinition,’mystring’) # returns True or False
REQUIREMENTS
python >= 2.7
pypository
optional: ply library ( http://www.dabeaz.com/ply/ )
ABOUT
pydsl is a language library written in python Copyright (C) 2008-2013 Nestor Arocha (nesaro@gmail.com)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.