#include <astl.h> #include <dfa.h> #include <lazy.h> #include <regexp.h> #include <language.h> #include <iostream> int main() { regexp_cursor e("a|b*"); const char *w = "aaabb"; if (is_in(w, w + 5, lazyc(e))) std::cout "recognized"; lazy_cursor<regexp_cursor> c(e); if (is_in(w, w + 5, c)) std::cout "recognized too"; }