diff options
author | JSDurand <mmemmew@gmail.com> | 2022-01-31 15:59:11 +0800 |
---|---|---|
committer | JSDurand <mmemmew@gmail.com> | 2022-01-31 15:59:11 +0800 |
commit | eb007d554251456a2a508849edf91b15aab1333e (patch) | |
tree | bd88e78debdd646da87aa60f1bf2904eaa4370ca /src/dfa.h | |
parent | a8bd5e9d85ac9928bd29add82e887f82642af893 (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.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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); |