X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=dfa%2Fdfap.h;h=6265962489d54f49e0b3e20a35c9d1b0d9a6591d;hb=af7bc27d33843a8e667022f24589450c39f907f2;hp=d58d9f453a49443469ce2bf890cc801d6194cde6;hpb=41194374db152313aa9a6c2d34053dc33aab180e;p=idzebra-moved-to-github.git diff --git a/dfa/dfap.h b/dfa/dfap.h index d58d9f4..6265962 100644 --- a/dfa/dfap.h +++ b/dfa/dfap.h @@ -4,7 +4,18 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: dfap.h,v $ - * Revision 1.1 1995-01-24 16:02:53 adam + * Revision 1.4 1996-06-04 10:20:03 adam + * Added support for character mapping. + * + * Revision 1.3 1996/01/08 09:09:19 adam + * Function dfa_parse got 'const' string argument. + * New functions to define char mappings made public. + * + * Revision 1.2 1995/01/25 11:30:50 adam + * Simple error reporting when parsing regular expressions. + * Memory usage reduced. + * + * Revision 1.1 1995/01/24 16:02:53 adam * New private header file in dfa module (dfap.h). * Module no longer uses yacc to parse regular expressions. * @@ -17,7 +28,6 @@ struct DFA_parse { struct Tnode *root; /* root of regular syntax tree */ - struct Tnode *top; /* regular tree top (returned by parse_dfa) */ int position; /* no of positions so far */ int rule; /* no of rules so far */ BSetHandle *charset; /* character set type */ @@ -26,6 +36,9 @@ struct DFA_parse { int max_Tnode; /* allocated Tnodes */ struct Tblock *start; /* start block of Tnodes */ struct Tblock *end; /* end block of Tnodes */ + int *charMap; + int charMapSize; + char **(*cmap)(const char **from, int len); }; typedef struct DFA_stateb_ {