The Natural Rule Language (NRL) Parser
This package contains a parser and manipulation API for the Natural Rule Language.
The Natural Rule Language is an open specification hosted on
SourceForge, at http://nrl.sourceforge.net.
Its principal purpose is to enable the expression of constraints over models in
a restricted language that is reasonably close to English.
All code and documentation contained in this package is licenced under
the terms of the Mozilla Public Licence,
version 1.1. By downloading this package you agree to be bound by the terms. Please refer
to the NOTICES file for copyright information and
information on bundled third party packages.
Usage
This package contains a grammar-driven parser and abstract syntax tree implementation
of the NRL. Using this package you can:
- Parse NRL files. This will tell you if the rules you have
written are correct and valid against a model.
- Write Java programs that transform NRL rules for execution on
target platforms - "mapping" programs. For example, for execution in Java against
Java objects, in CLiX against XML, or in your
favourite programming language.
Programming Interface
The NRL parser comes with an API for calling it programmatically. The
complete JavaDoc for all packages is included. The
most important package in the API for any kind of mapping or manipulation is
the net.sourceforge.nrl.ast
package, which contains the representation
of the language as an abstract syntax tree. If you intend to use this API, please
make sure you are familiar with the NRL Specification,
which documents the meaning of the constructs.
You might also want to browse the samples directory for examples of how to use the parser.
Contact
More information is available on http://nrl.sourceforge.net.
©2006-2011 Contributors