summaryrefslogtreecommitdiff
path: root/src/dfa.h
diff options
context:
space:
mode:
authorJSDurand <mmemmew@gmail.com>2022-01-31 15:59:11 +0800
committerJSDurand <mmemmew@gmail.com>2022-01-31 15:59:11 +0800
commiteb007d554251456a2a508849edf91b15aab1333e (patch)
treebd88e78debdd646da87aa60f1bf2904eaa4370ca /src/dfa.h
parenta8bd5e9d85ac9928bd29add82e887f82642af893 (diff)
cnp: save point
Now we need to implement predicates, in order to have practical applications.
Diffstat (limited to 'src/dfa.h')
-rw-r--r--src/dfa.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/dfa.h b/src/dfa.h
index 70c8bf6..9116999 100644
--- a/src/dfa.h
+++ b/src/dfa.h
@@ -57,7 +57,10 @@ dfa *dfa_from_bytes_both(int sequence_size,
/* TODO: Construct some basic frequently used character classes. */
-inline BOOL dfa_any_fun(const NUM UNUSED code) { return 1; }
+dfa *dfa_from_func(special_dfa func);
+
+/* return a new instance of the any class */
+dfa *dfa_any(void);
BOOL run_dfa(CCR_MOD(dfa *) table, const NUM code);