PatMat: SPITBOL-like pattern construction and matching in C++
- Copyright (C) 2013 Henry G. Weller
- Copyright (C) 2007,2008, Philip L. Budne
- Copyright (C) 1998-2005, AdaCore
This software and documentation is developed from both the
package of Philip L. Budne and the original
GNAT.SPITBOL.PATTERNS package of
GNU Ada based on
Macro-SPITBOL created by Robert Dewar. GNAT was originally
developed by the GNAT team at New York University with extensive contributions
provided by Ada Core Technologies Inc.
This is a completely general patterm matching package based on the pattern
SNOBOL4, as implemented in
SPITBOL. The pattern language is
modeled on context free grammars, with context sensitive extensions that
provide full (type 0) computational capabilities.
Build and Test
The default build setup is to compile with
PatMat has also been
clang++ and any other standard C++ compiler should be suitable.
The particular compiler can be configured by editing
- To build the PatMat library:
- To run all the tests:
- To run the tutorial examples: