# begin: ragel =begin class << self attr_accessor :_bel_trans_keys private :_bel_trans_keys, :_bel_trans_keys= end self._bel_trans_keys = [ 0, 0, 83, 115, 69, 101, 84, 116, 9, 32, 9, 100, 79, 111, 67, 99, 85, 117, 77, 109, 69, 101, 78, 110, 84, 116, 9, 32, 9, 122, 9, 122, 9, 34, 34, 92, 34, 92, 0, 0, 9, 122, 9, 122, 9, 34, 34, 92, 34, 92, 9, 125, 9, 125, 0, 0, 9, 125, 48, 122, 9, 34, 34, 92, 34, 92, 0, 0, 123, 123, 9, 34, 34, 92, 34, 92, 9, 122, 0, 0, 9, 123, 9, 123, 9, 34, 10, 10, 0, 0, 10, 122, 9, 123, 9, 123, 10, 10, 10, 122, 0, 0, 0, 0, 9, 125, 9, 125, 9, 34, 9, 125, 9, 125, 0, 0, 9, 125, 10, 10, 0 ] class << self attr_accessor :_bel_key_spans private :_bel_key_spans, :_bel_key_spans= end self._bel_key_spans = [ 0, 33, 33, 33, 24, 92, 33, 33, 33, 33, 33, 33, 33, 24, 114, 114, 26, 59, 59, 0, 114, 114, 26, 59, 59, 117, 117, 0, 117, 75, 26, 59, 59, 0, 1, 26, 59, 59, 114, 0, 115, 115, 26, 1, 0, 113, 115, 115, 1, 113, 0, 0, 117, 117, 26, 117, 117, 0, 117, 1 ] class << self attr_accessor :_bel_index_offsets private :_bel_index_offsets, :_bel_index_offsets= end self._bel_index_offsets = [ 0, 0, 34, 68, 102, 127, 220, 254, 288, 322, 356, 390, 424, 458, 483, 598, 713, 740, 800, 860, 861, 976, 1091, 1118, 1178, 1238, 1356, 1474, 1475, 1593, 1669, 1696, 1756, 1816, 1817, 1819, 1846, 1906, 1966, 2081, 2082, 2198, 2314, 2341, 2343, 2344, 2458, 2574, 2690, 2692, 2806, 2807, 2808, 2926, 3044, 3071, 3189, 3307, 3308, 3426 ] class << self attr_accessor :_bel_indicies private :_bel_indicies, :_bel_indicies= end self._bel_indicies = [ 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 4, 1, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 1, 6, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 6, 1, 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 7, 1, 8, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 8, 1, 9, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 9, 1, 10, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 10, 1, 11, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 1, 12, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 12, 1, 13, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 13, 1, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 14, 14, 15, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 16, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 16, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 14, 14, 14, 14, 14, 14, 14, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 14, 14, 14, 14, 17, 14, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 14, 19, 19, 19, 19, 19, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 19, 18, 20, 18, 22, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 23, 21, 25, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 26, 24, 24, 28, 29, 29, 29, 29, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 28, 27, 30, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 27, 27, 27, 27, 27, 27, 27, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 27, 27, 27, 27, 31, 27, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 27, 32, 33, 33, 33, 33, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 32, 27, 34, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 27, 27, 27, 27, 27, 27, 27, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 27, 27, 27, 27, 35, 27, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 27, 33, 33, 33, 33, 33, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 33, 18, 34, 18, 37, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 38, 36, 40, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 41, 39, 42, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 42, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 43, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 44, 18, 45, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 45, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 32, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 46, 1, 39, 47, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 47, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 48, 14, 14, 14, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 14, 14, 14, 14, 14, 14, 14, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 14, 14, 14, 14, 49, 14, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 14, 14, 50, 14, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 1, 1, 1, 1, 1, 1, 1, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 1, 1, 1, 1, 51, 1, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 1, 53, 53, 53, 53, 53, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 53, 52, 54, 52, 56, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 57, 55, 59, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 60, 58, 58, 61, 1, 62, 62, 62, 62, 62, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 62, 18, 63, 18, 65, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 66, 64, 68, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 69, 67, 70, 62, 62, 62, 62, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 70, 27, 63, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 27, 27, 27, 27, 27, 27, 27, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 27, 27, 27, 27, 71, 27, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 27, 67, 73, 74, 19, 19, 19, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 73, 72, 20, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 72, 72, 72, 76, 72, 72, 72, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 72, 72, 72, 72, 75, 72, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 77, 72, 73, 74, 19, 19, 19, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 73, 72, 20, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 72, 72, 72, 76, 72, 72, 72, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 72, 72, 72, 72, 75, 72, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 77, 72, 19, 19, 19, 19, 19, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 19, 18, 20, 18, 78, 18, 1, 79, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 14, 14, 14, 14, 14, 14, 14, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 14, 14, 14, 14, 80, 14, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 14, 81, 74, 19, 19, 19, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 81, 72, 20, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 72, 72, 72, 72, 72, 72, 72, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 72, 72, 72, 72, 75, 72, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 77, 72, 81, 74, 19, 19, 19, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 81, 72, 20, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 72, 72, 72, 72, 72, 72, 72, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 72, 72, 72, 72, 75, 72, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 77, 72, 82, 1, 84, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 83, 83, 83, 83, 83, 83, 83, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 83, 83, 83, 83, 85, 83, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 83, 83, 52, 86, 87, 88, 88, 88, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 86, 27, 89, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 27, 27, 27, 27, 27, 27, 27, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 27, 27, 27, 27, 90, 27, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 27, 27, 91, 27, 92, 93, 62, 62, 62, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 92, 27, 63, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 27, 27, 27, 27, 27, 27, 27, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 27, 27, 27, 27, 71, 27, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 27, 27, 94, 27, 62, 62, 62, 62, 62, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 62, 18, 63, 18, 95, 96, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 95, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 97, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 98, 18, 99, 100, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 99, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 70, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 94, 1, 1, 101, 102, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 101, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 103, 14, 14, 14, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 14, 14, 14, 14, 14, 14, 14, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 14, 14, 14, 14, 104, 14, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 14, 14, 105, 14, 106, 1, 0 ] class << self attr_accessor :_bel_trans_targs private :_bel_trans_targs, :_bel_trans_targs= end self._bel_trans_targs = [ 2, 0, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 0, 15, 40, 15, 0, 16, 17, 18, 43, 19, 18, 43, 19, 0, 21, 22, 23, 28, 21, 22, 23, 28, 24, 25, 27, 24, 25, 27, 26, 21, 48, 26, 48, 26, 21, 28, 48, 49, 0, 30, 31, 32, 51, 33, 32, 51, 33, 52, 35, 36, 37, 55, 39, 37, 55, 39, 38, 58, 0, 41, 42, 45, 46, 20, 44, 44, 45, 47, 44, 0, 50, 49, 53, 54, 35, 36, 58, 59, 53, 54, 59, 56, 57, 38, 59, 56, 57, 56, 57, 38, 58, 59, 57 ] class << self attr_accessor :_bel_trans_actions private :_bel_trans_actions, :_bel_trans_actions= end self._bel_trans_actions = [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 5, 0, 7, 0, 0, 9, 10, 9, 0, 11, 0, 13, 14, 14, 14, 15, 0, 0, 0, 3, 9, 10, 9, 0, 11, 0, 17, 17, 17, 0, 0, 20, 20, 0, 20, 3, 22, 0, 0, 9, 24, 9, 0, 25, 0, 0, 0, 0, 9, 10, 9, 0, 11, 0, 0, 3, 30, 0, 31, 3, 0, 0, 34, 36, 0, 0, 37, 39, 40, 0, 14, 14, 14, 14, 15, 14, 0, 0, 0, 17, 17, 17, 17, 0, 0, 20, 20, 20, 0, 20, 49 ] class << self attr_accessor :_bel_eof_actions private :_bel_eof_actions, :_bel_eof_actions= end self._bel_eof_actions = [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 4, 6, 8, 8, 8, 12, 12, 6, 8, 8, 16, 18, 8, 19, 0, 21, 23, 23, 23, 0, 26, 27, 27, 28, 27, 29, 32, 33, 34, 0, 35, 29, 32, 37, 38, 41, 0, 42, 43, 44, 45, 46, 46, 47, 48 ] class << self attr_accessor :bel_start end self.bel_start = 1; class << self attr_accessor :bel_first_final end self.bel_first_final = 40; class << self attr_accessor :bel_error end self.bel_error = 0; class << self attr_accessor :bel_en_ident_node end self.bel_en_ident_node = 29; class << self attr_accessor :bel_en_string_node end self.bel_en_string_node = 30; class << self attr_accessor :bel_en_list_node end self.bel_en_list_node = 34; class << self attr_accessor :bel_en_set_document_node end self.bel_en_set_document_node = 1; begin p ||= 0 pe ||= data.length cs = bel_start end begin testEof = false _slen, _trans, _keys, _inds, _acts, _nacts = nil _goto_level = 0 _resume = 10 _eof_trans = 15 _again = 20 _test_eof = 30 _out = 40 while true if _goto_level <= 0 if p == pe _goto_level = _test_eof next end if cs == 0 _goto_level = _out next end end if _goto_level <= _resume _keys = cs << 1 _inds = _bel_index_offsets[cs] _slen = _bel_key_spans[cs] _wide = data[p].ord _trans = if ( _slen > 0 && _bel_trans_keys[_keys] <= _wide && _wide <= _bel_trans_keys[_keys + 1] ) then _bel_indicies[ _inds + _wide - _bel_trans_keys[_keys] ] else _bel_indicies[ _inds + _slen ] end cs = _bel_trans_targs[_trans] if _bel_trans_actions[_trans] != 0 case _bel_trans_actions[_trans] when 3 then begin trace('IDENTIFIER start_identifier') @identifier_started = true id_start = p; end when 40 then begin trace('IDENTIFIER end_identifier') id_end = p chars = data[id_start...id_end] completed = !chars.empty? ast_node = identifier(utf8_string(chars), complete: completed) @buffers[:ident] = ast_node end when 2 then begin trace('IDENTIFIER an_ident_err') id_end = p chars = data[id_start...id_end] ast_node = identifier(utf8_string(chars), complete: false) @buffers[:ident] = ast_node end when 39 then begin trace('IDENTIFIER ident_node_err') id_end = p chars = data[id_start...id_end] ast_node = identifier(utf8_string(chars), complete: false) yield ast_node end when 9 then begin trace('STRING start_string') @string_opened = true p_start = p end when 7 then begin trace('STRING a_string_err') p_end = p chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: false) @buffers[:string] = ast_node end when 22 then begin trace('STRING string_node_err') p_end = p chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: false) yield ast_node end when 14 then begin trace('LIST start_list') @list_opened = true @incomplete[:list] = list() end when 49 then begin trace('LIST stop_list') @list_closed = true end when 17 then begin trace('LIST add_string') string = @buffers.delete(:string) item = list_item(string, complete: string.complete) @incomplete[:list] <<= item end when 20 then begin trace('IDENTIFIER end_identifier') id_end = p chars = data[id_start...id_end] completed = !chars.empty? ast_node = identifier(utf8_string(chars), complete: completed) @buffers[:ident] = ast_node end begin trace('LIST add_ident') ident = @buffers.delete(:ident) item = list_item(ident, complete: ident.complete) @incomplete[:list] <<= item end when 5 then begin trace('IDENTIFIER end_identifier') id_end = p chars = data[id_start...id_end] completed = !chars.empty? ast_node = identifier(utf8_string(chars), complete: completed) @buffers[:ident] = ast_node end begin trace('SET_DOCUMENT add_property') key = @buffers.delete(:ident) @buffers[:set_document_name] = name(key) end when 30 then begin trace('IDENTIFIER an_ident_err') id_end = p chars = data[id_start...id_end] ast_node = identifier(utf8_string(chars), complete: false) @buffers[:ident] = ast_node end begin trace('STRING a_string_err') p_end = p chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: false) @buffers[:string] = ast_node end when 11 then begin trace('STRING stop_string') @string_closed = true p_end = p end begin trace('STRING string_end') completed = @string_opened && @string_closed chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: true) @buffers[:string] = ast_node end when 13 then begin trace('STRING a_string_err') p_end = p chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: false) @buffers[:string] = ast_node end begin trace('IDENTIFIER an_ident_err') id_end = p chars = data[id_start...id_end] ast_node = identifier(utf8_string(chars), complete: false) @buffers[:ident] = ast_node end when 15 then begin trace('LIST start_list') @list_opened = true @incomplete[:list] = list() end begin trace('IDENTIFIER start_identifier') @identifier_started = true id_start = p; end when 31 then begin trace('SET_DOCUMENT set_document_end') set_document_node = document_property() completed = true name = @buffers.delete(:set_document_name) unless name.nil? set_document_node <<= name end value = @buffers.delete(:set_document_value) unless value.nil? set_document_node <<= value end completed = false unless name.nil? || value.nil? completed = name.complete && value.complete end set_document_node.complete = completed @buffers[:set_document] = set_document_node end begin trace('SET_DOCUMENT yield_set') yield @buffers[:set_document] end when 10 then begin trace('STRING start_string') @string_opened = true p_start = p end begin trace('STRING stop_string') @string_closed = true p_end = p end begin trace('STRING string_end') completed = @string_opened && @string_closed chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: true) @buffers[:string] = ast_node end when 25 then begin trace('STRING stop_string') @string_closed = true p_end = p end begin trace('STRING string_end') completed = @string_opened && @string_closed chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: true) @buffers[:string] = ast_node end begin trace('STRING yield_string') yield @buffers[:string] end when 34 then begin trace('SET_DOCUMENT add_string_value') string = @buffers.delete(:string) @buffers[:set_document_value] = value(string) end begin trace('SET_DOCUMENT set_document_end') set_document_node = document_property() completed = true name = @buffers.delete(:set_document_name) unless name.nil? set_document_node <<= name end value = @buffers.delete(:set_document_value) unless value.nil? set_document_node <<= value end completed = false unless name.nil? || value.nil? completed = name.complete && value.complete end set_document_node.complete = completed @buffers[:set_document] = set_document_node end begin trace('SET_DOCUMENT yield_set') yield @buffers[:set_document] end when 36 then begin trace('IDENTIFIER end_identifier') id_end = p chars = data[id_start...id_end] completed = !chars.empty? ast_node = identifier(utf8_string(chars), complete: completed) @buffers[:ident] = ast_node end begin trace('SET_DOCUMENT add_ident_value') ident = @buffers.delete(:ident) @buffers[:set_document_value] = value(ident) end begin trace('SET_DOCUMENT set_document_end') set_document_node = document_property() completed = true name = @buffers.delete(:set_document_name) unless name.nil? set_document_node <<= name end value = @buffers.delete(:set_document_value) unless value.nil? set_document_node <<= value end completed = false unless name.nil? || value.nil? completed = name.complete && value.complete end set_document_node.complete = completed @buffers[:set_document] = set_document_node end begin trace('SET_DOCUMENT yield_set') yield @buffers[:set_document] end when 24 then begin trace('STRING start_string') @string_opened = true p_start = p end begin trace('STRING stop_string') @string_closed = true p_end = p end begin trace('STRING string_end') completed = @string_opened && @string_closed chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: true) @buffers[:string] = ast_node end begin trace('STRING yield_string') yield @buffers[:string] end when 37 then begin trace('LIST stop_list') @list_closed = true end begin trace('LIST list_end') if @list_opened && @list_closed list = @incomplete.delete(:list) list.complete = true elsif !@list_closed list = @incomplete.delete(:list) list.complete = false end @buffers[:list] = list end begin trace('SET_DOCUMENT add_list_value') list = @buffers.delete(:list) @buffers[:set_document_value] = value(list) end begin trace('SET_DOCUMENT set_document_end') set_document_node = document_property() completed = true name = @buffers.delete(:set_document_name) unless name.nil? set_document_node <<= name end value = @buffers.delete(:set_document_value) unless value.nil? set_document_node <<= value end completed = false unless name.nil? || value.nil? completed = name.complete && value.complete end set_document_node.complete = completed @buffers[:set_document] = set_document_node end begin trace('SET_DOCUMENT yield_set') yield @buffers[:set_document] end end end end if _goto_level <= _again if cs == 0 _goto_level = _out next end p += 1 if p != pe _goto_level = _resume next end end if _goto_level <= _test_eof if p == eof case _bel_eof_actions[cs] when 41 then begin trace('IDENTIFIER yield_identifier') yield @buffers[:ident] end when 33 then begin trace('SET_DOCUMENT set_document_node_eof') name = @buffers.delete(:set_document_name) set_document_node = set(name) completed = name.complete if @buffers.key?(:string) value = @buffers.delete(:string) set_document_node <<= value(value) completed = completed && value.complete elsif @buffers.key?(:ident) value = @buffers.delete(:ident) set_document_node <<= value(value) completed = completed && value.complete elsif @buffers.key?(:list) value = @buffers.delete(:list) set_document_node <<= value(value) completed = completed && value.complete end set_document_node.complete = completed yield set_document_node end when 38 then begin trace('IDENTIFIER end_identifier') id_end = p chars = data[id_start...id_end] completed = !chars.empty? ast_node = identifier(utf8_string(chars), complete: completed) @buffers[:ident] = ast_node end begin trace('IDENTIFIER yield_identifier') yield @buffers[:ident] end when 4 then begin trace('IDENTIFIER an_ident_eof') if @identifier_started id_end = p chars = data[id_start...id_end] completed = !chars.empty? ast_node = identifier(utf8_string(chars), complete: completed) @buffers[:ident] = ast_node end end begin trace('IDENTIFIER an_ident_err') id_end = p chars = data[id_start...id_end] ast_node = identifier(utf8_string(chars), complete: false) @buffers[:ident] = ast_node end when 26 then begin trace('STRING a_string_err') p_end = p chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: false) @buffers[:string] = ast_node end begin trace('LIST list_node_eof') list = @incomplete.delete(:list) string = @buffers.delete(:string) item = list_item(string, complete: string.complete) list <<= item list.complete = false yield list end when 6 then begin trace('STRING a_string_err') p_end = p chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: false) @buffers[:string] = ast_node end begin trace('SET_DOCUMENT set_document_node_eof') name = @buffers.delete(:set_document_name) set_document_node = set(name) completed = name.complete if @buffers.key?(:string) value = @buffers.delete(:string) set_document_node <<= value(value) completed = completed && value.complete elsif @buffers.key?(:ident) value = @buffers.delete(:ident) set_document_node <<= value(value) completed = completed && value.complete elsif @buffers.key?(:list) value = @buffers.delete(:list) set_document_node <<= value(value) completed = completed && value.complete end set_document_node.complete = completed yield set_document_node end when 21 then begin trace('STRING string_node_err') p_end = p chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: false) yield ast_node end begin trace('STRING string_node_eof') yield @buffers[:string] end when 46 then begin trace('LIST list_end') if @list_opened && @list_closed list = @incomplete.delete(:list) list.complete = true elsif !@list_closed list = @incomplete.delete(:list) list.complete = false end @buffers[:list] = list end begin trace('LIST yield_list') yield @buffers[:list] end when 18 then begin trace('LIST a_list_eof') list = @incomplete.delete(:list) string = @buffers.delete(:string) unless string.nil? item = list_item(string, complete: string.complete) list <<= item end ident = @buffers.delete(:ident) unless ident.nil? item = list_item(ident, complete: ident.complete) list <<= item end if @list_opened && @list_closed list.complete = true else list.complete = false end @buffers[:list] = list end begin trace('SET_DOCUMENT set_document_node_eof') name = @buffers.delete(:set_document_name) set_document_node = set(name) completed = name.complete if @buffers.key?(:string) value = @buffers.delete(:string) set_document_node <<= value(value) completed = completed && value.complete elsif @buffers.key?(:ident) value = @buffers.delete(:ident) set_document_node <<= value(value) completed = completed && value.complete elsif @buffers.key?(:list) value = @buffers.delete(:list) set_document_node <<= value(value) completed = completed && value.complete end set_document_node.complete = completed yield set_document_node end when 1 then begin trace('IDENTIFIER an_ident_eof') if @identifier_started id_end = p chars = data[id_start...id_end] completed = !chars.empty? ast_node = identifier(utf8_string(chars), complete: completed) @buffers[:ident] = ast_node end end begin trace('IDENTIFIER an_ident_err') id_end = p chars = data[id_start...id_end] ast_node = identifier(utf8_string(chars), complete: false) @buffers[:ident] = ast_node end begin trace('SET_DOCUMENT set_document_node_eof') name = @buffers.delete(:set_document_name) set_document_node = set(name) completed = name.complete if @buffers.key?(:string) value = @buffers.delete(:string) set_document_node <<= value(value) completed = completed && value.complete elsif @buffers.key?(:ident) value = @buffers.delete(:ident) set_document_node <<= value(value) completed = completed && value.complete elsif @buffers.key?(:list) value = @buffers.delete(:list) set_document_node <<= value(value) completed = completed && value.complete end set_document_node.complete = completed yield set_document_node end when 29 then begin trace('IDENTIFIER an_ident_eof') if @identifier_started id_end = p chars = data[id_start...id_end] completed = !chars.empty? ast_node = identifier(utf8_string(chars), complete: completed) @buffers[:ident] = ast_node end end begin trace('SET_DOCUMENT set_document_end') set_document_node = document_property() completed = true name = @buffers.delete(:set_document_name) unless name.nil? set_document_node <<= name end value = @buffers.delete(:set_document_value) unless value.nil? set_document_node <<= value end completed = false unless name.nil? || value.nil? completed = name.complete && value.complete end set_document_node.complete = completed @buffers[:set_document] = set_document_node end begin trace('SET_DOCUMENT yield_set') yield @buffers[:set_document] end when 27 then begin trace('STRING eof_string') p_end = p chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: false) @buffers[:string] = ast_node end begin trace('STRING a_string_err') p_end = p chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: false) @buffers[:string] = ast_node end begin trace('LIST list_node_eof') list = @incomplete.delete(:list) string = @buffers.delete(:string) item = list_item(string, complete: string.complete) list <<= item list.complete = false yield list end when 8 then begin trace('STRING eof_string') p_end = p chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: false) @buffers[:string] = ast_node end begin trace('STRING a_string_err') p_end = p chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: false) @buffers[:string] = ast_node end begin trace('SET_DOCUMENT set_document_node_eof') name = @buffers.delete(:set_document_name) set_document_node = set(name) completed = name.complete if @buffers.key?(:string) value = @buffers.delete(:string) set_document_node <<= value(value) completed = completed && value.complete elsif @buffers.key?(:ident) value = @buffers.delete(:ident) set_document_node <<= value(value) completed = completed && value.complete elsif @buffers.key?(:list) value = @buffers.delete(:list) set_document_node <<= value(value) completed = completed && value.complete end set_document_node.complete = completed yield set_document_node end when 23 then begin trace('STRING eof_string') p_end = p chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: false) @buffers[:string] = ast_node end begin trace('STRING string_node_err') p_end = p chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: false) yield ast_node end begin trace('STRING string_node_eof') yield @buffers[:string] end when 16 then begin trace('STRING a_string_err') p_end = p chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: false) @buffers[:string] = ast_node end begin trace('LIST a_list_eof') list = @incomplete.delete(:list) string = @buffers.delete(:string) unless string.nil? item = list_item(string, complete: string.complete) list <<= item end ident = @buffers.delete(:ident) unless ident.nil? item = list_item(ident, complete: ident.complete) list <<= item end if @list_opened && @list_closed list.complete = true else list.complete = false end @buffers[:list] = list end begin trace('SET_DOCUMENT set_document_node_eof') name = @buffers.delete(:set_document_name) set_document_node = set(name) completed = name.complete if @buffers.key?(:string) value = @buffers.delete(:string) set_document_node <<= value(value) completed = completed && value.complete elsif @buffers.key?(:ident) value = @buffers.delete(:ident) set_document_node <<= value(value) completed = completed && value.complete elsif @buffers.key?(:list) value = @buffers.delete(:list) set_document_node <<= value(value) completed = completed && value.complete end set_document_node.complete = completed yield set_document_node end when 48 then begin trace('LIST stop_list') @list_closed = true end begin trace('LIST list_end') if @list_opened && @list_closed list = @incomplete.delete(:list) list.complete = true elsif !@list_closed list = @incomplete.delete(:list) list.complete = false end @buffers[:list] = list end begin trace('LIST yield_list') yield @buffers[:list] end when 45 then begin trace('LIST add_string') string = @buffers.delete(:string) item = list_item(string, complete: string.complete) @incomplete[:list] <<= item end begin trace('LIST list_end') if @list_opened && @list_closed list = @incomplete.delete(:list) list.complete = true elsif !@list_closed list = @incomplete.delete(:list) list.complete = false end @buffers[:list] = list end begin trace('LIST yield_list') yield @buffers[:list] end when 44 then begin trace('LIST list_node_eof') list = @incomplete.delete(:list) string = @buffers.delete(:string) item = list_item(string, complete: string.complete) list <<= item list.complete = false yield list end begin trace('LIST list_end') if @list_opened && @list_closed list = @incomplete.delete(:list) list.complete = true elsif !@list_closed list = @incomplete.delete(:list) list.complete = false end @buffers[:list] = list end begin trace('LIST yield_list') yield @buffers[:list] end when 34 then begin trace('SET_DOCUMENT add_string_value') string = @buffers.delete(:string) @buffers[:set_document_value] = value(string) end begin trace('SET_DOCUMENT set_document_end') set_document_node = document_property() completed = true name = @buffers.delete(:set_document_name) unless name.nil? set_document_node <<= name end value = @buffers.delete(:set_document_value) unless value.nil? set_document_node <<= value end completed = false unless name.nil? || value.nil? completed = name.complete && value.complete end set_document_node.complete = completed @buffers[:set_document] = set_document_node end begin trace('SET_DOCUMENT yield_set') yield @buffers[:set_document] end when 19 then begin trace('IDENTIFIER an_ident_eof') if @identifier_started id_end = p chars = data[id_start...id_end] completed = !chars.empty? ast_node = identifier(utf8_string(chars), complete: completed) @buffers[:ident] = ast_node end end begin trace('IDENTIFIER an_ident_err') id_end = p chars = data[id_start...id_end] ast_node = identifier(utf8_string(chars), complete: false) @buffers[:ident] = ast_node end begin trace('LIST a_list_eof') list = @incomplete.delete(:list) string = @buffers.delete(:string) unless string.nil? item = list_item(string, complete: string.complete) list <<= item end ident = @buffers.delete(:ident) unless ident.nil? item = list_item(ident, complete: ident.complete) list <<= item end if @list_opened && @list_closed list.complete = true else list.complete = false end @buffers[:list] = list end begin trace('SET_DOCUMENT set_document_node_eof') name = @buffers.delete(:set_document_name) set_document_node = set(name) completed = name.complete if @buffers.key?(:string) value = @buffers.delete(:string) set_document_node <<= value(value) completed = completed && value.complete elsif @buffers.key?(:ident) value = @buffers.delete(:ident) set_document_node <<= value(value) completed = completed && value.complete elsif @buffers.key?(:list) value = @buffers.delete(:list) set_document_node <<= value(value) completed = completed && value.complete end set_document_node.complete = completed yield set_document_node end when 43 then begin trace('IDENTIFIER an_ident_eof') if @identifier_started id_end = p chars = data[id_start...id_end] completed = !chars.empty? ast_node = identifier(utf8_string(chars), complete: completed) @buffers[:ident] = ast_node end end begin trace('LIST list_node_eof') list = @incomplete.delete(:list) string = @buffers.delete(:string) item = list_item(string, complete: string.complete) list <<= item list.complete = false yield list end begin trace('LIST list_end') if @list_opened && @list_closed list = @incomplete.delete(:list) list.complete = true elsif !@list_closed list = @incomplete.delete(:list) list.complete = false end @buffers[:list] = list end begin trace('LIST yield_list') yield @buffers[:list] end when 32 then begin trace('IDENTIFIER an_ident_eof') if @identifier_started id_end = p chars = data[id_start...id_end] completed = !chars.empty? ast_node = identifier(utf8_string(chars), complete: completed) @buffers[:ident] = ast_node end end begin trace('SET_DOCUMENT set_document_node_eof') name = @buffers.delete(:set_document_name) set_document_node = set(name) completed = name.complete if @buffers.key?(:string) value = @buffers.delete(:string) set_document_node <<= value(value) completed = completed && value.complete elsif @buffers.key?(:ident) value = @buffers.delete(:ident) set_document_node <<= value(value) completed = completed && value.complete elsif @buffers.key?(:list) value = @buffers.delete(:list) set_document_node <<= value(value) completed = completed && value.complete end set_document_node.complete = completed yield set_document_node end begin trace('SET_DOCUMENT set_document_end') set_document_node = document_property() completed = true name = @buffers.delete(:set_document_name) unless name.nil? set_document_node <<= name end value = @buffers.delete(:set_document_value) unless value.nil? set_document_node <<= value end completed = false unless name.nil? || value.nil? completed = name.complete && value.complete end set_document_node.complete = completed @buffers[:set_document] = set_document_node end begin trace('SET_DOCUMENT yield_set') yield @buffers[:set_document] end when 28 then begin trace('STRING a_string_err') p_end = p chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: false) @buffers[:string] = ast_node end begin trace('IDENTIFIER an_ident_eof') if @identifier_started id_end = p chars = data[id_start...id_end] completed = !chars.empty? ast_node = identifier(utf8_string(chars), complete: completed) @buffers[:ident] = ast_node end end begin trace('IDENTIFIER an_ident_err') id_end = p chars = data[id_start...id_end] ast_node = identifier(utf8_string(chars), complete: false) @buffers[:ident] = ast_node end begin trace('LIST list_node_eof') list = @incomplete.delete(:list) string = @buffers.delete(:string) item = list_item(string, complete: string.complete) list <<= item list.complete = false yield list end when 12 then begin trace('STRING a_string_err') p_end = p chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: false) @buffers[:string] = ast_node end begin trace('IDENTIFIER an_ident_eof') if @identifier_started id_end = p chars = data[id_start...id_end] completed = !chars.empty? ast_node = identifier(utf8_string(chars), complete: completed) @buffers[:ident] = ast_node end end begin trace('IDENTIFIER an_ident_err') id_end = p chars = data[id_start...id_end] ast_node = identifier(utf8_string(chars), complete: false) @buffers[:ident] = ast_node end begin trace('SET_DOCUMENT set_document_node_eof') name = @buffers.delete(:set_document_name) set_document_node = set(name) completed = name.complete if @buffers.key?(:string) value = @buffers.delete(:string) set_document_node <<= value(value) completed = completed && value.complete elsif @buffers.key?(:ident) value = @buffers.delete(:ident) set_document_node <<= value(value) completed = completed && value.complete elsif @buffers.key?(:list) value = @buffers.delete(:list) set_document_node <<= value(value) completed = completed && value.complete end set_document_node.complete = completed yield set_document_node end when 42 then begin trace('LIST start_list') @list_opened = true @incomplete[:list] = list() end begin trace('IDENTIFIER an_ident_eof') if @identifier_started id_end = p chars = data[id_start...id_end] completed = !chars.empty? ast_node = identifier(utf8_string(chars), complete: completed) @buffers[:ident] = ast_node end end begin trace('LIST list_end') if @list_opened && @list_closed list = @incomplete.delete(:list) list.complete = true elsif !@list_closed list = @incomplete.delete(:list) list.complete = false end @buffers[:list] = list end begin trace('LIST yield_list') yield @buffers[:list] end when 47 then begin trace('IDENTIFIER end_identifier') id_end = p chars = data[id_start...id_end] completed = !chars.empty? ast_node = identifier(utf8_string(chars), complete: completed) @buffers[:ident] = ast_node end begin trace('IDENTIFIER an_ident_eof') if @identifier_started id_end = p chars = data[id_start...id_end] completed = !chars.empty? ast_node = identifier(utf8_string(chars), complete: completed) @buffers[:ident] = ast_node end end begin trace('LIST add_ident') ident = @buffers.delete(:ident) item = list_item(ident, complete: ident.complete) @incomplete[:list] <<= item end begin trace('LIST list_end') if @list_opened && @list_closed list = @incomplete.delete(:list) list.complete = true elsif !@list_closed list = @incomplete.delete(:list) list.complete = false end @buffers[:list] = list end begin trace('LIST yield_list') yield @buffers[:list] end when 35 then begin trace('IDENTIFIER end_identifier') id_end = p chars = data[id_start...id_end] completed = !chars.empty? ast_node = identifier(utf8_string(chars), complete: completed) @buffers[:ident] = ast_node end begin trace('IDENTIFIER an_ident_eof') if @identifier_started id_end = p chars = data[id_start...id_end] completed = !chars.empty? ast_node = identifier(utf8_string(chars), complete: completed) @buffers[:ident] = ast_node end end begin trace('SET_DOCUMENT add_ident_value') ident = @buffers.delete(:ident) @buffers[:set_document_value] = value(ident) end begin trace('SET_DOCUMENT set_document_end') set_document_node = document_property() completed = true name = @buffers.delete(:set_document_name) unless name.nil? set_document_node <<= name end value = @buffers.delete(:set_document_value) unless value.nil? set_document_node <<= value end completed = false unless name.nil? || value.nil? completed = name.complete && value.complete end set_document_node.complete = completed @buffers[:set_document] = set_document_node end begin trace('SET_DOCUMENT yield_set') yield @buffers[:set_document] end when 37 then begin trace('LIST stop_list') @list_closed = true end begin trace('LIST list_end') if @list_opened && @list_closed list = @incomplete.delete(:list) list.complete = true elsif !@list_closed list = @incomplete.delete(:list) list.complete = false end @buffers[:list] = list end begin trace('SET_DOCUMENT add_list_value') list = @buffers.delete(:list) @buffers[:set_document_value] = value(list) end begin trace('SET_DOCUMENT set_document_end') set_document_node = document_property() completed = true name = @buffers.delete(:set_document_name) unless name.nil? set_document_node <<= name end value = @buffers.delete(:set_document_value) unless value.nil? set_document_node <<= value end completed = false unless name.nil? || value.nil? completed = name.complete && value.complete end set_document_node.complete = completed @buffers[:set_document] = set_document_node end begin trace('SET_DOCUMENT yield_set') yield @buffers[:set_document] end end end end if _goto_level <= _out break end end end class << self attr_accessor :_bel_trans_keys private :_bel_trans_keys, :_bel_trans_keys= end self._bel_trans_keys = [ 0, 0, 83, 115, 69, 101, 84, 116, 9, 32, 9, 100, 79, 111, 67, 99, 85, 117, 77, 109, 69, 101, 78, 110, 84, 116, 9, 32, 9, 122, 9, 122, 9, 34, 34, 92, 34, 92, 0, 0, 9, 122, 9, 122, 9, 34, 34, 92, 34, 92, 9, 125, 9, 125, 0, 0, 9, 125, 48, 122, 9, 34, 34, 92, 34, 92, 0, 0, 123, 123, 9, 34, 34, 92, 34, 92, 9, 122, 0, 0, 9, 123, 9, 123, 9, 34, 10, 10, 0, 0, 10, 122, 9, 123, 9, 123, 10, 10, 10, 122, 0, 0, 0, 0, 9, 125, 9, 125, 9, 34, 9, 125, 9, 125, 0, 0, 9, 125, 10, 10, 0 ] class << self attr_accessor :_bel_key_spans private :_bel_key_spans, :_bel_key_spans= end self._bel_key_spans = [ 0, 33, 33, 33, 24, 92, 33, 33, 33, 33, 33, 33, 33, 24, 114, 114, 26, 59, 59, 0, 114, 114, 26, 59, 59, 117, 117, 0, 117, 75, 26, 59, 59, 0, 1, 26, 59, 59, 114, 0, 115, 115, 26, 1, 0, 113, 115, 115, 1, 113, 0, 0, 117, 117, 26, 117, 117, 0, 117, 1 ] class << self attr_accessor :_bel_index_offsets private :_bel_index_offsets, :_bel_index_offsets= end self._bel_index_offsets = [ 0, 0, 34, 68, 102, 127, 220, 254, 288, 322, 356, 390, 424, 458, 483, 598, 713, 740, 800, 860, 861, 976, 1091, 1118, 1178, 1238, 1356, 1474, 1475, 1593, 1669, 1696, 1756, 1816, 1817, 1819, 1846, 1906, 1966, 2081, 2082, 2198, 2314, 2341, 2343, 2344, 2458, 2574, 2690, 2692, 2806, 2807, 2808, 2926, 3044, 3071, 3189, 3307, 3308, 3426 ] class << self attr_accessor :_bel_indicies private :_bel_indicies, :_bel_indicies= end self._bel_indicies = [ 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 4, 1, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 1, 6, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 6, 1, 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 7, 1, 8, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 8, 1, 9, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 9, 1, 10, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 10, 1, 11, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 1, 12, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 12, 1, 13, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 13, 1, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 14, 14, 15, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 16, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 16, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 14, 14, 14, 14, 14, 14, 14, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 14, 14, 14, 14, 17, 14, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 14, 19, 19, 19, 19, 19, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 19, 18, 20, 18, 22, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 23, 21, 25, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 26, 24, 24, 28, 29, 29, 29, 29, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 28, 27, 30, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 27, 27, 27, 27, 27, 27, 27, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 27, 27, 27, 27, 31, 27, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 27, 32, 33, 33, 33, 33, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 32, 27, 34, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 27, 27, 27, 27, 27, 27, 27, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 27, 27, 27, 27, 35, 27, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 27, 33, 33, 33, 33, 33, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 33, 18, 34, 18, 37, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 38, 36, 40, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 41, 39, 42, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 42, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 43, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 44, 18, 45, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 45, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 32, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 46, 1, 39, 47, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 47, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 48, 14, 14, 14, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 14, 14, 14, 14, 14, 14, 14, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 14, 14, 14, 14, 49, 14, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 14, 14, 50, 14, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 1, 1, 1, 1, 1, 1, 1, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 1, 1, 1, 1, 51, 1, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 1, 53, 53, 53, 53, 53, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 53, 52, 54, 52, 56, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 57, 55, 59, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 60, 58, 58, 61, 1, 62, 62, 62, 62, 62, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 62, 18, 63, 18, 65, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 66, 64, 68, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 69, 67, 70, 62, 62, 62, 62, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 70, 27, 63, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 27, 27, 27, 27, 27, 27, 27, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 27, 27, 27, 27, 71, 27, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 27, 67, 73, 74, 19, 19, 19, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 73, 72, 20, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 72, 72, 72, 76, 72, 72, 72, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 72, 72, 72, 72, 75, 72, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 77, 72, 73, 74, 19, 19, 19, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 73, 72, 20, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 72, 72, 72, 76, 72, 72, 72, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 72, 72, 72, 72, 75, 72, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 77, 72, 19, 19, 19, 19, 19, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 19, 18, 20, 18, 78, 18, 1, 79, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 14, 14, 14, 14, 14, 14, 14, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 14, 14, 14, 14, 80, 14, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 14, 81, 74, 19, 19, 19, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 81, 72, 20, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 72, 72, 72, 72, 72, 72, 72, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 72, 72, 72, 72, 75, 72, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 77, 72, 81, 74, 19, 19, 19, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 81, 72, 20, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 72, 72, 72, 72, 72, 72, 72, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 72, 72, 72, 72, 75, 72, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 77, 72, 82, 1, 84, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 83, 83, 83, 83, 83, 83, 83, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 83, 83, 83, 83, 85, 83, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 83, 83, 52, 86, 87, 88, 88, 88, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 86, 27, 89, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 27, 27, 27, 27, 27, 27, 27, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 27, 27, 27, 27, 90, 27, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 27, 27, 91, 27, 92, 93, 62, 62, 62, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 92, 27, 63, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 27, 27, 27, 27, 27, 27, 27, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 27, 27, 27, 27, 71, 27, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 27, 27, 94, 27, 62, 62, 62, 62, 62, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 62, 18, 63, 18, 95, 96, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 95, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 97, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 98, 18, 99, 100, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 99, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 70, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 94, 1, 1, 101, 102, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 101, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 103, 14, 14, 14, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 14, 14, 14, 14, 14, 14, 14, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 14, 14, 14, 14, 104, 14, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 14, 14, 105, 14, 106, 1, 0 ] class << self attr_accessor :_bel_trans_targs private :_bel_trans_targs, :_bel_trans_targs= end self._bel_trans_targs = [ 2, 0, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 0, 15, 40, 15, 0, 16, 17, 18, 43, 19, 18, 43, 19, 0, 21, 22, 23, 28, 21, 22, 23, 28, 24, 25, 27, 24, 25, 27, 26, 21, 48, 26, 48, 26, 21, 28, 48, 49, 0, 30, 31, 32, 51, 33, 32, 51, 33, 52, 35, 36, 37, 55, 39, 37, 55, 39, 38, 58, 0, 41, 42, 45, 46, 20, 44, 44, 45, 47, 44, 0, 50, 49, 53, 54, 35, 36, 58, 59, 53, 54, 59, 56, 57, 38, 59, 56, 57, 56, 57, 38, 58, 59, 57 ] class << self attr_accessor :_bel_trans_actions private :_bel_trans_actions, :_bel_trans_actions= end self._bel_trans_actions = [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 5, 0, 7, 0, 0, 9, 10, 9, 0, 11, 0, 13, 14, 14, 14, 15, 0, 0, 0, 3, 9, 10, 9, 0, 11, 0, 17, 17, 17, 0, 0, 20, 20, 0, 20, 3, 22, 0, 0, 9, 24, 9, 0, 25, 0, 0, 0, 0, 9, 10, 9, 0, 11, 0, 0, 3, 30, 0, 31, 3, 0, 0, 34, 36, 0, 0, 37, 39, 40, 0, 14, 14, 14, 14, 15, 14, 0, 0, 0, 17, 17, 17, 17, 0, 0, 20, 20, 20, 0, 20, 49 ] class << self attr_accessor :_bel_eof_actions private :_bel_eof_actions, :_bel_eof_actions= end self._bel_eof_actions = [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 4, 6, 8, 8, 8, 12, 12, 6, 8, 8, 16, 18, 8, 19, 0, 21, 23, 23, 23, 0, 26, 27, 27, 28, 27, 29, 32, 33, 34, 0, 35, 29, 32, 37, 38, 41, 0, 42, 43, 44, 45, 46, 46, 47, 48 ] class << self attr_accessor :bel_start end self.bel_start = 1; class << self attr_accessor :bel_first_final end self.bel_first_final = 40; class << self attr_accessor :bel_error end self.bel_error = 0; class << self attr_accessor :bel_en_ident_node end self.bel_en_ident_node = 29; class << self attr_accessor :bel_en_string_node end self.bel_en_string_node = 30; class << self attr_accessor :bel_en_list_node end self.bel_en_list_node = 34; class << self attr_accessor :bel_en_set_document_node end self.bel_en_set_document_node = 1; begin p ||= 0 pe ||= data.length cs = bel_start end begin testEof = false _slen, _trans, _keys, _inds, _acts, _nacts = nil _goto_level = 0 _resume = 10 _eof_trans = 15 _again = 20 _test_eof = 30 _out = 40 while true if _goto_level <= 0 if p == pe _goto_level = _test_eof next end if cs == 0 _goto_level = _out next end end if _goto_level <= _resume _keys = cs << 1 _inds = _bel_index_offsets[cs] _slen = _bel_key_spans[cs] _wide = data[p].ord _trans = if ( _slen > 0 && _bel_trans_keys[_keys] <= _wide && _wide <= _bel_trans_keys[_keys + 1] ) then _bel_indicies[ _inds + _wide - _bel_trans_keys[_keys] ] else _bel_indicies[ _inds + _slen ] end cs = _bel_trans_targs[_trans] if _bel_trans_actions[_trans] != 0 case _bel_trans_actions[_trans] when 3 then begin trace('IDENTIFIER start_identifier') @identifier_started = true id_start = p; end when 40 then begin trace('IDENTIFIER end_identifier') id_end = p chars = data[id_start...id_end] completed = !chars.empty? ast_node = identifier(utf8_string(chars), complete: completed) @buffers[:ident] = ast_node end when 2 then begin trace('IDENTIFIER an_ident_err') id_end = p chars = data[id_start...id_end] ast_node = identifier(utf8_string(chars), complete: false) @buffers[:ident] = ast_node end when 39 then begin trace('IDENTIFIER ident_node_err') id_end = p chars = data[id_start...id_end] ast_node = identifier(utf8_string(chars), complete: false) yield ast_node end when 9 then begin trace('STRING start_string') @string_opened = true p_start = p end when 7 then begin trace('STRING a_string_err') p_end = p chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: false) @buffers[:string] = ast_node end when 22 then begin trace('STRING string_node_err') p_end = p chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: false) yield ast_node end when 14 then begin trace('LIST start_list') @list_opened = true @incomplete[:list] = list() end when 49 then begin trace('LIST stop_list') @list_closed = true end when 17 then begin trace('LIST add_string') string = @buffers.delete(:string) item = list_item(string, complete: string.complete) @incomplete[:list] <<= item end when 20 then begin trace('IDENTIFIER end_identifier') id_end = p chars = data[id_start...id_end] completed = !chars.empty? ast_node = identifier(utf8_string(chars), complete: completed) @buffers[:ident] = ast_node end begin trace('LIST add_ident') ident = @buffers.delete(:ident) item = list_item(ident, complete: ident.complete) @incomplete[:list] <<= item end when 5 then begin trace('IDENTIFIER end_identifier') id_end = p chars = data[id_start...id_end] completed = !chars.empty? ast_node = identifier(utf8_string(chars), complete: completed) @buffers[:ident] = ast_node end begin trace('SET_DOCUMENT add_property') key = @buffers.delete(:ident) @buffers[:set_document_name] = name(key) end when 30 then begin trace('IDENTIFIER an_ident_err') id_end = p chars = data[id_start...id_end] ast_node = identifier(utf8_string(chars), complete: false) @buffers[:ident] = ast_node end begin trace('STRING a_string_err') p_end = p chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: false) @buffers[:string] = ast_node end when 11 then begin trace('STRING stop_string') @string_closed = true p_end = p end begin trace('STRING string_end') completed = @string_opened && @string_closed chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: true) @buffers[:string] = ast_node end when 13 then begin trace('STRING a_string_err') p_end = p chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: false) @buffers[:string] = ast_node end begin trace('IDENTIFIER an_ident_err') id_end = p chars = data[id_start...id_end] ast_node = identifier(utf8_string(chars), complete: false) @buffers[:ident] = ast_node end when 15 then begin trace('LIST start_list') @list_opened = true @incomplete[:list] = list() end begin trace('IDENTIFIER start_identifier') @identifier_started = true id_start = p; end when 31 then begin trace('SET_DOCUMENT set_document_end') set_document_node = document_property() completed = true name = @buffers.delete(:set_document_name) unless name.nil? set_document_node <<= name end value = @buffers.delete(:set_document_value) unless value.nil? set_document_node <<= value end completed = false unless name.nil? || value.nil? completed = name.complete && value.complete end set_document_node.complete = completed @buffers[:set_document] = set_document_node end begin trace('SET_DOCUMENT yield_set') yield @buffers[:set_document] end when 10 then begin trace('STRING start_string') @string_opened = true p_start = p end begin trace('STRING stop_string') @string_closed = true p_end = p end begin trace('STRING string_end') completed = @string_opened && @string_closed chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: true) @buffers[:string] = ast_node end when 25 then begin trace('STRING stop_string') @string_closed = true p_end = p end begin trace('STRING string_end') completed = @string_opened && @string_closed chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: true) @buffers[:string] = ast_node end begin trace('STRING yield_string') yield @buffers[:string] end when 34 then begin trace('SET_DOCUMENT add_string_value') string = @buffers.delete(:string) @buffers[:set_document_value] = value(string) end begin trace('SET_DOCUMENT set_document_end') set_document_node = document_property() completed = true name = @buffers.delete(:set_document_name) unless name.nil? set_document_node <<= name end value = @buffers.delete(:set_document_value) unless value.nil? set_document_node <<= value end completed = false unless name.nil? || value.nil? completed = name.complete && value.complete end set_document_node.complete = completed @buffers[:set_document] = set_document_node end begin trace('SET_DOCUMENT yield_set') yield @buffers[:set_document] end when 36 then begin trace('IDENTIFIER end_identifier') id_end = p chars = data[id_start...id_end] completed = !chars.empty? ast_node = identifier(utf8_string(chars), complete: completed) @buffers[:ident] = ast_node end begin trace('SET_DOCUMENT add_ident_value') ident = @buffers.delete(:ident) @buffers[:set_document_value] = value(ident) end begin trace('SET_DOCUMENT set_document_end') set_document_node = document_property() completed = true name = @buffers.delete(:set_document_name) unless name.nil? set_document_node <<= name end value = @buffers.delete(:set_document_value) unless value.nil? set_document_node <<= value end completed = false unless name.nil? || value.nil? completed = name.complete && value.complete end set_document_node.complete = completed @buffers[:set_document] = set_document_node end begin trace('SET_DOCUMENT yield_set') yield @buffers[:set_document] end when 24 then begin trace('STRING start_string') @string_opened = true p_start = p end begin trace('STRING stop_string') @string_closed = true p_end = p end begin trace('STRING string_end') completed = @string_opened && @string_closed chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: true) @buffers[:string] = ast_node end begin trace('STRING yield_string') yield @buffers[:string] end when 37 then begin trace('LIST stop_list') @list_closed = true end begin trace('LIST list_end') if @list_opened && @list_closed list = @incomplete.delete(:list) list.complete = true elsif !@list_closed list = @incomplete.delete(:list) list.complete = false end @buffers[:list] = list end begin trace('SET_DOCUMENT add_list_value') list = @buffers.delete(:list) @buffers[:set_document_value] = value(list) end begin trace('SET_DOCUMENT set_document_end') set_document_node = document_property() completed = true name = @buffers.delete(:set_document_name) unless name.nil? set_document_node <<= name end value = @buffers.delete(:set_document_value) unless value.nil? set_document_node <<= value end completed = false unless name.nil? || value.nil? completed = name.complete && value.complete end set_document_node.complete = completed @buffers[:set_document] = set_document_node end begin trace('SET_DOCUMENT yield_set') yield @buffers[:set_document] end end end end if _goto_level <= _again if cs == 0 _goto_level = _out next end p += 1 if p != pe _goto_level = _resume next end end if _goto_level <= _test_eof if p == eof case _bel_eof_actions[cs] when 41 then begin trace('IDENTIFIER yield_identifier') yield @buffers[:ident] end when 33 then begin trace('SET_DOCUMENT set_document_node_eof') name = @buffers.delete(:set_document_name) set_document_node = set(name) completed = name.complete if @buffers.key?(:string) value = @buffers.delete(:string) set_document_node <<= value(value) completed = completed && value.complete elsif @buffers.key?(:ident) value = @buffers.delete(:ident) set_document_node <<= value(value) completed = completed && value.complete elsif @buffers.key?(:list) value = @buffers.delete(:list) set_document_node <<= value(value) completed = completed && value.complete end set_document_node.complete = completed yield set_document_node end when 38 then begin trace('IDENTIFIER end_identifier') id_end = p chars = data[id_start...id_end] completed = !chars.empty? ast_node = identifier(utf8_string(chars), complete: completed) @buffers[:ident] = ast_node end begin trace('IDENTIFIER yield_identifier') yield @buffers[:ident] end when 4 then begin trace('IDENTIFIER an_ident_eof') if @identifier_started id_end = p chars = data[id_start...id_end] completed = !chars.empty? ast_node = identifier(utf8_string(chars), complete: completed) @buffers[:ident] = ast_node end end begin trace('IDENTIFIER an_ident_err') id_end = p chars = data[id_start...id_end] ast_node = identifier(utf8_string(chars), complete: false) @buffers[:ident] = ast_node end when 26 then begin trace('STRING a_string_err') p_end = p chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: false) @buffers[:string] = ast_node end begin trace('LIST list_node_eof') list = @incomplete.delete(:list) string = @buffers.delete(:string) item = list_item(string, complete: string.complete) list <<= item list.complete = false yield list end when 6 then begin trace('STRING a_string_err') p_end = p chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: false) @buffers[:string] = ast_node end begin trace('SET_DOCUMENT set_document_node_eof') name = @buffers.delete(:set_document_name) set_document_node = set(name) completed = name.complete if @buffers.key?(:string) value = @buffers.delete(:string) set_document_node <<= value(value) completed = completed && value.complete elsif @buffers.key?(:ident) value = @buffers.delete(:ident) set_document_node <<= value(value) completed = completed && value.complete elsif @buffers.key?(:list) value = @buffers.delete(:list) set_document_node <<= value(value) completed = completed && value.complete end set_document_node.complete = completed yield set_document_node end when 21 then begin trace('STRING string_node_err') p_end = p chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: false) yield ast_node end begin trace('STRING string_node_eof') yield @buffers[:string] end when 46 then begin trace('LIST list_end') if @list_opened && @list_closed list = @incomplete.delete(:list) list.complete = true elsif !@list_closed list = @incomplete.delete(:list) list.complete = false end @buffers[:list] = list end begin trace('LIST yield_list') yield @buffers[:list] end when 18 then begin trace('LIST a_list_eof') list = @incomplete.delete(:list) string = @buffers.delete(:string) unless string.nil? item = list_item(string, complete: string.complete) list <<= item end ident = @buffers.delete(:ident) unless ident.nil? item = list_item(ident, complete: ident.complete) list <<= item end if @list_opened && @list_closed list.complete = true else list.complete = false end @buffers[:list] = list end begin trace('SET_DOCUMENT set_document_node_eof') name = @buffers.delete(:set_document_name) set_document_node = set(name) completed = name.complete if @buffers.key?(:string) value = @buffers.delete(:string) set_document_node <<= value(value) completed = completed && value.complete elsif @buffers.key?(:ident) value = @buffers.delete(:ident) set_document_node <<= value(value) completed = completed && value.complete elsif @buffers.key?(:list) value = @buffers.delete(:list) set_document_node <<= value(value) completed = completed && value.complete end set_document_node.complete = completed yield set_document_node end when 1 then begin trace('IDENTIFIER an_ident_eof') if @identifier_started id_end = p chars = data[id_start...id_end] completed = !chars.empty? ast_node = identifier(utf8_string(chars), complete: completed) @buffers[:ident] = ast_node end end begin trace('IDENTIFIER an_ident_err') id_end = p chars = data[id_start...id_end] ast_node = identifier(utf8_string(chars), complete: false) @buffers[:ident] = ast_node end begin trace('SET_DOCUMENT set_document_node_eof') name = @buffers.delete(:set_document_name) set_document_node = set(name) completed = name.complete if @buffers.key?(:string) value = @buffers.delete(:string) set_document_node <<= value(value) completed = completed && value.complete elsif @buffers.key?(:ident) value = @buffers.delete(:ident) set_document_node <<= value(value) completed = completed && value.complete elsif @buffers.key?(:list) value = @buffers.delete(:list) set_document_node <<= value(value) completed = completed && value.complete end set_document_node.complete = completed yield set_document_node end when 29 then begin trace('IDENTIFIER an_ident_eof') if @identifier_started id_end = p chars = data[id_start...id_end] completed = !chars.empty? ast_node = identifier(utf8_string(chars), complete: completed) @buffers[:ident] = ast_node end end begin trace('SET_DOCUMENT set_document_end') set_document_node = document_property() completed = true name = @buffers.delete(:set_document_name) unless name.nil? set_document_node <<= name end value = @buffers.delete(:set_document_value) unless value.nil? set_document_node <<= value end completed = false unless name.nil? || value.nil? completed = name.complete && value.complete end set_document_node.complete = completed @buffers[:set_document] = set_document_node end begin trace('SET_DOCUMENT yield_set') yield @buffers[:set_document] end when 27 then begin trace('STRING eof_string') p_end = p chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: false) @buffers[:string] = ast_node end begin trace('STRING a_string_err') p_end = p chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: false) @buffers[:string] = ast_node end begin trace('LIST list_node_eof') list = @incomplete.delete(:list) string = @buffers.delete(:string) item = list_item(string, complete: string.complete) list <<= item list.complete = false yield list end when 8 then begin trace('STRING eof_string') p_end = p chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: false) @buffers[:string] = ast_node end begin trace('STRING a_string_err') p_end = p chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: false) @buffers[:string] = ast_node end begin trace('SET_DOCUMENT set_document_node_eof') name = @buffers.delete(:set_document_name) set_document_node = set(name) completed = name.complete if @buffers.key?(:string) value = @buffers.delete(:string) set_document_node <<= value(value) completed = completed && value.complete elsif @buffers.key?(:ident) value = @buffers.delete(:ident) set_document_node <<= value(value) completed = completed && value.complete elsif @buffers.key?(:list) value = @buffers.delete(:list) set_document_node <<= value(value) completed = completed && value.complete end set_document_node.complete = completed yield set_document_node end when 23 then begin trace('STRING eof_string') p_end = p chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: false) @buffers[:string] = ast_node end begin trace('STRING string_node_err') p_end = p chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: false) yield ast_node end begin trace('STRING string_node_eof') yield @buffers[:string] end when 16 then begin trace('STRING a_string_err') p_end = p chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: false) @buffers[:string] = ast_node end begin trace('LIST a_list_eof') list = @incomplete.delete(:list) string = @buffers.delete(:string) unless string.nil? item = list_item(string, complete: string.complete) list <<= item end ident = @buffers.delete(:ident) unless ident.nil? item = list_item(ident, complete: ident.complete) list <<= item end if @list_opened && @list_closed list.complete = true else list.complete = false end @buffers[:list] = list end begin trace('SET_DOCUMENT set_document_node_eof') name = @buffers.delete(:set_document_name) set_document_node = set(name) completed = name.complete if @buffers.key?(:string) value = @buffers.delete(:string) set_document_node <<= value(value) completed = completed && value.complete elsif @buffers.key?(:ident) value = @buffers.delete(:ident) set_document_node <<= value(value) completed = completed && value.complete elsif @buffers.key?(:list) value = @buffers.delete(:list) set_document_node <<= value(value) completed = completed && value.complete end set_document_node.complete = completed yield set_document_node end when 48 then begin trace('LIST stop_list') @list_closed = true end begin trace('LIST list_end') if @list_opened && @list_closed list = @incomplete.delete(:list) list.complete = true elsif !@list_closed list = @incomplete.delete(:list) list.complete = false end @buffers[:list] = list end begin trace('LIST yield_list') yield @buffers[:list] end when 45 then begin trace('LIST add_string') string = @buffers.delete(:string) item = list_item(string, complete: string.complete) @incomplete[:list] <<= item end begin trace('LIST list_end') if @list_opened && @list_closed list = @incomplete.delete(:list) list.complete = true elsif !@list_closed list = @incomplete.delete(:list) list.complete = false end @buffers[:list] = list end begin trace('LIST yield_list') yield @buffers[:list] end when 44 then begin trace('LIST list_node_eof') list = @incomplete.delete(:list) string = @buffers.delete(:string) item = list_item(string, complete: string.complete) list <<= item list.complete = false yield list end begin trace('LIST list_end') if @list_opened && @list_closed list = @incomplete.delete(:list) list.complete = true elsif !@list_closed list = @incomplete.delete(:list) list.complete = false end @buffers[:list] = list end begin trace('LIST yield_list') yield @buffers[:list] end when 34 then begin trace('SET_DOCUMENT add_string_value') string = @buffers.delete(:string) @buffers[:set_document_value] = value(string) end begin trace('SET_DOCUMENT set_document_end') set_document_node = document_property() completed = true name = @buffers.delete(:set_document_name) unless name.nil? set_document_node <<= name end value = @buffers.delete(:set_document_value) unless value.nil? set_document_node <<= value end completed = false unless name.nil? || value.nil? completed = name.complete && value.complete end set_document_node.complete = completed @buffers[:set_document] = set_document_node end begin trace('SET_DOCUMENT yield_set') yield @buffers[:set_document] end when 19 then begin trace('IDENTIFIER an_ident_eof') if @identifier_started id_end = p chars = data[id_start...id_end] completed = !chars.empty? ast_node = identifier(utf8_string(chars), complete: completed) @buffers[:ident] = ast_node end end begin trace('IDENTIFIER an_ident_err') id_end = p chars = data[id_start...id_end] ast_node = identifier(utf8_string(chars), complete: false) @buffers[:ident] = ast_node end begin trace('LIST a_list_eof') list = @incomplete.delete(:list) string = @buffers.delete(:string) unless string.nil? item = list_item(string, complete: string.complete) list <<= item end ident = @buffers.delete(:ident) unless ident.nil? item = list_item(ident, complete: ident.complete) list <<= item end if @list_opened && @list_closed list.complete = true else list.complete = false end @buffers[:list] = list end begin trace('SET_DOCUMENT set_document_node_eof') name = @buffers.delete(:set_document_name) set_document_node = set(name) completed = name.complete if @buffers.key?(:string) value = @buffers.delete(:string) set_document_node <<= value(value) completed = completed && value.complete elsif @buffers.key?(:ident) value = @buffers.delete(:ident) set_document_node <<= value(value) completed = completed && value.complete elsif @buffers.key?(:list) value = @buffers.delete(:list) set_document_node <<= value(value) completed = completed && value.complete end set_document_node.complete = completed yield set_document_node end when 43 then begin trace('IDENTIFIER an_ident_eof') if @identifier_started id_end = p chars = data[id_start...id_end] completed = !chars.empty? ast_node = identifier(utf8_string(chars), complete: completed) @buffers[:ident] = ast_node end end begin trace('LIST list_node_eof') list = @incomplete.delete(:list) string = @buffers.delete(:string) item = list_item(string, complete: string.complete) list <<= item list.complete = false yield list end begin trace('LIST list_end') if @list_opened && @list_closed list = @incomplete.delete(:list) list.complete = true elsif !@list_closed list = @incomplete.delete(:list) list.complete = false end @buffers[:list] = list end begin trace('LIST yield_list') yield @buffers[:list] end when 32 then begin trace('IDENTIFIER an_ident_eof') if @identifier_started id_end = p chars = data[id_start...id_end] completed = !chars.empty? ast_node = identifier(utf8_string(chars), complete: completed) @buffers[:ident] = ast_node end end begin trace('SET_DOCUMENT set_document_node_eof') name = @buffers.delete(:set_document_name) set_document_node = set(name) completed = name.complete if @buffers.key?(:string) value = @buffers.delete(:string) set_document_node <<= value(value) completed = completed && value.complete elsif @buffers.key?(:ident) value = @buffers.delete(:ident) set_document_node <<= value(value) completed = completed && value.complete elsif @buffers.key?(:list) value = @buffers.delete(:list) set_document_node <<= value(value) completed = completed && value.complete end set_document_node.complete = completed yield set_document_node end begin trace('SET_DOCUMENT set_document_end') set_document_node = document_property() completed = true name = @buffers.delete(:set_document_name) unless name.nil? set_document_node <<= name end value = @buffers.delete(:set_document_value) unless value.nil? set_document_node <<= value end completed = false unless name.nil? || value.nil? completed = name.complete && value.complete end set_document_node.complete = completed @buffers[:set_document] = set_document_node end begin trace('SET_DOCUMENT yield_set') yield @buffers[:set_document] end when 28 then begin trace('STRING a_string_err') p_end = p chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: false) @buffers[:string] = ast_node end begin trace('IDENTIFIER an_ident_eof') if @identifier_started id_end = p chars = data[id_start...id_end] completed = !chars.empty? ast_node = identifier(utf8_string(chars), complete: completed) @buffers[:ident] = ast_node end end begin trace('IDENTIFIER an_ident_err') id_end = p chars = data[id_start...id_end] ast_node = identifier(utf8_string(chars), complete: false) @buffers[:ident] = ast_node end begin trace('LIST list_node_eof') list = @incomplete.delete(:list) string = @buffers.delete(:string) item = list_item(string, complete: string.complete) list <<= item list.complete = false yield list end when 12 then begin trace('STRING a_string_err') p_end = p chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: false) @buffers[:string] = ast_node end begin trace('IDENTIFIER an_ident_eof') if @identifier_started id_end = p chars = data[id_start...id_end] completed = !chars.empty? ast_node = identifier(utf8_string(chars), complete: completed) @buffers[:ident] = ast_node end end begin trace('IDENTIFIER an_ident_err') id_end = p chars = data[id_start...id_end] ast_node = identifier(utf8_string(chars), complete: false) @buffers[:ident] = ast_node end begin trace('SET_DOCUMENT set_document_node_eof') name = @buffers.delete(:set_document_name) set_document_node = set(name) completed = name.complete if @buffers.key?(:string) value = @buffers.delete(:string) set_document_node <<= value(value) completed = completed && value.complete elsif @buffers.key?(:ident) value = @buffers.delete(:ident) set_document_node <<= value(value) completed = completed && value.complete elsif @buffers.key?(:list) value = @buffers.delete(:list) set_document_node <<= value(value) completed = completed && value.complete end set_document_node.complete = completed yield set_document_node end when 42 then begin trace('LIST start_list') @list_opened = true @incomplete[:list] = list() end begin trace('IDENTIFIER an_ident_eof') if @identifier_started id_end = p chars = data[id_start...id_end] completed = !chars.empty? ast_node = identifier(utf8_string(chars), complete: completed) @buffers[:ident] = ast_node end end begin trace('LIST list_end') if @list_opened && @list_closed list = @incomplete.delete(:list) list.complete = true elsif !@list_closed list = @incomplete.delete(:list) list.complete = false end @buffers[:list] = list end begin trace('LIST yield_list') yield @buffers[:list] end when 47 then begin trace('IDENTIFIER end_identifier') id_end = p chars = data[id_start...id_end] completed = !chars.empty? ast_node = identifier(utf8_string(chars), complete: completed) @buffers[:ident] = ast_node end begin trace('IDENTIFIER an_ident_eof') if @identifier_started id_end = p chars = data[id_start...id_end] completed = !chars.empty? ast_node = identifier(utf8_string(chars), complete: completed) @buffers[:ident] = ast_node end end begin trace('LIST add_ident') ident = @buffers.delete(:ident) item = list_item(ident, complete: ident.complete) @incomplete[:list] <<= item end begin trace('LIST list_end') if @list_opened && @list_closed list = @incomplete.delete(:list) list.complete = true elsif !@list_closed list = @incomplete.delete(:list) list.complete = false end @buffers[:list] = list end begin trace('LIST yield_list') yield @buffers[:list] end when 35 then begin trace('IDENTIFIER end_identifier') id_end = p chars = data[id_start...id_end] completed = !chars.empty? ast_node = identifier(utf8_string(chars), complete: completed) @buffers[:ident] = ast_node end begin trace('IDENTIFIER an_ident_eof') if @identifier_started id_end = p chars = data[id_start...id_end] completed = !chars.empty? ast_node = identifier(utf8_string(chars), complete: completed) @buffers[:ident] = ast_node end end begin trace('SET_DOCUMENT add_ident_value') ident = @buffers.delete(:ident) @buffers[:set_document_value] = value(ident) end begin trace('SET_DOCUMENT set_document_end') set_document_node = document_property() completed = true name = @buffers.delete(:set_document_name) unless name.nil? set_document_node <<= name end value = @buffers.delete(:set_document_value) unless value.nil? set_document_node <<= value end completed = false unless name.nil? || value.nil? completed = name.complete && value.complete end set_document_node.complete = completed @buffers[:set_document] = set_document_node end begin trace('SET_DOCUMENT yield_set') yield @buffers[:set_document] end when 37 then begin trace('LIST stop_list') @list_closed = true end begin trace('LIST list_end') if @list_opened && @list_closed list = @incomplete.delete(:list) list.complete = true elsif !@list_closed list = @incomplete.delete(:list) list.complete = false end @buffers[:list] = list end begin trace('SET_DOCUMENT add_list_value') list = @buffers.delete(:list) @buffers[:set_document_value] = value(list) end begin trace('SET_DOCUMENT set_document_end') set_document_node = document_property() completed = true name = @buffers.delete(:set_document_name) unless name.nil? set_document_node <<= name end value = @buffers.delete(:set_document_value) unless value.nil? set_document_node <<= value end completed = false unless name.nil? || value.nil? completed = name.complete && value.complete end set_document_node.complete = completed @buffers[:set_document] = set_document_node end begin trace('SET_DOCUMENT yield_set') yield @buffers[:set_document] end end end end if _goto_level <= _out break end end end class << self attr_accessor :_bel_trans_keys private :_bel_trans_keys, :_bel_trans_keys= end self._bel_trans_keys = [ 0, 0, 83, 115, 69, 101, 84, 116, 9, 32, 9, 100, 79, 111, 67, 99, 85, 117, 77, 109, 69, 101, 78, 110, 84, 116, 9, 32, 9, 122, 9, 122, 9, 34, 34, 92, 34, 92, 0, 0, 9, 122, 9, 122, 9, 34, 34, 92, 34, 92, 9, 125, 9, 125, 0, 0, 9, 125, 48, 122, 9, 34, 34, 92, 34, 92, 0, 0, 123, 123, 9, 34, 34, 92, 34, 92, 9, 122, 0, 0, 9, 123, 9, 123, 9, 34, 10, 10, 0, 0, 10, 122, 9, 123, 9, 123, 10, 10, 10, 122, 0, 0, 0, 0, 9, 125, 9, 125, 9, 34, 9, 125, 9, 125, 0, 0, 9, 125, 10, 10, 0 ] class << self attr_accessor :_bel_key_spans private :_bel_key_spans, :_bel_key_spans= end self._bel_key_spans = [ 0, 33, 33, 33, 24, 92, 33, 33, 33, 33, 33, 33, 33, 24, 114, 114, 26, 59, 59, 0, 114, 114, 26, 59, 59, 117, 117, 0, 117, 75, 26, 59, 59, 0, 1, 26, 59, 59, 114, 0, 115, 115, 26, 1, 0, 113, 115, 115, 1, 113, 0, 0, 117, 117, 26, 117, 117, 0, 117, 1 ] class << self attr_accessor :_bel_index_offsets private :_bel_index_offsets, :_bel_index_offsets= end self._bel_index_offsets = [ 0, 0, 34, 68, 102, 127, 220, 254, 288, 322, 356, 390, 424, 458, 483, 598, 713, 740, 800, 860, 861, 976, 1091, 1118, 1178, 1238, 1356, 1474, 1475, 1593, 1669, 1696, 1756, 1816, 1817, 1819, 1846, 1906, 1966, 2081, 2082, 2198, 2314, 2341, 2343, 2344, 2458, 2574, 2690, 2692, 2806, 2807, 2808, 2926, 3044, 3071, 3189, 3307, 3308, 3426 ] class << self attr_accessor :_bel_indicies private :_bel_indicies, :_bel_indicies= end self._bel_indicies = [ 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 4, 1, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 1, 6, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 6, 1, 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 7, 1, 8, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 8, 1, 9, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 9, 1, 10, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 10, 1, 11, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 1, 12, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 12, 1, 13, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 13, 1, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 14, 14, 15, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 16, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 16, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 14, 14, 14, 14, 14, 14, 14, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 14, 14, 14, 14, 17, 14, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 14, 19, 19, 19, 19, 19, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 19, 18, 20, 18, 22, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 23, 21, 25, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 26, 24, 24, 28, 29, 29, 29, 29, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 28, 27, 30, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 27, 27, 27, 27, 27, 27, 27, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 27, 27, 27, 27, 31, 27, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 27, 32, 33, 33, 33, 33, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 32, 27, 34, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 27, 27, 27, 27, 27, 27, 27, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 27, 27, 27, 27, 35, 27, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 27, 33, 33, 33, 33, 33, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 33, 18, 34, 18, 37, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 38, 36, 40, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 41, 39, 42, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 42, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 43, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 44, 18, 45, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 45, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 32, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 46, 1, 39, 47, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 47, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 48, 14, 14, 14, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 14, 14, 14, 14, 14, 14, 14, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 14, 14, 14, 14, 49, 14, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 14, 14, 50, 14, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 1, 1, 1, 1, 1, 1, 1, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 1, 1, 1, 1, 51, 1, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 1, 53, 53, 53, 53, 53, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 53, 52, 54, 52, 56, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 57, 55, 59, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 60, 58, 58, 61, 1, 62, 62, 62, 62, 62, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 62, 18, 63, 18, 65, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 66, 64, 68, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 69, 67, 70, 62, 62, 62, 62, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 70, 27, 63, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 27, 27, 27, 27, 27, 27, 27, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 27, 27, 27, 27, 71, 27, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 27, 67, 73, 74, 19, 19, 19, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 73, 72, 20, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 72, 72, 72, 76, 72, 72, 72, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 72, 72, 72, 72, 75, 72, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 77, 72, 73, 74, 19, 19, 19, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 73, 72, 20, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 72, 72, 72, 76, 72, 72, 72, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 72, 72, 72, 72, 75, 72, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 77, 72, 19, 19, 19, 19, 19, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 19, 18, 20, 18, 78, 18, 1, 79, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 14, 14, 14, 14, 14, 14, 14, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 14, 14, 14, 14, 80, 14, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 14, 81, 74, 19, 19, 19, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 81, 72, 20, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 72, 72, 72, 72, 72, 72, 72, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 72, 72, 72, 72, 75, 72, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 77, 72, 81, 74, 19, 19, 19, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 81, 72, 20, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 72, 72, 72, 72, 72, 72, 72, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 72, 72, 72, 72, 75, 72, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 77, 72, 82, 1, 84, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 83, 83, 83, 83, 83, 83, 83, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 83, 83, 83, 83, 85, 83, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 83, 83, 52, 86, 87, 88, 88, 88, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 86, 27, 89, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 27, 27, 27, 27, 27, 27, 27, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 27, 27, 27, 27, 90, 27, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 27, 27, 91, 27, 92, 93, 62, 62, 62, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 92, 27, 63, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 27, 27, 27, 27, 27, 27, 27, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 27, 27, 27, 27, 71, 27, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 27, 27, 94, 27, 62, 62, 62, 62, 62, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 62, 18, 63, 18, 95, 96, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 95, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 97, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 98, 18, 99, 100, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 99, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 70, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 94, 1, 1, 101, 102, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 101, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 103, 14, 14, 14, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 14, 14, 14, 14, 14, 14, 14, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 14, 14, 14, 14, 104, 14, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 14, 14, 105, 14, 106, 1, 0 ] class << self attr_accessor :_bel_trans_targs private :_bel_trans_targs, :_bel_trans_targs= end self._bel_trans_targs = [ 2, 0, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 0, 15, 40, 15, 0, 16, 17, 18, 43, 19, 18, 43, 19, 0, 21, 22, 23, 28, 21, 22, 23, 28, 24, 25, 27, 24, 25, 27, 26, 21, 48, 26, 48, 26, 21, 28, 48, 49, 0, 30, 31, 32, 51, 33, 32, 51, 33, 52, 35, 36, 37, 55, 39, 37, 55, 39, 38, 58, 0, 41, 42, 45, 46, 20, 44, 44, 45, 47, 44, 0, 50, 49, 53, 54, 35, 36, 58, 59, 53, 54, 59, 56, 57, 38, 59, 56, 57, 56, 57, 38, 58, 59, 57 ] class << self attr_accessor :_bel_trans_actions private :_bel_trans_actions, :_bel_trans_actions= end self._bel_trans_actions = [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 5, 0, 7, 0, 0, 9, 10, 9, 0, 11, 0, 13, 14, 14, 14, 15, 0, 0, 0, 3, 9, 10, 9, 0, 11, 0, 17, 17, 17, 0, 0, 20, 20, 0, 20, 3, 22, 0, 0, 9, 24, 9, 0, 25, 0, 0, 0, 0, 9, 10, 9, 0, 11, 0, 0, 3, 30, 0, 31, 3, 0, 0, 34, 36, 0, 0, 37, 39, 40, 0, 14, 14, 14, 14, 15, 14, 0, 0, 0, 17, 17, 17, 17, 0, 0, 20, 20, 20, 0, 20, 49 ] class << self attr_accessor :_bel_eof_actions private :_bel_eof_actions, :_bel_eof_actions= end self._bel_eof_actions = [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 4, 6, 8, 8, 8, 12, 12, 6, 8, 8, 16, 18, 8, 19, 0, 21, 23, 23, 23, 0, 26, 27, 27, 28, 27, 29, 32, 33, 34, 0, 35, 29, 32, 37, 38, 41, 0, 42, 43, 44, 45, 46, 46, 47, 48 ] class << self attr_accessor :bel_start end self.bel_start = 1; class << self attr_accessor :bel_first_final end self.bel_first_final = 40; class << self attr_accessor :bel_error end self.bel_error = 0; class << self attr_accessor :bel_en_ident_node end self.bel_en_ident_node = 29; class << self attr_accessor :bel_en_string_node end self.bel_en_string_node = 30; class << self attr_accessor :bel_en_list_node end self.bel_en_list_node = 34; class << self attr_accessor :bel_en_set_document_node end self.bel_en_set_document_node = 1; begin p ||= 0 pe ||= data.length cs = bel_start end begin testEof = false _slen, _trans, _keys, _inds, _acts, _nacts = nil _goto_level = 0 _resume = 10 _eof_trans = 15 _again = 20 _test_eof = 30 _out = 40 while true if _goto_level <= 0 if p == pe _goto_level = _test_eof next end if cs == 0 _goto_level = _out next end end if _goto_level <= _resume _keys = cs << 1 _inds = _bel_index_offsets[cs] _slen = _bel_key_spans[cs] _wide = data[p].ord _trans = if ( _slen > 0 && _bel_trans_keys[_keys] <= _wide && _wide <= _bel_trans_keys[_keys + 1] ) then _bel_indicies[ _inds + _wide - _bel_trans_keys[_keys] ] else _bel_indicies[ _inds + _slen ] end cs = _bel_trans_targs[_trans] if _bel_trans_actions[_trans] != 0 case _bel_trans_actions[_trans] when 3 then begin trace('IDENTIFIER start_identifier') @identifier_started = true id_start = p; end when 40 then begin trace('IDENTIFIER end_identifier') id_end = p chars = data[id_start...id_end] completed = !chars.empty? ast_node = identifier(utf8_string(chars), complete: completed) @buffers[:ident] = ast_node end when 2 then begin trace('IDENTIFIER an_ident_err') id_end = p chars = data[id_start...id_end] ast_node = identifier(utf8_string(chars), complete: false) @buffers[:ident] = ast_node end when 39 then begin trace('IDENTIFIER ident_node_err') id_end = p chars = data[id_start...id_end] ast_node = identifier(utf8_string(chars), complete: false) yield ast_node end when 9 then begin trace('STRING start_string') @string_opened = true p_start = p end when 7 then begin trace('STRING a_string_err') p_end = p chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: false) @buffers[:string] = ast_node end when 22 then begin trace('STRING string_node_err') p_end = p chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: false) yield ast_node end when 14 then begin trace('LIST start_list') @list_opened = true @incomplete[:list] = list() end when 49 then begin trace('LIST stop_list') @list_closed = true end when 17 then begin trace('LIST add_string') string = @buffers.delete(:string) item = list_item(string, complete: string.complete) @incomplete[:list] <<= item end when 20 then begin trace('IDENTIFIER end_identifier') id_end = p chars = data[id_start...id_end] completed = !chars.empty? ast_node = identifier(utf8_string(chars), complete: completed) @buffers[:ident] = ast_node end begin trace('LIST add_ident') ident = @buffers.delete(:ident) item = list_item(ident, complete: ident.complete) @incomplete[:list] <<= item end when 5 then begin trace('IDENTIFIER end_identifier') id_end = p chars = data[id_start...id_end] completed = !chars.empty? ast_node = identifier(utf8_string(chars), complete: completed) @buffers[:ident] = ast_node end begin trace('SET_DOCUMENT add_property') key = @buffers.delete(:ident) @buffers[:set_document_name] = name(key) end when 30 then begin trace('IDENTIFIER an_ident_err') id_end = p chars = data[id_start...id_end] ast_node = identifier(utf8_string(chars), complete: false) @buffers[:ident] = ast_node end begin trace('STRING a_string_err') p_end = p chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: false) @buffers[:string] = ast_node end when 11 then begin trace('STRING stop_string') @string_closed = true p_end = p end begin trace('STRING string_end') completed = @string_opened && @string_closed chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: true) @buffers[:string] = ast_node end when 13 then begin trace('STRING a_string_err') p_end = p chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: false) @buffers[:string] = ast_node end begin trace('IDENTIFIER an_ident_err') id_end = p chars = data[id_start...id_end] ast_node = identifier(utf8_string(chars), complete: false) @buffers[:ident] = ast_node end when 15 then begin trace('LIST start_list') @list_opened = true @incomplete[:list] = list() end begin trace('IDENTIFIER start_identifier') @identifier_started = true id_start = p; end when 31 then begin trace('SET_DOCUMENT set_document_end') set_document_node = document_property() completed = true name = @buffers.delete(:set_document_name) unless name.nil? set_document_node <<= name end value = @buffers.delete(:set_document_value) unless value.nil? set_document_node <<= value end completed = false unless name.nil? || value.nil? completed = name.complete && value.complete end set_document_node.complete = completed @buffers[:set_document] = set_document_node end begin trace('SET_DOCUMENT yield_set') yield @buffers[:set_document] end when 10 then begin trace('STRING start_string') @string_opened = true p_start = p end begin trace('STRING stop_string') @string_closed = true p_end = p end begin trace('STRING string_end') completed = @string_opened && @string_closed chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: true) @buffers[:string] = ast_node end when 25 then begin trace('STRING stop_string') @string_closed = true p_end = p end begin trace('STRING string_end') completed = @string_opened && @string_closed chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: true) @buffers[:string] = ast_node end begin trace('STRING yield_string') yield @buffers[:string] end when 34 then begin trace('SET_DOCUMENT add_string_value') string = @buffers.delete(:string) @buffers[:set_document_value] = value(string) end begin trace('SET_DOCUMENT set_document_end') set_document_node = document_property() completed = true name = @buffers.delete(:set_document_name) unless name.nil? set_document_node <<= name end value = @buffers.delete(:set_document_value) unless value.nil? set_document_node <<= value end completed = false unless name.nil? || value.nil? completed = name.complete && value.complete end set_document_node.complete = completed @buffers[:set_document] = set_document_node end begin trace('SET_DOCUMENT yield_set') yield @buffers[:set_document] end when 36 then begin trace('IDENTIFIER end_identifier') id_end = p chars = data[id_start...id_end] completed = !chars.empty? ast_node = identifier(utf8_string(chars), complete: completed) @buffers[:ident] = ast_node end begin trace('SET_DOCUMENT add_ident_value') ident = @buffers.delete(:ident) @buffers[:set_document_value] = value(ident) end begin trace('SET_DOCUMENT set_document_end') set_document_node = document_property() completed = true name = @buffers.delete(:set_document_name) unless name.nil? set_document_node <<= name end value = @buffers.delete(:set_document_value) unless value.nil? set_document_node <<= value end completed = false unless name.nil? || value.nil? completed = name.complete && value.complete end set_document_node.complete = completed @buffers[:set_document] = set_document_node end begin trace('SET_DOCUMENT yield_set') yield @buffers[:set_document] end when 24 then begin trace('STRING start_string') @string_opened = true p_start = p end begin trace('STRING stop_string') @string_closed = true p_end = p end begin trace('STRING string_end') completed = @string_opened && @string_closed chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: true) @buffers[:string] = ast_node end begin trace('STRING yield_string') yield @buffers[:string] end when 37 then begin trace('LIST stop_list') @list_closed = true end begin trace('LIST list_end') if @list_opened && @list_closed list = @incomplete.delete(:list) list.complete = true elsif !@list_closed list = @incomplete.delete(:list) list.complete = false end @buffers[:list] = list end begin trace('SET_DOCUMENT add_list_value') list = @buffers.delete(:list) @buffers[:set_document_value] = value(list) end begin trace('SET_DOCUMENT set_document_end') set_document_node = document_property() completed = true name = @buffers.delete(:set_document_name) unless name.nil? set_document_node <<= name end value = @buffers.delete(:set_document_value) unless value.nil? set_document_node <<= value end completed = false unless name.nil? || value.nil? completed = name.complete && value.complete end set_document_node.complete = completed @buffers[:set_document] = set_document_node end begin trace('SET_DOCUMENT yield_set') yield @buffers[:set_document] end end end end if _goto_level <= _again if cs == 0 _goto_level = _out next end p += 1 if p != pe _goto_level = _resume next end end if _goto_level <= _test_eof if p == eof case _bel_eof_actions[cs] when 41 then begin trace('IDENTIFIER yield_identifier') yield @buffers[:ident] end when 33 then begin trace('SET_DOCUMENT set_document_node_eof') name = @buffers.delete(:set_document_name) set_document_node = set(name) completed = name.complete if @buffers.key?(:string) value = @buffers.delete(:string) set_document_node <<= value(value) completed = completed && value.complete elsif @buffers.key?(:ident) value = @buffers.delete(:ident) set_document_node <<= value(value) completed = completed && value.complete elsif @buffers.key?(:list) value = @buffers.delete(:list) set_document_node <<= value(value) completed = completed && value.complete end set_document_node.complete = completed yield set_document_node end when 38 then begin trace('IDENTIFIER end_identifier') id_end = p chars = data[id_start...id_end] completed = !chars.empty? ast_node = identifier(utf8_string(chars), complete: completed) @buffers[:ident] = ast_node end begin trace('IDENTIFIER yield_identifier') yield @buffers[:ident] end when 4 then begin trace('IDENTIFIER an_ident_eof') if @identifier_started id_end = p chars = data[id_start...id_end] completed = !chars.empty? ast_node = identifier(utf8_string(chars), complete: completed) @buffers[:ident] = ast_node end end begin trace('IDENTIFIER an_ident_err') id_end = p chars = data[id_start...id_end] ast_node = identifier(utf8_string(chars), complete: false) @buffers[:ident] = ast_node end when 26 then begin trace('STRING a_string_err') p_end = p chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: false) @buffers[:string] = ast_node end begin trace('LIST list_node_eof') list = @incomplete.delete(:list) string = @buffers.delete(:string) item = list_item(string, complete: string.complete) list <<= item list.complete = false yield list end when 6 then begin trace('STRING a_string_err') p_end = p chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: false) @buffers[:string] = ast_node end begin trace('SET_DOCUMENT set_document_node_eof') name = @buffers.delete(:set_document_name) set_document_node = set(name) completed = name.complete if @buffers.key?(:string) value = @buffers.delete(:string) set_document_node <<= value(value) completed = completed && value.complete elsif @buffers.key?(:ident) value = @buffers.delete(:ident) set_document_node <<= value(value) completed = completed && value.complete elsif @buffers.key?(:list) value = @buffers.delete(:list) set_document_node <<= value(value) completed = completed && value.complete end set_document_node.complete = completed yield set_document_node end when 21 then begin trace('STRING string_node_err') p_end = p chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: false) yield ast_node end begin trace('STRING string_node_eof') yield @buffers[:string] end when 46 then begin trace('LIST list_end') if @list_opened && @list_closed list = @incomplete.delete(:list) list.complete = true elsif !@list_closed list = @incomplete.delete(:list) list.complete = false end @buffers[:list] = list end begin trace('LIST yield_list') yield @buffers[:list] end when 18 then begin trace('LIST a_list_eof') list = @incomplete.delete(:list) string = @buffers.delete(:string) unless string.nil? item = list_item(string, complete: string.complete) list <<= item end ident = @buffers.delete(:ident) unless ident.nil? item = list_item(ident, complete: ident.complete) list <<= item end if @list_opened && @list_closed list.complete = true else list.complete = false end @buffers[:list] = list end begin trace('SET_DOCUMENT set_document_node_eof') name = @buffers.delete(:set_document_name) set_document_node = set(name) completed = name.complete if @buffers.key?(:string) value = @buffers.delete(:string) set_document_node <<= value(value) completed = completed && value.complete elsif @buffers.key?(:ident) value = @buffers.delete(:ident) set_document_node <<= value(value) completed = completed && value.complete elsif @buffers.key?(:list) value = @buffers.delete(:list) set_document_node <<= value(value) completed = completed && value.complete end set_document_node.complete = completed yield set_document_node end when 1 then begin trace('IDENTIFIER an_ident_eof') if @identifier_started id_end = p chars = data[id_start...id_end] completed = !chars.empty? ast_node = identifier(utf8_string(chars), complete: completed) @buffers[:ident] = ast_node end end begin trace('IDENTIFIER an_ident_err') id_end = p chars = data[id_start...id_end] ast_node = identifier(utf8_string(chars), complete: false) @buffers[:ident] = ast_node end begin trace('SET_DOCUMENT set_document_node_eof') name = @buffers.delete(:set_document_name) set_document_node = set(name) completed = name.complete if @buffers.key?(:string) value = @buffers.delete(:string) set_document_node <<= value(value) completed = completed && value.complete elsif @buffers.key?(:ident) value = @buffers.delete(:ident) set_document_node <<= value(value) completed = completed && value.complete elsif @buffers.key?(:list) value = @buffers.delete(:list) set_document_node <<= value(value) completed = completed && value.complete end set_document_node.complete = completed yield set_document_node end when 29 then begin trace('IDENTIFIER an_ident_eof') if @identifier_started id_end = p chars = data[id_start...id_end] completed = !chars.empty? ast_node = identifier(utf8_string(chars), complete: completed) @buffers[:ident] = ast_node end end begin trace('SET_DOCUMENT set_document_end') set_document_node = document_property() completed = true name = @buffers.delete(:set_document_name) unless name.nil? set_document_node <<= name end value = @buffers.delete(:set_document_value) unless value.nil? set_document_node <<= value end completed = false unless name.nil? || value.nil? completed = name.complete && value.complete end set_document_node.complete = completed @buffers[:set_document] = set_document_node end begin trace('SET_DOCUMENT yield_set') yield @buffers[:set_document] end when 27 then begin trace('STRING eof_string') p_end = p chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: false) @buffers[:string] = ast_node end begin trace('STRING a_string_err') p_end = p chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: false) @buffers[:string] = ast_node end begin trace('LIST list_node_eof') list = @incomplete.delete(:list) string = @buffers.delete(:string) item = list_item(string, complete: string.complete) list <<= item list.complete = false yield list end when 8 then begin trace('STRING eof_string') p_end = p chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: false) @buffers[:string] = ast_node end begin trace('STRING a_string_err') p_end = p chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: false) @buffers[:string] = ast_node end begin trace('SET_DOCUMENT set_document_node_eof') name = @buffers.delete(:set_document_name) set_document_node = set(name) completed = name.complete if @buffers.key?(:string) value = @buffers.delete(:string) set_document_node <<= value(value) completed = completed && value.complete elsif @buffers.key?(:ident) value = @buffers.delete(:ident) set_document_node <<= value(value) completed = completed && value.complete elsif @buffers.key?(:list) value = @buffers.delete(:list) set_document_node <<= value(value) completed = completed && value.complete end set_document_node.complete = completed yield set_document_node end when 23 then begin trace('STRING eof_string') p_end = p chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: false) @buffers[:string] = ast_node end begin trace('STRING string_node_err') p_end = p chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: false) yield ast_node end begin trace('STRING string_node_eof') yield @buffers[:string] end when 16 then begin trace('STRING a_string_err') p_end = p chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: false) @buffers[:string] = ast_node end begin trace('LIST a_list_eof') list = @incomplete.delete(:list) string = @buffers.delete(:string) unless string.nil? item = list_item(string, complete: string.complete) list <<= item end ident = @buffers.delete(:ident) unless ident.nil? item = list_item(ident, complete: ident.complete) list <<= item end if @list_opened && @list_closed list.complete = true else list.complete = false end @buffers[:list] = list end begin trace('SET_DOCUMENT set_document_node_eof') name = @buffers.delete(:set_document_name) set_document_node = set(name) completed = name.complete if @buffers.key?(:string) value = @buffers.delete(:string) set_document_node <<= value(value) completed = completed && value.complete elsif @buffers.key?(:ident) value = @buffers.delete(:ident) set_document_node <<= value(value) completed = completed && value.complete elsif @buffers.key?(:list) value = @buffers.delete(:list) set_document_node <<= value(value) completed = completed && value.complete end set_document_node.complete = completed yield set_document_node end when 48 then begin trace('LIST stop_list') @list_closed = true end begin trace('LIST list_end') if @list_opened && @list_closed list = @incomplete.delete(:list) list.complete = true elsif !@list_closed list = @incomplete.delete(:list) list.complete = false end @buffers[:list] = list end begin trace('LIST yield_list') yield @buffers[:list] end when 45 then begin trace('LIST add_string') string = @buffers.delete(:string) item = list_item(string, complete: string.complete) @incomplete[:list] <<= item end begin trace('LIST list_end') if @list_opened && @list_closed list = @incomplete.delete(:list) list.complete = true elsif !@list_closed list = @incomplete.delete(:list) list.complete = false end @buffers[:list] = list end begin trace('LIST yield_list') yield @buffers[:list] end when 44 then begin trace('LIST list_node_eof') list = @incomplete.delete(:list) string = @buffers.delete(:string) item = list_item(string, complete: string.complete) list <<= item list.complete = false yield list end begin trace('LIST list_end') if @list_opened && @list_closed list = @incomplete.delete(:list) list.complete = true elsif !@list_closed list = @incomplete.delete(:list) list.complete = false end @buffers[:list] = list end begin trace('LIST yield_list') yield @buffers[:list] end when 34 then begin trace('SET_DOCUMENT add_string_value') string = @buffers.delete(:string) @buffers[:set_document_value] = value(string) end begin trace('SET_DOCUMENT set_document_end') set_document_node = document_property() completed = true name = @buffers.delete(:set_document_name) unless name.nil? set_document_node <<= name end value = @buffers.delete(:set_document_value) unless value.nil? set_document_node <<= value end completed = false unless name.nil? || value.nil? completed = name.complete && value.complete end set_document_node.complete = completed @buffers[:set_document] = set_document_node end begin trace('SET_DOCUMENT yield_set') yield @buffers[:set_document] end when 19 then begin trace('IDENTIFIER an_ident_eof') if @identifier_started id_end = p chars = data[id_start...id_end] completed = !chars.empty? ast_node = identifier(utf8_string(chars), complete: completed) @buffers[:ident] = ast_node end end begin trace('IDENTIFIER an_ident_err') id_end = p chars = data[id_start...id_end] ast_node = identifier(utf8_string(chars), complete: false) @buffers[:ident] = ast_node end begin trace('LIST a_list_eof') list = @incomplete.delete(:list) string = @buffers.delete(:string) unless string.nil? item = list_item(string, complete: string.complete) list <<= item end ident = @buffers.delete(:ident) unless ident.nil? item = list_item(ident, complete: ident.complete) list <<= item end if @list_opened && @list_closed list.complete = true else list.complete = false end @buffers[:list] = list end begin trace('SET_DOCUMENT set_document_node_eof') name = @buffers.delete(:set_document_name) set_document_node = set(name) completed = name.complete if @buffers.key?(:string) value = @buffers.delete(:string) set_document_node <<= value(value) completed = completed && value.complete elsif @buffers.key?(:ident) value = @buffers.delete(:ident) set_document_node <<= value(value) completed = completed && value.complete elsif @buffers.key?(:list) value = @buffers.delete(:list) set_document_node <<= value(value) completed = completed && value.complete end set_document_node.complete = completed yield set_document_node end when 43 then begin trace('IDENTIFIER an_ident_eof') if @identifier_started id_end = p chars = data[id_start...id_end] completed = !chars.empty? ast_node = identifier(utf8_string(chars), complete: completed) @buffers[:ident] = ast_node end end begin trace('LIST list_node_eof') list = @incomplete.delete(:list) string = @buffers.delete(:string) item = list_item(string, complete: string.complete) list <<= item list.complete = false yield list end begin trace('LIST list_end') if @list_opened && @list_closed list = @incomplete.delete(:list) list.complete = true elsif !@list_closed list = @incomplete.delete(:list) list.complete = false end @buffers[:list] = list end begin trace('LIST yield_list') yield @buffers[:list] end when 32 then begin trace('IDENTIFIER an_ident_eof') if @identifier_started id_end = p chars = data[id_start...id_end] completed = !chars.empty? ast_node = identifier(utf8_string(chars), complete: completed) @buffers[:ident] = ast_node end end begin trace('SET_DOCUMENT set_document_node_eof') name = @buffers.delete(:set_document_name) set_document_node = set(name) completed = name.complete if @buffers.key?(:string) value = @buffers.delete(:string) set_document_node <<= value(value) completed = completed && value.complete elsif @buffers.key?(:ident) value = @buffers.delete(:ident) set_document_node <<= value(value) completed = completed && value.complete elsif @buffers.key?(:list) value = @buffers.delete(:list) set_document_node <<= value(value) completed = completed && value.complete end set_document_node.complete = completed yield set_document_node end begin trace('SET_DOCUMENT set_document_end') set_document_node = document_property() completed = true name = @buffers.delete(:set_document_name) unless name.nil? set_document_node <<= name end value = @buffers.delete(:set_document_value) unless value.nil? set_document_node <<= value end completed = false unless name.nil? || value.nil? completed = name.complete && value.complete end set_document_node.complete = completed @buffers[:set_document] = set_document_node end begin trace('SET_DOCUMENT yield_set') yield @buffers[:set_document] end when 28 then begin trace('STRING a_string_err') p_end = p chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: false) @buffers[:string] = ast_node end begin trace('IDENTIFIER an_ident_eof') if @identifier_started id_end = p chars = data[id_start...id_end] completed = !chars.empty? ast_node = identifier(utf8_string(chars), complete: completed) @buffers[:ident] = ast_node end end begin trace('IDENTIFIER an_ident_err') id_end = p chars = data[id_start...id_end] ast_node = identifier(utf8_string(chars), complete: false) @buffers[:ident] = ast_node end begin trace('LIST list_node_eof') list = @incomplete.delete(:list) string = @buffers.delete(:string) item = list_item(string, complete: string.complete) list <<= item list.complete = false yield list end when 12 then begin trace('STRING a_string_err') p_end = p chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: false) @buffers[:string] = ast_node end begin trace('IDENTIFIER an_ident_eof') if @identifier_started id_end = p chars = data[id_start...id_end] completed = !chars.empty? ast_node = identifier(utf8_string(chars), complete: completed) @buffers[:ident] = ast_node end end begin trace('IDENTIFIER an_ident_err') id_end = p chars = data[id_start...id_end] ast_node = identifier(utf8_string(chars), complete: false) @buffers[:ident] = ast_node end begin trace('SET_DOCUMENT set_document_node_eof') name = @buffers.delete(:set_document_name) set_document_node = set(name) completed = name.complete if @buffers.key?(:string) value = @buffers.delete(:string) set_document_node <<= value(value) completed = completed && value.complete elsif @buffers.key?(:ident) value = @buffers.delete(:ident) set_document_node <<= value(value) completed = completed && value.complete elsif @buffers.key?(:list) value = @buffers.delete(:list) set_document_node <<= value(value) completed = completed && value.complete end set_document_node.complete = completed yield set_document_node end when 42 then begin trace('LIST start_list') @list_opened = true @incomplete[:list] = list() end begin trace('IDENTIFIER an_ident_eof') if @identifier_started id_end = p chars = data[id_start...id_end] completed = !chars.empty? ast_node = identifier(utf8_string(chars), complete: completed) @buffers[:ident] = ast_node end end begin trace('LIST list_end') if @list_opened && @list_closed list = @incomplete.delete(:list) list.complete = true elsif !@list_closed list = @incomplete.delete(:list) list.complete = false end @buffers[:list] = list end begin trace('LIST yield_list') yield @buffers[:list] end when 47 then begin trace('IDENTIFIER end_identifier') id_end = p chars = data[id_start...id_end] completed = !chars.empty? ast_node = identifier(utf8_string(chars), complete: completed) @buffers[:ident] = ast_node end begin trace('IDENTIFIER an_ident_eof') if @identifier_started id_end = p chars = data[id_start...id_end] completed = !chars.empty? ast_node = identifier(utf8_string(chars), complete: completed) @buffers[:ident] = ast_node end end begin trace('LIST add_ident') ident = @buffers.delete(:ident) item = list_item(ident, complete: ident.complete) @incomplete[:list] <<= item end begin trace('LIST list_end') if @list_opened && @list_closed list = @incomplete.delete(:list) list.complete = true elsif !@list_closed list = @incomplete.delete(:list) list.complete = false end @buffers[:list] = list end begin trace('LIST yield_list') yield @buffers[:list] end when 35 then begin trace('IDENTIFIER end_identifier') id_end = p chars = data[id_start...id_end] completed = !chars.empty? ast_node = identifier(utf8_string(chars), complete: completed) @buffers[:ident] = ast_node end begin trace('IDENTIFIER an_ident_eof') if @identifier_started id_end = p chars = data[id_start...id_end] completed = !chars.empty? ast_node = identifier(utf8_string(chars), complete: completed) @buffers[:ident] = ast_node end end begin trace('SET_DOCUMENT add_ident_value') ident = @buffers.delete(:ident) @buffers[:set_document_value] = value(ident) end begin trace('SET_DOCUMENT set_document_end') set_document_node = document_property() completed = true name = @buffers.delete(:set_document_name) unless name.nil? set_document_node <<= name end value = @buffers.delete(:set_document_value) unless value.nil? set_document_node <<= value end completed = false unless name.nil? || value.nil? completed = name.complete && value.complete end set_document_node.complete = completed @buffers[:set_document] = set_document_node end begin trace('SET_DOCUMENT yield_set') yield @buffers[:set_document] end when 37 then begin trace('LIST stop_list') @list_closed = true end begin trace('LIST list_end') if @list_opened && @list_closed list = @incomplete.delete(:list) list.complete = true elsif !@list_closed list = @incomplete.delete(:list) list.complete = false end @buffers[:list] = list end begin trace('SET_DOCUMENT add_list_value') list = @buffers.delete(:list) @buffers[:set_document_value] = value(list) end begin trace('SET_DOCUMENT set_document_end') set_document_node = document_property() completed = true name = @buffers.delete(:set_document_name) unless name.nil? set_document_node <<= name end value = @buffers.delete(:set_document_value) unless value.nil? set_document_node <<= value end completed = false unless name.nil? || value.nil? completed = name.complete && value.complete end set_document_node.complete = completed @buffers[:set_document] = set_document_node end begin trace('SET_DOCUMENT yield_set') yield @buffers[:set_document] end end end end if _goto_level <= _out break end end end =end # end: ragel require_relative '../ast/node' require_relative '../mixin/buffer' require_relative '../nonblocking_io_wrapper' require_relative '../tracer' module BELParser module Parsers module BELScript module SetDocument class << self MAX_LENGTH = 1024 * 128 # 128K def parse(content) return nil unless content Parser.new(content).each do |obj| yield obj end end end private class Parser include Enumerable include BELParser::Parsers::Buffer include BELParser::Parsers::AST::Sexp include BELParser::Parsers::Tracer def initialize(content) @content = content # begin: ragel class << self attr_accessor :_bel_trans_keys private :_bel_trans_keys, :_bel_trans_keys= end self._bel_trans_keys = [ 0, 0, 83, 115, 69, 101, 84, 116, 9, 32, 9, 100, 79, 111, 67, 99, 85, 117, 77, 109, 69, 101, 78, 110, 84, 116, 9, 32, 9, 122, 9, 122, 9, 34, 34, 92, 34, 92, 0, 0, 9, 122, 9, 122, 9, 34, 34, 92, 34, 92, 9, 125, 9, 125, 0, 0, 9, 125, 48, 122, 9, 34, 34, 92, 34, 92, 0, 0, 123, 123, 9, 34, 34, 92, 34, 92, 9, 122, 0, 0, 9, 123, 9, 123, 9, 34, 10, 10, 0, 0, 10, 122, 9, 123, 9, 123, 10, 10, 10, 122, 0, 0, 0, 0, 9, 125, 9, 125, 9, 34, 9, 125, 9, 125, 0, 0, 9, 125, 10, 10, 0 ] class << self attr_accessor :_bel_key_spans private :_bel_key_spans, :_bel_key_spans= end self._bel_key_spans = [ 0, 33, 33, 33, 24, 92, 33, 33, 33, 33, 33, 33, 33, 24, 114, 114, 26, 59, 59, 0, 114, 114, 26, 59, 59, 117, 117, 0, 117, 75, 26, 59, 59, 0, 1, 26, 59, 59, 114, 0, 115, 115, 26, 1, 0, 113, 115, 115, 1, 113, 0, 0, 117, 117, 26, 117, 117, 0, 117, 1 ] class << self attr_accessor :_bel_index_offsets private :_bel_index_offsets, :_bel_index_offsets= end self._bel_index_offsets = [ 0, 0, 34, 68, 102, 127, 220, 254, 288, 322, 356, 390, 424, 458, 483, 598, 713, 740, 800, 860, 861, 976, 1091, 1118, 1178, 1238, 1356, 1474, 1475, 1593, 1669, 1696, 1756, 1816, 1817, 1819, 1846, 1906, 1966, 2081, 2082, 2198, 2314, 2341, 2343, 2344, 2458, 2574, 2690, 2692, 2806, 2807, 2808, 2926, 3044, 3071, 3189, 3307, 3308, 3426 ] class << self attr_accessor :_bel_indicies private :_bel_indicies, :_bel_indicies= end self._bel_indicies = [ 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 4, 1, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 1, 6, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 6, 1, 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 7, 1, 8, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 8, 1, 9, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 9, 1, 10, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 10, 1, 11, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 1, 12, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 12, 1, 13, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 13, 1, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 14, 14, 15, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 16, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 16, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 14, 14, 14, 14, 14, 14, 14, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 14, 14, 14, 14, 17, 14, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 14, 19, 19, 19, 19, 19, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 19, 18, 20, 18, 22, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 23, 21, 25, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 26, 24, 24, 28, 29, 29, 29, 29, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 28, 27, 30, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 27, 27, 27, 27, 27, 27, 27, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 27, 27, 27, 27, 31, 27, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 27, 32, 33, 33, 33, 33, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 32, 27, 34, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 27, 27, 27, 27, 27, 27, 27, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 27, 27, 27, 27, 35, 27, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 27, 33, 33, 33, 33, 33, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 33, 18, 34, 18, 37, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 38, 36, 40, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 41, 39, 42, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 42, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 43, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 44, 18, 45, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 45, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 32, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 46, 1, 39, 47, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 47, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 48, 14, 14, 14, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 14, 14, 14, 14, 14, 14, 14, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 14, 14, 14, 14, 49, 14, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 14, 14, 50, 14, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 1, 1, 1, 1, 1, 1, 1, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 1, 1, 1, 1, 51, 1, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 1, 53, 53, 53, 53, 53, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 53, 52, 54, 52, 56, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 57, 55, 59, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 60, 58, 58, 61, 1, 62, 62, 62, 62, 62, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 62, 18, 63, 18, 65, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 66, 64, 68, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 69, 67, 70, 62, 62, 62, 62, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 70, 27, 63, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 27, 27, 27, 27, 27, 27, 27, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 27, 27, 27, 27, 71, 27, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 27, 67, 73, 74, 19, 19, 19, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 73, 72, 20, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 72, 72, 72, 76, 72, 72, 72, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 72, 72, 72, 72, 75, 72, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 77, 72, 73, 74, 19, 19, 19, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 73, 72, 20, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 72, 72, 72, 76, 72, 72, 72, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 72, 72, 72, 72, 75, 72, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 77, 72, 19, 19, 19, 19, 19, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 19, 18, 20, 18, 78, 18, 1, 79, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 14, 14, 14, 14, 14, 14, 14, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 14, 14, 14, 14, 80, 14, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 14, 81, 74, 19, 19, 19, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 81, 72, 20, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 72, 72, 72, 72, 72, 72, 72, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 72, 72, 72, 72, 75, 72, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 77, 72, 81, 74, 19, 19, 19, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 81, 72, 20, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 72, 72, 72, 72, 72, 72, 72, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 72, 72, 72, 72, 75, 72, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 77, 72, 82, 1, 84, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 83, 83, 83, 83, 83, 83, 83, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 83, 83, 83, 83, 85, 83, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 83, 83, 52, 86, 87, 88, 88, 88, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 86, 27, 89, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 27, 27, 27, 27, 27, 27, 27, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 27, 27, 27, 27, 90, 27, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 27, 27, 91, 27, 92, 93, 62, 62, 62, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 92, 27, 63, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 27, 27, 27, 27, 27, 27, 27, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 27, 27, 27, 27, 71, 27, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 27, 27, 94, 27, 62, 62, 62, 62, 62, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 62, 18, 63, 18, 95, 96, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 95, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 97, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 98, 18, 99, 100, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 99, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 70, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 94, 1, 1, 101, 102, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 101, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 103, 14, 14, 14, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 14, 14, 14, 14, 14, 14, 14, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 14, 14, 14, 14, 104, 14, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 14, 14, 105, 14, 106, 1, 0 ] class << self attr_accessor :_bel_trans_targs private :_bel_trans_targs, :_bel_trans_targs= end self._bel_trans_targs = [ 2, 0, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 0, 15, 40, 15, 0, 16, 17, 18, 43, 19, 18, 43, 19, 0, 21, 22, 23, 28, 21, 22, 23, 28, 24, 25, 27, 24, 25, 27, 26, 21, 48, 26, 48, 26, 21, 28, 48, 49, 0, 30, 31, 32, 51, 33, 32, 51, 33, 52, 35, 36, 37, 55, 39, 37, 55, 39, 38, 58, 0, 41, 42, 45, 46, 20, 44, 44, 45, 47, 44, 0, 50, 49, 53, 54, 35, 36, 58, 59, 53, 54, 59, 56, 57, 38, 59, 56, 57, 56, 57, 38, 58, 59, 57 ] class << self attr_accessor :_bel_trans_actions private :_bel_trans_actions, :_bel_trans_actions= end self._bel_trans_actions = [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 5, 0, 7, 0, 0, 9, 10, 9, 0, 11, 0, 13, 14, 14, 14, 15, 0, 0, 0, 3, 9, 10, 9, 0, 11, 0, 17, 17, 17, 0, 0, 20, 20, 0, 20, 3, 22, 0, 0, 9, 24, 9, 0, 25, 0, 0, 0, 0, 9, 10, 9, 0, 11, 0, 0, 3, 30, 0, 31, 3, 0, 0, 34, 36, 0, 0, 37, 39, 40, 0, 14, 14, 14, 14, 15, 14, 0, 0, 0, 17, 17, 17, 17, 0, 0, 20, 20, 20, 0, 20, 49 ] class << self attr_accessor :_bel_eof_actions private :_bel_eof_actions, :_bel_eof_actions= end self._bel_eof_actions = [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 4, 6, 8, 8, 8, 12, 12, 6, 8, 8, 16, 18, 8, 19, 0, 21, 23, 23, 23, 0, 26, 27, 27, 28, 27, 29, 32, 33, 34, 0, 35, 29, 32, 37, 38, 41, 0, 42, 43, 44, 45, 46, 46, 47, 48 ] class << self attr_accessor :bel_start end self.bel_start = 1; class << self attr_accessor :bel_first_final end self.bel_first_final = 40; class << self attr_accessor :bel_error end self.bel_error = 0; class << self attr_accessor :bel_en_ident_node end self.bel_en_ident_node = 29; class << self attr_accessor :bel_en_string_node end self.bel_en_string_node = 30; class << self attr_accessor :bel_en_list_node end self.bel_en_list_node = 34; class << self attr_accessor :bel_en_set_document_node end self.bel_en_set_document_node = 1; # end: ragel end def each @buffers = {} @incomplete = {} data = @content.unpack('C*') p = 0 pe = data.length eof = data.length id_start = 0 id_end = 0 # begin: ragel begin p ||= 0 pe ||= data.length cs = bel_start end begin testEof = false _slen, _trans, _keys, _inds, _acts, _nacts = nil _goto_level = 0 _resume = 10 _eof_trans = 15 _again = 20 _test_eof = 30 _out = 40 while true if _goto_level <= 0 if p == pe _goto_level = _test_eof next end if cs == 0 _goto_level = _out next end end if _goto_level <= _resume _keys = cs << 1 _inds = _bel_index_offsets[cs] _slen = _bel_key_spans[cs] _wide = data[p].ord _trans = if ( _slen > 0 && _bel_trans_keys[_keys] <= _wide && _wide <= _bel_trans_keys[_keys + 1] ) then _bel_indicies[ _inds + _wide - _bel_trans_keys[_keys] ] else _bel_indicies[ _inds + _slen ] end cs = _bel_trans_targs[_trans] if _bel_trans_actions[_trans] != 0 case _bel_trans_actions[_trans] when 3 then begin trace('IDENTIFIER start_identifier') @identifier_started = true id_start = p; end when 40 then begin trace('IDENTIFIER end_identifier') id_end = p chars = data[id_start...id_end] completed = !chars.empty? ast_node = identifier(utf8_string(chars), complete: completed) @buffers[:ident] = ast_node end when 2 then begin trace('IDENTIFIER an_ident_err') id_end = p chars = data[id_start...id_end] ast_node = identifier(utf8_string(chars), complete: false) @buffers[:ident] = ast_node end when 39 then begin trace('IDENTIFIER ident_node_err') id_end = p chars = data[id_start...id_end] ast_node = identifier(utf8_string(chars), complete: false) yield ast_node end when 9 then begin trace('STRING start_string') @string_opened = true p_start = p end when 7 then begin trace('STRING a_string_err') p_end = p chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: false) @buffers[:string] = ast_node end when 22 then begin trace('STRING string_node_err') p_end = p chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: false) yield ast_node end when 14 then begin trace('LIST start_list') @list_opened = true @incomplete[:list] = list() end when 49 then begin trace('LIST stop_list') @list_closed = true end when 17 then begin trace('LIST add_string') string = @buffers.delete(:string) item = list_item(string, complete: string.complete) @incomplete[:list] <<= item end when 20 then begin trace('IDENTIFIER end_identifier') id_end = p chars = data[id_start...id_end] completed = !chars.empty? ast_node = identifier(utf8_string(chars), complete: completed) @buffers[:ident] = ast_node end begin trace('LIST add_ident') ident = @buffers.delete(:ident) item = list_item(ident, complete: ident.complete) @incomplete[:list] <<= item end when 5 then begin trace('IDENTIFIER end_identifier') id_end = p chars = data[id_start...id_end] completed = !chars.empty? ast_node = identifier(utf8_string(chars), complete: completed) @buffers[:ident] = ast_node end begin trace('SET_DOCUMENT add_property') key = @buffers.delete(:ident) @buffers[:set_document_name] = name(key) end when 30 then begin trace('IDENTIFIER an_ident_err') id_end = p chars = data[id_start...id_end] ast_node = identifier(utf8_string(chars), complete: false) @buffers[:ident] = ast_node end begin trace('STRING a_string_err') p_end = p chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: false) @buffers[:string] = ast_node end when 11 then begin trace('STRING stop_string') @string_closed = true p_end = p end begin trace('STRING string_end') completed = @string_opened && @string_closed chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: true) @buffers[:string] = ast_node end when 13 then begin trace('STRING a_string_err') p_end = p chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: false) @buffers[:string] = ast_node end begin trace('IDENTIFIER an_ident_err') id_end = p chars = data[id_start...id_end] ast_node = identifier(utf8_string(chars), complete: false) @buffers[:ident] = ast_node end when 15 then begin trace('LIST start_list') @list_opened = true @incomplete[:list] = list() end begin trace('IDENTIFIER start_identifier') @identifier_started = true id_start = p; end when 31 then begin trace('SET_DOCUMENT set_document_end') set_document_node = document_property() completed = true name = @buffers.delete(:set_document_name) unless name.nil? set_document_node <<= name end value = @buffers.delete(:set_document_value) unless value.nil? set_document_node <<= value end completed = false unless name.nil? || value.nil? completed = name.complete && value.complete end set_document_node.complete = completed @buffers[:set_document] = set_document_node end begin trace('SET_DOCUMENT yield_set') yield @buffers[:set_document] end when 10 then begin trace('STRING start_string') @string_opened = true p_start = p end begin trace('STRING stop_string') @string_closed = true p_end = p end begin trace('STRING string_end') completed = @string_opened && @string_closed chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: true) @buffers[:string] = ast_node end when 25 then begin trace('STRING stop_string') @string_closed = true p_end = p end begin trace('STRING string_end') completed = @string_opened && @string_closed chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: true) @buffers[:string] = ast_node end begin trace('STRING yield_string') yield @buffers[:string] end when 34 then begin trace('SET_DOCUMENT add_string_value') string = @buffers.delete(:string) @buffers[:set_document_value] = value(string) end begin trace('SET_DOCUMENT set_document_end') set_document_node = document_property() completed = true name = @buffers.delete(:set_document_name) unless name.nil? set_document_node <<= name end value = @buffers.delete(:set_document_value) unless value.nil? set_document_node <<= value end completed = false unless name.nil? || value.nil? completed = name.complete && value.complete end set_document_node.complete = completed @buffers[:set_document] = set_document_node end begin trace('SET_DOCUMENT yield_set') yield @buffers[:set_document] end when 36 then begin trace('IDENTIFIER end_identifier') id_end = p chars = data[id_start...id_end] completed = !chars.empty? ast_node = identifier(utf8_string(chars), complete: completed) @buffers[:ident] = ast_node end begin trace('SET_DOCUMENT add_ident_value') ident = @buffers.delete(:ident) @buffers[:set_document_value] = value(ident) end begin trace('SET_DOCUMENT set_document_end') set_document_node = document_property() completed = true name = @buffers.delete(:set_document_name) unless name.nil? set_document_node <<= name end value = @buffers.delete(:set_document_value) unless value.nil? set_document_node <<= value end completed = false unless name.nil? || value.nil? completed = name.complete && value.complete end set_document_node.complete = completed @buffers[:set_document] = set_document_node end begin trace('SET_DOCUMENT yield_set') yield @buffers[:set_document] end when 24 then begin trace('STRING start_string') @string_opened = true p_start = p end begin trace('STRING stop_string') @string_closed = true p_end = p end begin trace('STRING string_end') completed = @string_opened && @string_closed chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: true) @buffers[:string] = ast_node end begin trace('STRING yield_string') yield @buffers[:string] end when 37 then begin trace('LIST stop_list') @list_closed = true end begin trace('LIST list_end') if @list_opened && @list_closed list = @incomplete.delete(:list) list.complete = true elsif !@list_closed list = @incomplete.delete(:list) list.complete = false end @buffers[:list] = list end begin trace('SET_DOCUMENT add_list_value') list = @buffers.delete(:list) @buffers[:set_document_value] = value(list) end begin trace('SET_DOCUMENT set_document_end') set_document_node = document_property() completed = true name = @buffers.delete(:set_document_name) unless name.nil? set_document_node <<= name end value = @buffers.delete(:set_document_value) unless value.nil? set_document_node <<= value end completed = false unless name.nil? || value.nil? completed = name.complete && value.complete end set_document_node.complete = completed @buffers[:set_document] = set_document_node end begin trace('SET_DOCUMENT yield_set') yield @buffers[:set_document] end end end end if _goto_level <= _again if cs == 0 _goto_level = _out next end p += 1 if p != pe _goto_level = _resume next end end if _goto_level <= _test_eof if p == eof case _bel_eof_actions[cs] when 41 then begin trace('IDENTIFIER yield_identifier') yield @buffers[:ident] end when 33 then begin trace('SET_DOCUMENT set_document_node_eof') name = @buffers.delete(:set_document_name) set_document_node = set(name) completed = name.complete if @buffers.key?(:string) value = @buffers.delete(:string) set_document_node <<= value(value) completed = completed && value.complete elsif @buffers.key?(:ident) value = @buffers.delete(:ident) set_document_node <<= value(value) completed = completed && value.complete elsif @buffers.key?(:list) value = @buffers.delete(:list) set_document_node <<= value(value) completed = completed && value.complete end set_document_node.complete = completed yield set_document_node end when 38 then begin trace('IDENTIFIER end_identifier') id_end = p chars = data[id_start...id_end] completed = !chars.empty? ast_node = identifier(utf8_string(chars), complete: completed) @buffers[:ident] = ast_node end begin trace('IDENTIFIER yield_identifier') yield @buffers[:ident] end when 4 then begin trace('IDENTIFIER an_ident_eof') if @identifier_started id_end = p chars = data[id_start...id_end] completed = !chars.empty? ast_node = identifier(utf8_string(chars), complete: completed) @buffers[:ident] = ast_node end end begin trace('IDENTIFIER an_ident_err') id_end = p chars = data[id_start...id_end] ast_node = identifier(utf8_string(chars), complete: false) @buffers[:ident] = ast_node end when 26 then begin trace('STRING a_string_err') p_end = p chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: false) @buffers[:string] = ast_node end begin trace('LIST list_node_eof') list = @incomplete.delete(:list) string = @buffers.delete(:string) item = list_item(string, complete: string.complete) list <<= item list.complete = false yield list end when 6 then begin trace('STRING a_string_err') p_end = p chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: false) @buffers[:string] = ast_node end begin trace('SET_DOCUMENT set_document_node_eof') name = @buffers.delete(:set_document_name) set_document_node = set(name) completed = name.complete if @buffers.key?(:string) value = @buffers.delete(:string) set_document_node <<= value(value) completed = completed && value.complete elsif @buffers.key?(:ident) value = @buffers.delete(:ident) set_document_node <<= value(value) completed = completed && value.complete elsif @buffers.key?(:list) value = @buffers.delete(:list) set_document_node <<= value(value) completed = completed && value.complete end set_document_node.complete = completed yield set_document_node end when 21 then begin trace('STRING string_node_err') p_end = p chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: false) yield ast_node end begin trace('STRING string_node_eof') yield @buffers[:string] end when 46 then begin trace('LIST list_end') if @list_opened && @list_closed list = @incomplete.delete(:list) list.complete = true elsif !@list_closed list = @incomplete.delete(:list) list.complete = false end @buffers[:list] = list end begin trace('LIST yield_list') yield @buffers[:list] end when 18 then begin trace('LIST a_list_eof') list = @incomplete.delete(:list) string = @buffers.delete(:string) unless string.nil? item = list_item(string, complete: string.complete) list <<= item end ident = @buffers.delete(:ident) unless ident.nil? item = list_item(ident, complete: ident.complete) list <<= item end if @list_opened && @list_closed list.complete = true else list.complete = false end @buffers[:list] = list end begin trace('SET_DOCUMENT set_document_node_eof') name = @buffers.delete(:set_document_name) set_document_node = set(name) completed = name.complete if @buffers.key?(:string) value = @buffers.delete(:string) set_document_node <<= value(value) completed = completed && value.complete elsif @buffers.key?(:ident) value = @buffers.delete(:ident) set_document_node <<= value(value) completed = completed && value.complete elsif @buffers.key?(:list) value = @buffers.delete(:list) set_document_node <<= value(value) completed = completed && value.complete end set_document_node.complete = completed yield set_document_node end when 1 then begin trace('IDENTIFIER an_ident_eof') if @identifier_started id_end = p chars = data[id_start...id_end] completed = !chars.empty? ast_node = identifier(utf8_string(chars), complete: completed) @buffers[:ident] = ast_node end end begin trace('IDENTIFIER an_ident_err') id_end = p chars = data[id_start...id_end] ast_node = identifier(utf8_string(chars), complete: false) @buffers[:ident] = ast_node end begin trace('SET_DOCUMENT set_document_node_eof') name = @buffers.delete(:set_document_name) set_document_node = set(name) completed = name.complete if @buffers.key?(:string) value = @buffers.delete(:string) set_document_node <<= value(value) completed = completed && value.complete elsif @buffers.key?(:ident) value = @buffers.delete(:ident) set_document_node <<= value(value) completed = completed && value.complete elsif @buffers.key?(:list) value = @buffers.delete(:list) set_document_node <<= value(value) completed = completed && value.complete end set_document_node.complete = completed yield set_document_node end when 29 then begin trace('IDENTIFIER an_ident_eof') if @identifier_started id_end = p chars = data[id_start...id_end] completed = !chars.empty? ast_node = identifier(utf8_string(chars), complete: completed) @buffers[:ident] = ast_node end end begin trace('SET_DOCUMENT set_document_end') set_document_node = document_property() completed = true name = @buffers.delete(:set_document_name) unless name.nil? set_document_node <<= name end value = @buffers.delete(:set_document_value) unless value.nil? set_document_node <<= value end completed = false unless name.nil? || value.nil? completed = name.complete && value.complete end set_document_node.complete = completed @buffers[:set_document] = set_document_node end begin trace('SET_DOCUMENT yield_set') yield @buffers[:set_document] end when 27 then begin trace('STRING eof_string') p_end = p chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: false) @buffers[:string] = ast_node end begin trace('STRING a_string_err') p_end = p chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: false) @buffers[:string] = ast_node end begin trace('LIST list_node_eof') list = @incomplete.delete(:list) string = @buffers.delete(:string) item = list_item(string, complete: string.complete) list <<= item list.complete = false yield list end when 8 then begin trace('STRING eof_string') p_end = p chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: false) @buffers[:string] = ast_node end begin trace('STRING a_string_err') p_end = p chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: false) @buffers[:string] = ast_node end begin trace('SET_DOCUMENT set_document_node_eof') name = @buffers.delete(:set_document_name) set_document_node = set(name) completed = name.complete if @buffers.key?(:string) value = @buffers.delete(:string) set_document_node <<= value(value) completed = completed && value.complete elsif @buffers.key?(:ident) value = @buffers.delete(:ident) set_document_node <<= value(value) completed = completed && value.complete elsif @buffers.key?(:list) value = @buffers.delete(:list) set_document_node <<= value(value) completed = completed && value.complete end set_document_node.complete = completed yield set_document_node end when 23 then begin trace('STRING eof_string') p_end = p chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: false) @buffers[:string] = ast_node end begin trace('STRING string_node_err') p_end = p chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: false) yield ast_node end begin trace('STRING string_node_eof') yield @buffers[:string] end when 16 then begin trace('STRING a_string_err') p_end = p chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: false) @buffers[:string] = ast_node end begin trace('LIST a_list_eof') list = @incomplete.delete(:list) string = @buffers.delete(:string) unless string.nil? item = list_item(string, complete: string.complete) list <<= item end ident = @buffers.delete(:ident) unless ident.nil? item = list_item(ident, complete: ident.complete) list <<= item end if @list_opened && @list_closed list.complete = true else list.complete = false end @buffers[:list] = list end begin trace('SET_DOCUMENT set_document_node_eof') name = @buffers.delete(:set_document_name) set_document_node = set(name) completed = name.complete if @buffers.key?(:string) value = @buffers.delete(:string) set_document_node <<= value(value) completed = completed && value.complete elsif @buffers.key?(:ident) value = @buffers.delete(:ident) set_document_node <<= value(value) completed = completed && value.complete elsif @buffers.key?(:list) value = @buffers.delete(:list) set_document_node <<= value(value) completed = completed && value.complete end set_document_node.complete = completed yield set_document_node end when 48 then begin trace('LIST stop_list') @list_closed = true end begin trace('LIST list_end') if @list_opened && @list_closed list = @incomplete.delete(:list) list.complete = true elsif !@list_closed list = @incomplete.delete(:list) list.complete = false end @buffers[:list] = list end begin trace('LIST yield_list') yield @buffers[:list] end when 45 then begin trace('LIST add_string') string = @buffers.delete(:string) item = list_item(string, complete: string.complete) @incomplete[:list] <<= item end begin trace('LIST list_end') if @list_opened && @list_closed list = @incomplete.delete(:list) list.complete = true elsif !@list_closed list = @incomplete.delete(:list) list.complete = false end @buffers[:list] = list end begin trace('LIST yield_list') yield @buffers[:list] end when 44 then begin trace('LIST list_node_eof') list = @incomplete.delete(:list) string = @buffers.delete(:string) item = list_item(string, complete: string.complete) list <<= item list.complete = false yield list end begin trace('LIST list_end') if @list_opened && @list_closed list = @incomplete.delete(:list) list.complete = true elsif !@list_closed list = @incomplete.delete(:list) list.complete = false end @buffers[:list] = list end begin trace('LIST yield_list') yield @buffers[:list] end when 34 then begin trace('SET_DOCUMENT add_string_value') string = @buffers.delete(:string) @buffers[:set_document_value] = value(string) end begin trace('SET_DOCUMENT set_document_end') set_document_node = document_property() completed = true name = @buffers.delete(:set_document_name) unless name.nil? set_document_node <<= name end value = @buffers.delete(:set_document_value) unless value.nil? set_document_node <<= value end completed = false unless name.nil? || value.nil? completed = name.complete && value.complete end set_document_node.complete = completed @buffers[:set_document] = set_document_node end begin trace('SET_DOCUMENT yield_set') yield @buffers[:set_document] end when 19 then begin trace('IDENTIFIER an_ident_eof') if @identifier_started id_end = p chars = data[id_start...id_end] completed = !chars.empty? ast_node = identifier(utf8_string(chars), complete: completed) @buffers[:ident] = ast_node end end begin trace('IDENTIFIER an_ident_err') id_end = p chars = data[id_start...id_end] ast_node = identifier(utf8_string(chars), complete: false) @buffers[:ident] = ast_node end begin trace('LIST a_list_eof') list = @incomplete.delete(:list) string = @buffers.delete(:string) unless string.nil? item = list_item(string, complete: string.complete) list <<= item end ident = @buffers.delete(:ident) unless ident.nil? item = list_item(ident, complete: ident.complete) list <<= item end if @list_opened && @list_closed list.complete = true else list.complete = false end @buffers[:list] = list end begin trace('SET_DOCUMENT set_document_node_eof') name = @buffers.delete(:set_document_name) set_document_node = set(name) completed = name.complete if @buffers.key?(:string) value = @buffers.delete(:string) set_document_node <<= value(value) completed = completed && value.complete elsif @buffers.key?(:ident) value = @buffers.delete(:ident) set_document_node <<= value(value) completed = completed && value.complete elsif @buffers.key?(:list) value = @buffers.delete(:list) set_document_node <<= value(value) completed = completed && value.complete end set_document_node.complete = completed yield set_document_node end when 43 then begin trace('IDENTIFIER an_ident_eof') if @identifier_started id_end = p chars = data[id_start...id_end] completed = !chars.empty? ast_node = identifier(utf8_string(chars), complete: completed) @buffers[:ident] = ast_node end end begin trace('LIST list_node_eof') list = @incomplete.delete(:list) string = @buffers.delete(:string) item = list_item(string, complete: string.complete) list <<= item list.complete = false yield list end begin trace('LIST list_end') if @list_opened && @list_closed list = @incomplete.delete(:list) list.complete = true elsif !@list_closed list = @incomplete.delete(:list) list.complete = false end @buffers[:list] = list end begin trace('LIST yield_list') yield @buffers[:list] end when 32 then begin trace('IDENTIFIER an_ident_eof') if @identifier_started id_end = p chars = data[id_start...id_end] completed = !chars.empty? ast_node = identifier(utf8_string(chars), complete: completed) @buffers[:ident] = ast_node end end begin trace('SET_DOCUMENT set_document_node_eof') name = @buffers.delete(:set_document_name) set_document_node = set(name) completed = name.complete if @buffers.key?(:string) value = @buffers.delete(:string) set_document_node <<= value(value) completed = completed && value.complete elsif @buffers.key?(:ident) value = @buffers.delete(:ident) set_document_node <<= value(value) completed = completed && value.complete elsif @buffers.key?(:list) value = @buffers.delete(:list) set_document_node <<= value(value) completed = completed && value.complete end set_document_node.complete = completed yield set_document_node end begin trace('SET_DOCUMENT set_document_end') set_document_node = document_property() completed = true name = @buffers.delete(:set_document_name) unless name.nil? set_document_node <<= name end value = @buffers.delete(:set_document_value) unless value.nil? set_document_node <<= value end completed = false unless name.nil? || value.nil? completed = name.complete && value.complete end set_document_node.complete = completed @buffers[:set_document] = set_document_node end begin trace('SET_DOCUMENT yield_set') yield @buffers[:set_document] end when 28 then begin trace('STRING a_string_err') p_end = p chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: false) @buffers[:string] = ast_node end begin trace('IDENTIFIER an_ident_eof') if @identifier_started id_end = p chars = data[id_start...id_end] completed = !chars.empty? ast_node = identifier(utf8_string(chars), complete: completed) @buffers[:ident] = ast_node end end begin trace('IDENTIFIER an_ident_err') id_end = p chars = data[id_start...id_end] ast_node = identifier(utf8_string(chars), complete: false) @buffers[:ident] = ast_node end begin trace('LIST list_node_eof') list = @incomplete.delete(:list) string = @buffers.delete(:string) item = list_item(string, complete: string.complete) list <<= item list.complete = false yield list end when 12 then begin trace('STRING a_string_err') p_end = p chars = data[p_start...p_end] ast_node = string(utf8_string(chars), complete: false) @buffers[:string] = ast_node end begin trace('IDENTIFIER an_ident_eof') if @identifier_started id_end = p chars = data[id_start...id_end] completed = !chars.empty? ast_node = identifier(utf8_string(chars), complete: completed) @buffers[:ident] = ast_node end end begin trace('IDENTIFIER an_ident_err') id_end = p chars = data[id_start...id_end] ast_node = identifier(utf8_string(chars), complete: false) @buffers[:ident] = ast_node end begin trace('SET_DOCUMENT set_document_node_eof') name = @buffers.delete(:set_document_name) set_document_node = set(name) completed = name.complete if @buffers.key?(:string) value = @buffers.delete(:string) set_document_node <<= value(value) completed = completed && value.complete elsif @buffers.key?(:ident) value = @buffers.delete(:ident) set_document_node <<= value(value) completed = completed && value.complete elsif @buffers.key?(:list) value = @buffers.delete(:list) set_document_node <<= value(value) completed = completed && value.complete end set_document_node.complete = completed yield set_document_node end when 42 then begin trace('LIST start_list') @list_opened = true @incomplete[:list] = list() end begin trace('IDENTIFIER an_ident_eof') if @identifier_started id_end = p chars = data[id_start...id_end] completed = !chars.empty? ast_node = identifier(utf8_string(chars), complete: completed) @buffers[:ident] = ast_node end end begin trace('LIST list_end') if @list_opened && @list_closed list = @incomplete.delete(:list) list.complete = true elsif !@list_closed list = @incomplete.delete(:list) list.complete = false end @buffers[:list] = list end begin trace('LIST yield_list') yield @buffers[:list] end when 47 then begin trace('IDENTIFIER end_identifier') id_end = p chars = data[id_start...id_end] completed = !chars.empty? ast_node = identifier(utf8_string(chars), complete: completed) @buffers[:ident] = ast_node end begin trace('IDENTIFIER an_ident_eof') if @identifier_started id_end = p chars = data[id_start...id_end] completed = !chars.empty? ast_node = identifier(utf8_string(chars), complete: completed) @buffers[:ident] = ast_node end end begin trace('LIST add_ident') ident = @buffers.delete(:ident) item = list_item(ident, complete: ident.complete) @incomplete[:list] <<= item end begin trace('LIST list_end') if @list_opened && @list_closed list = @incomplete.delete(:list) list.complete = true elsif !@list_closed list = @incomplete.delete(:list) list.complete = false end @buffers[:list] = list end begin trace('LIST yield_list') yield @buffers[:list] end when 35 then begin trace('IDENTIFIER end_identifier') id_end = p chars = data[id_start...id_end] completed = !chars.empty? ast_node = identifier(utf8_string(chars), complete: completed) @buffers[:ident] = ast_node end begin trace('IDENTIFIER an_ident_eof') if @identifier_started id_end = p chars = data[id_start...id_end] completed = !chars.empty? ast_node = identifier(utf8_string(chars), complete: completed) @buffers[:ident] = ast_node end end begin trace('SET_DOCUMENT add_ident_value') ident = @buffers.delete(:ident) @buffers[:set_document_value] = value(ident) end begin trace('SET_DOCUMENT set_document_end') set_document_node = document_property() completed = true name = @buffers.delete(:set_document_name) unless name.nil? set_document_node <<= name end value = @buffers.delete(:set_document_value) unless value.nil? set_document_node <<= value end completed = false unless name.nil? || value.nil? completed = name.complete && value.complete end set_document_node.complete = completed @buffers[:set_document] = set_document_node end begin trace('SET_DOCUMENT yield_set') yield @buffers[:set_document] end when 37 then begin trace('LIST stop_list') @list_closed = true end begin trace('LIST list_end') if @list_opened && @list_closed list = @incomplete.delete(:list) list.complete = true elsif !@list_closed list = @incomplete.delete(:list) list.complete = false end @buffers[:list] = list end begin trace('SET_DOCUMENT add_list_value') list = @buffers.delete(:list) @buffers[:set_document_value] = value(list) end begin trace('SET_DOCUMENT set_document_end') set_document_node = document_property() completed = true name = @buffers.delete(:set_document_name) unless name.nil? set_document_node <<= name end value = @buffers.delete(:set_document_value) unless value.nil? set_document_node <<= value end completed = false unless name.nil? || value.nil? completed = name.complete && value.complete end set_document_node.complete = completed @buffers[:set_document] = set_document_node end begin trace('SET_DOCUMENT yield_set') yield @buffers[:set_document] end end end end if _goto_level <= _out break end end end # end: ragel end end end end end end if __FILE__ == $0 $stdin.each_line do |line| BELParser::Parsers::BELScript::SetDocument.parse(line) { |obj| puts obj.inspect } end end # vim: ft=ruby ts=2 sw=2: # encoding: utf-8