Define variable object parsing grammars (OPEG). djdsl::opeg
is provided as a
Tcl module (TM).
https://github.com/mrcalvin/djdsl/opeg
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
What things you need to install the software and how to install them
- Tcl 8.6
- NSF 2.1.0+
- Tcllib trunk @ commit 4bbe140a79eec2ef (parsing tools module)
A step by step series of examples that tell you how to get a development env running
Run configure
./configure --with-tcl=/path/to/tclConfig.sh --tclsh=/path/to/tclsh
Run make
make
Run tests
make test
Run shell
make shell
% package req djdsl::opeg
% namespace import ::djdsl::opeg::*
% Grammar create MyDslGrammar -start epsilon
% set parser [MyDslGrammar new]
% $parser parse {...}
To install the built Tcl module into a Tcl module path recognised by the targeted Tcl installation, run:
make install
- Next Scripting Framework (NSF)/ Next Scripting Language (NX) - The Tcl language extension used
- spotoconf - configure, build, and installer system
- Stefan Sobernig - Initial work - WU Vienna
This project is licensed under the MIT License - see the LICENSE.md file for details