CTTL on
SourceForge |
Download
Latest |
Documentation
Index |
Library
News |
CVS
Repository |
Other
Links |
Demonstrates repeatable search grammar evaluation method.
// sample code: yellow_taxi.cpp #include <iostream> #include "cttl/cttl.h" using namespace cttl; int main() { input<> inp( "yellow pages were found in yellow taxi" ); const_edge< policy_space<> > U( new_edge( inp ) ); size_t P = ( symbol( "yellow" ) + "taxi" ).bang_find( U ); assert( P != std::string::npos ); // assert bang_find() succeeded return 0; }
Permission to copy, use, modify, sell and distribute this document is granted provided this copyright notice appears in all copies. This document is provided "as is" without express or implied warranty, and with no claim as to its suitability for any purpose.