projects
/
SXSI
/
xpathcomp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add serialization functions
[SXSI/xpathcomp.git]
/
automaton.ml
diff --git
a/automaton.ml
b/automaton.ml
index
12eee0b
..
27c8264
100644
(file)
--- a/
automaton.ml
+++ b/
automaton.ml
@@
-28,8
+28,8
@@
struct
let mem e s = ((1 lsl e) land s) != 0
let add e s = (1 lsl e) lor s
let singleton e = (1 lsl e)
let mem e s = ((1 lsl e) land s) != 0
let add e s = (1 lsl e) lor s
let singleton e = (1 lsl e)
- let union
= (lor)
- let inter
= (land)
+ let union
a b = a lor b
+ let inter
a b = a land b
let diff a b = a land (lnot b)
let remove e s = (lnot (1 lsl e) land s)
let compare = (-)
let diff a b = a land (lnot b)
let remove e s = (lnot (1 lsl e) land s)
let compare = (-)