blob: 2bfa1224e4b875d2172de7cc2b6cc039e7c90aef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
require 'vtparse_tables'
#
# check that for every state, there is a transition defined
# for every character between 0 and A0.
#
table = {}
anywhere_array = expand_ranges($states[:ANYWHERE])
$state_tables.each { |state, table|
next if state == :ANYWHERE
table.each_with_index { |val, i|
if not (val or $state_tables[:ANYWHERE][i])
raise "No transition defined from state #{state}, char 0x#{i.to_s(16)}!"
end
}
}
puts "Tables had all necessary transitions defined."
|