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