diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /web/noweb/src/c/recognize.h |
Initial commit
Diffstat (limited to 'web/noweb/src/c/recognize.h')
-rw-r--r-- | web/noweb/src/c/recognize.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/web/noweb/src/c/recognize.h b/web/noweb/src/c/recognize.h new file mode 100644 index 0000000000..c2196365e7 --- /dev/null +++ b/web/noweb/src/c/recognize.h @@ -0,0 +1,6 @@ +typedef struct recognizer *Recognizer; +typedef void (*Callback) (void *closure, char *id, char *instance); +Recognizer new_recognizer(char *alphanum, char *symbols); +void add_ident(Recognizer r, char *id); +void stop_adding(Recognizer r); +void search_for_ident(Recognizer r, char *input, Callback f, void *closure); |