Skip to content

Latest commit

 

History

History

opeg

djdsl::opeg

Define variable object parsing grammars (OPEG). djdsl::opeg is provided as a Tcl module (TM).

https://github.com/mrcalvin/djdsl/opeg

Getting Started

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.

Prerequisites

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)

Installing

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 {...}

Deployment

To install the built Tcl module into a Tcl module path recognised by the targeted Tcl installation, run:

make install

Built With

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details