|
|
|
@ -34,11 +34,12 @@
|
|
|
|
|
(let ((char-ranges (loc:integer-set-contents (car chars/to)))
|
|
|
|
|
(to (cdr chars/to)))
|
|
|
|
|
(map (lambda (char-range)
|
|
|
|
|
(cons char-range to))
|
|
|
|
|
(vector (car char-range) (cdr char-range) to)
|
|
|
|
|
#;(cons char-range to))
|
|
|
|
|
char-ranges)))
|
|
|
|
|
all-chars/to))
|
|
|
|
|
(lambda (a b)
|
|
|
|
|
(< (caar a) (caar b))))))
|
|
|
|
|
(< (vector-ref a 0) (vector-ref b 0))))))
|
|
|
|
|
(vector-set! state-table from-state (list->vector flat-all-chars/to))))
|
|
|
|
|
(dfa-transitions dfa))
|
|
|
|
|
state-table))
|
|
|
|
@ -113,12 +114,12 @@
|
|
|
|
|
v))
|
|
|
|
|
((dfa->1d-table d1) (make-vector 1 #f))
|
|
|
|
|
((dfa->1d-table d2) #(#f
|
|
|
|
|
#(((49 . 50) . 1) ((51 . 51) . 2))
|
|
|
|
|
#(((49 . 49) . 3))
|
|
|
|
|
#(#(49 50 1) #(51 51 2))
|
|
|
|
|
#(#(49 49 3))
|
|
|
|
|
#f))
|
|
|
|
|
((dfa->1d-table d3) #(#f
|
|
|
|
|
#(((49 . 50) . 1) ((51 . 51) . 2) ((100 . 200) . 0))
|
|
|
|
|
#(((49 . 49) . 3))
|
|
|
|
|
#(#(49 50 1) #(51 51 2) #(100 200 0))
|
|
|
|
|
#(#(49 49 3))
|
|
|
|
|
#f))
|
|
|
|
|
((dfa->actions d1) (vector #f))
|
|
|
|
|
((dfa->actions d2) (vector #f #f 2 3))
|
|
|
|
|