trenni 3.7.0 → 3.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (113) hide show
  1. checksums.yaml +4 -4
  2. data/bake/trenni/entities.rb +57 -0
  3. data/bake/trenni/parsers.rb +66 -0
  4. data/ext/.DS_Store +0 -0
  5. data/ext/Rakefile +1 -0
  6. data/ext/tmp/.DS_Store +0 -0
  7. data/ext/tmp/x86_64-darwin16/lib/trenni/trenni.bundle +0 -0
  8. data/ext/tmp/x86_64-darwin16/trenni/2.4.0/Makefile +264 -0
  9. data/ext/tmp/x86_64-darwin16/trenni/2.4.0/escape.o +0 -0
  10. data/ext/tmp/x86_64-darwin16/trenni/2.4.0/markup.o +0 -0
  11. data/ext/tmp/x86_64-darwin16/trenni/2.4.0/mkmf.log +105 -0
  12. data/ext/tmp/x86_64-darwin16/trenni/2.4.0/tag.o +0 -0
  13. data/ext/tmp/x86_64-darwin16/trenni/2.4.0/template.o +0 -0
  14. data/ext/tmp/x86_64-darwin16/trenni/2.4.0/trenni.bundle +0 -0
  15. data/ext/tmp/x86_64-darwin16/trenni/2.4.0/trenni.o +0 -0
  16. data/ext/tmp/x86_64-darwin18/lib/trenni/trenni.bundle +0 -0
  17. data/ext/tmp/x86_64-darwin18/trenni/2.6.1/Makefile +266 -0
  18. data/ext/tmp/x86_64-darwin18/trenni/2.6.1/escape.o +0 -0
  19. data/ext/tmp/x86_64-darwin18/trenni/2.6.1/markup.o +0 -0
  20. data/ext/tmp/x86_64-darwin18/trenni/2.6.1/mkmf.log +109 -0
  21. data/ext/tmp/x86_64-darwin18/trenni/2.6.1/tag.o +0 -0
  22. data/ext/tmp/x86_64-darwin18/trenni/2.6.1/template.o +0 -0
  23. data/ext/tmp/x86_64-darwin18/trenni/2.6.1/trenni.bundle +0 -0
  24. data/ext/tmp/x86_64-darwin18/trenni/2.6.1/trenni.o +0 -0
  25. data/ext/tmp/x86_64-darwin18/trenni/2.6.2/Makefile +266 -0
  26. data/ext/tmp/x86_64-darwin18/trenni/2.6.2/escape.o +0 -0
  27. data/ext/tmp/x86_64-darwin18/trenni/2.6.2/markup.o +0 -0
  28. data/ext/tmp/x86_64-darwin18/trenni/2.6.2/mkmf.log +109 -0
  29. data/ext/tmp/x86_64-darwin18/trenni/2.6.2/tag.o +0 -0
  30. data/ext/tmp/x86_64-darwin18/trenni/2.6.2/template.o +0 -0
  31. data/ext/tmp/x86_64-darwin18/trenni/2.6.2/trenni.bundle +0 -0
  32. data/ext/tmp/x86_64-darwin18/trenni/2.6.2/trenni.o +0 -0
  33. data/ext/tmp/x86_64-darwin19/lib/trenni/trenni.bundle +0 -0
  34. data/ext/tmp/x86_64-darwin19/trenni/2.7.1/Makefile +267 -0
  35. data/ext/tmp/x86_64-darwin19/trenni/2.7.1/escape.o +0 -0
  36. data/ext/tmp/x86_64-darwin19/trenni/2.7.1/markup.o +0 -0
  37. data/ext/tmp/x86_64-darwin19/trenni/2.7.1/mkmf.log +109 -0
  38. data/ext/tmp/x86_64-darwin19/trenni/2.7.1/query.o +0 -0
  39. data/ext/tmp/x86_64-darwin19/trenni/2.7.1/tag.o +0 -0
  40. data/ext/tmp/x86_64-darwin19/trenni/2.7.1/template.o +0 -0
  41. data/ext/tmp/x86_64-darwin19/trenni/2.7.1/trenni.bundle +0 -0
  42. data/ext/tmp/x86_64-darwin19/trenni/2.7.1/trenni.o +0 -0
  43. data/ext/trenni/.DS_Store +0 -0
  44. data/ext/trenni/extconf.rb +1 -0
  45. data/ext/trenni/markup.c +85 -85
  46. data/ext/trenni/markup.rl +11 -11
  47. data/ext/trenni/query.c +619 -0
  48. data/ext/trenni/query.h +6 -0
  49. data/ext/trenni/query.rl +82 -0
  50. data/ext/trenni/tag.c +8 -6
  51. data/ext/trenni/template.c +57 -57
  52. data/ext/trenni/template.rl +4 -4
  53. data/ext/trenni/trenni.c +9 -1
  54. data/ext/trenni/trenni.h +8 -3
  55. data/lib/.DS_Store +0 -0
  56. data/lib/trenni.rb +4 -0
  57. data/lib/trenni/.DS_Store +0 -0
  58. data/lib/trenni/buffer.rb +2 -0
  59. data/lib/trenni/builder.rb +21 -5
  60. data/lib/trenni/entities.rb +2082 -2082
  61. data/lib/trenni/entities.trenni +1 -3
  62. data/lib/trenni/{parse_error.rb → error.rb} +6 -1
  63. data/lib/trenni/fallback/markup.rb +1623 -1575
  64. data/lib/trenni/fallback/markup.rl +3 -2
  65. data/lib/trenni/fallback/query.rb +565 -0
  66. data/lib/trenni/fallback/query.rl +105 -0
  67. data/lib/trenni/fallback/template.rb +756 -747
  68. data/lib/trenni/fallback/template.rl +1 -1
  69. data/lib/trenni/markup.rb +2 -0
  70. data/lib/trenni/native.rb +3 -1
  71. data/lib/trenni/parse_delegate.rb +2 -0
  72. data/lib/trenni/parsers.rb +2 -0
  73. data/lib/trenni/query.rb +94 -0
  74. data/lib/trenni/reference.rb +125 -0
  75. data/lib/trenni/strings.rb +17 -4
  76. data/lib/trenni/tag.rb +2 -0
  77. data/lib/trenni/template.rb +25 -11
  78. data/lib/trenni/uri.rb +3 -0
  79. data/lib/trenni/version.rb +3 -1
  80. data/parsers/.DS_Store +0 -0
  81. data/parsers/trenni/query.rl +23 -0
  82. data/spec/.DS_Store +0 -0
  83. data/spec/spec_helper.rb +1 -0
  84. data/spec/trenni/builder_spec.rb +13 -0
  85. data/spec/trenni/corpus/large.rb +2 -0
  86. data/spec/trenni/markup_parser_spec.rb +1 -0
  87. data/spec/trenni/markup_performance_spec.rb +15 -2
  88. data/spec/trenni/markup_spec.rb +1 -0
  89. data/spec/trenni/parsers_performance_spec.rb +32 -0
  90. data/spec/trenni/query_spec.rb +51 -0
  91. data/spec/trenni/reference_spec.rb +87 -0
  92. data/spec/trenni/strings_spec.rb +1 -0
  93. data/spec/trenni/tag_spec.rb +2 -0
  94. data/spec/trenni/template_error_spec.rb +1 -0
  95. data/spec/trenni/template_performance_spec.rb +1 -0
  96. data/spec/trenni/template_spec.rb +3 -2
  97. data/spec/trenni/template_spec/.DS_Store +0 -0
  98. data/spec/trenni/uri_spec.rb +1 -0
  99. metadata +103 -60
  100. data/.gitignore +0 -19
  101. data/.rspec +0 -5
  102. data/.simplecov +0 -9
  103. data/.travis.yml +0 -23
  104. data/Gemfile +0 -20
  105. data/README.md +0 -312
  106. data/Rakefile +0 -19
  107. data/benchmark/call_vs_yield.rb +0 -51
  108. data/benchmark/interpolation_vs_concat.rb +0 -29
  109. data/benchmark/io_vs_string.rb +0 -90
  110. data/entities.json +0 -2233
  111. data/tasks/entities.rake +0 -33
  112. data/tasks/parsers.rake +0 -43
  113. data/trenni.gemspec +0 -33
@@ -0,0 +1,105 @@
1
+ # Copyright, 2020, by Samuel G. D. Williams. <http://www.codeotaku.com>
2
+ #
3
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ # of this software and associated documentation files (the "Software"), to deal
5
+ # in the Software without restriction, including without limitation the rights
6
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ # copies of the Software, and to permit persons to whom the Software is
8
+ # furnished to do so, subject to the following conditions:
9
+ #
10
+ # The above copyright notice and this permission notice shall be included in
11
+ # all copies or substantial portions of the Software.
12
+ #
13
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
+ # THE SOFTWARE.
20
+
21
+ %%{
22
+ machine query;
23
+
24
+ action string_begin {
25
+ string_begin = p
26
+ }
27
+
28
+ action string_end {
29
+ string_end = p
30
+
31
+ delegate.string(data.byteslice(string_begin...string_end), encoded)
32
+
33
+ encoded = false
34
+ }
35
+
36
+ action integer_begin {
37
+ integer_begin = p
38
+ }
39
+
40
+ action integer_end {
41
+ integer_end = p
42
+
43
+ delegate.integer(data.byteslice(integer_begin...integer_end))
44
+ }
45
+
46
+ action append {
47
+ delegate.append
48
+ }
49
+
50
+ action value_begin {
51
+ value_begin = p
52
+ }
53
+
54
+ action value_end {
55
+ value_end = p
56
+
57
+ delegate.assign(data.byteslice(value_begin...value_end), encoded)
58
+
59
+ encoded = false
60
+ }
61
+
62
+ action pair {
63
+ delegate.pair
64
+ }
65
+
66
+ action encoded {
67
+ encoded = 1;
68
+ }
69
+
70
+ # This magic ensures that we process bytes.
71
+ getkey bytes[p];
72
+
73
+ include query "trenni/query.rl";
74
+ }%%
75
+
76
+ require_relative '../error'
77
+
78
+ module Trenni
79
+ module Fallback
80
+ %% write data;
81
+
82
+ def self.parse_query(buffer, delegate)
83
+ data = buffer.read
84
+ bytes = data.bytes
85
+
86
+ p = 0
87
+ pe = eof = data.bytesize
88
+ stack = []
89
+
90
+ string_begin = string_end = nil
91
+ integer_begin = integer_end = nil
92
+ value_begin = value_end = nil
93
+ encoded = false
94
+
95
+ %% write init;
96
+ %% write exec;
97
+
98
+ if p != eof
99
+ raise ParseError.new("could not consume all input", buffer, p)
100
+ end
101
+
102
+ return nil
103
+ end
104
+ end
105
+ end
@@ -24,766 +24,773 @@
24
24
  # line 68 "template.rl"
25
25
 
26
26
 
27
- require_relative '../parse_error'
27
+ require_relative '../error'
28
28
 
29
29
  module Trenni
30
30
  module Fallback
31
- # line 33 "template.rb"
32
- class << self
33
- attr_accessor :_template_trans_keys
34
- private :_template_trans_keys, :_template_trans_keys=
35
- end
36
- self._template_trans_keys = [
37
- 0, 0, 10, 60, 123, 123,
38
- 63, 63, 123, 123, 63,
39
- 63, 63, 63, 114, 114,
40
- 9, 32, 63, 63, 62, 62,
41
- 9, 32, 123, 123, 63,
42
- 63, 0, 127, 0, 127,
43
- 63, 63, 62, 62, 0, 127,
44
- 63, 63, 62, 62, 34,
45
- 125, 34, 35, 35, 125,
46
- 35, 125, 34, 39, 35, 125,
47
- 35, 125, 34, 123, 34,
48
- 123, 39, 39, 34, 125,
49
- 34, 125, 34, 35, 35, 125,
50
- 35, 125, 34, 39, 35,
51
- 125, 35, 125, 34, 123,
52
- 34, 123, 39, 39, 34, 125,
53
- 9, 60, 10, 60, 10,
54
- 60, 9, 60, 0, 0,
55
- 9, 32, 34, 39, 34, 35,
56
- 39, 39, 0, 0, 34,
57
- 39, 34, 35, 39, 39,
58
- 0, 0, 0
59
- ]
60
-
61
- class << self
62
- attr_accessor :_template_key_spans
63
- private :_template_key_spans, :_template_key_spans=
64
- end
65
- self._template_key_spans = [
66
- 0, 51, 1, 1, 1, 1, 1, 1,
67
- 24, 1, 1, 24, 1, 1, 128, 128,
68
- 1, 1, 128, 1, 1, 92, 2, 91,
69
- 91, 6, 91, 91, 90, 90, 1, 92,
70
- 92, 2, 91, 91, 6, 91, 91, 90,
71
- 90, 1, 92, 52, 51, 51, 52, 0,
72
- 24, 6, 2, 1, 0, 6, 2, 1,
73
- 0
74
- ]
75
-
76
- class << self
77
- attr_accessor :_template_index_offsets
78
- private :_template_index_offsets, :_template_index_offsets=
79
- end
80
- self._template_index_offsets = [
81
- 0, 0, 52, 54, 56, 58, 60, 62,
82
- 64, 89, 91, 93, 118, 120, 122, 251,
83
- 380, 382, 384, 513, 515, 517, 610, 613,
84
- 705, 797, 804, 896, 988, 1079, 1170, 1172,
85
- 1265, 1358, 1361, 1453, 1545, 1552, 1644, 1736,
86
- 1827, 1918, 1920, 2013, 2066, 2118, 2170, 2223,
87
- 2224, 2249, 2256, 2259, 2261, 2262, 2269, 2272,
88
- 2274
89
- ]
90
-
91
- class << self
92
- attr_accessor :_template_indicies
93
- private :_template_indicies, :_template_indicies=
94
- end
95
- self._template_indicies = [
96
- 2, 1, 1, 1, 1, 1, 1, 1,
97
- 1, 1, 1, 1, 1, 1, 1, 1,
98
- 1, 1, 1, 1, 1, 1, 1, 1,
99
- 1, 3, 1, 1, 1, 1, 1, 1,
100
- 1, 1, 1, 1, 1, 1, 1, 1,
101
- 1, 1, 1, 1, 1, 1, 1, 1,
102
- 1, 1, 4, 1, 0, 1, 0, 1,
103
- 5, 6, 5, 6, 7, 6, 8, 5,
104
- 10, 10, 10, 10, 10, 5, 5, 5,
105
- 5, 5, 5, 5, 5, 5, 5, 5,
106
- 5, 5, 5, 5, 5, 5, 5, 10,
107
- 5, 12, 11, 13, 11, 13, 15, 13,
108
- 13, 13, 14, 14, 14, 14, 14, 14,
109
- 14, 14, 14, 14, 14, 14, 14, 14,
110
- 14, 14, 14, 14, 13, 14, 16, 6,
111
- 17, 6, 19, 19, 19, 19, 19, 19,
112
- 19, 19, 19, 19, 19, 19, 19, 19,
113
- 19, 19, 19, 19, 19, 19, 19, 19,
114
- 19, 19, 19, 19, 19, 19, 19, 19,
115
- 19, 19, 19, 19, 19, 19, 19, 19,
116
- 19, 19, 19, 19, 19, 19, 19, 18,
117
- 18, 19, 18, 18, 18, 18, 18, 18,
118
- 18, 18, 18, 18, 18, 19, 19, 19,
119
- 19, 19, 19, 18, 18, 18, 18, 18,
120
- 18, 18, 18, 18, 18, 18, 18, 18,
121
- 18, 18, 18, 18, 18, 18, 18, 18,
122
- 18, 18, 18, 18, 18, 19, 19, 19,
123
- 19, 18, 19, 18, 18, 18, 18, 18,
124
- 18, 18, 18, 18, 18, 18, 18, 18,
125
- 18, 18, 18, 18, 20, 18, 18, 18,
126
- 18, 18, 18, 18, 18, 19, 19, 19,
127
- 19, 19, 18, 19, 19, 19, 19, 19,
128
- 19, 19, 19, 19, 21, 21, 21, 21,
129
- 21, 19, 19, 19, 19, 19, 19, 19,
130
- 19, 19, 19, 19, 19, 19, 19, 19,
131
- 19, 19, 19, 21, 19, 19, 19, 19,
132
- 19, 19, 19, 19, 19, 19, 19, 19,
133
- 18, 18, 19, 18, 18, 18, 18, 18,
134
- 18, 18, 18, 18, 18, 18, 19, 19,
135
- 19, 19, 19, 19, 18, 18, 18, 18,
136
- 18, 18, 18, 18, 18, 18, 18, 18,
137
- 18, 18, 18, 18, 18, 18, 18, 18,
138
- 18, 18, 18, 18, 18, 18, 19, 19,
139
- 19, 19, 18, 19, 18, 18, 18, 18,
140
- 18, 18, 18, 18, 18, 18, 18, 18,
141
- 18, 18, 18, 18, 18, 18, 18, 18,
142
- 18, 18, 18, 18, 18, 18, 19, 19,
143
- 19, 19, 19, 18, 22, 21, 23, 21,
144
- 19, 19, 19, 19, 19, 19, 19, 19,
145
- 19, 24, 24, 24, 24, 24, 19, 19,
146
- 19, 19, 19, 19, 19, 19, 19, 19,
147
- 19, 19, 19, 19, 19, 19, 19, 19,
148
- 24, 19, 19, 19, 19, 19, 19, 19,
149
- 19, 19, 19, 19, 19, 18, 18, 19,
150
- 18, 18, 18, 18, 18, 18, 18, 18,
151
- 18, 18, 18, 19, 19, 19, 19, 19,
152
- 19, 18, 18, 18, 18, 18, 18, 18,
153
- 18, 18, 18, 18, 18, 18, 18, 18,
154
- 18, 18, 18, 18, 18, 18, 18, 18,
155
- 18, 18, 18, 19, 19, 19, 19, 18,
156
- 19, 18, 18, 18, 18, 18, 18, 18,
157
- 18, 18, 18, 18, 18, 18, 18, 18,
158
- 18, 18, 18, 18, 18, 18, 18, 18,
159
- 18, 18, 18, 19, 19, 19, 19, 19,
160
- 18, 26, 25, 27, 25, 29, 28, 28,
161
- 28, 28, 30, 28, 28, 28, 28, 28,
162
- 28, 28, 28, 28, 28, 28, 28, 28,
163
- 28, 28, 28, 28, 28, 28, 28, 28,
164
- 28, 28, 28, 28, 28, 28, 28, 28,
165
- 28, 28, 28, 28, 28, 28, 28, 28,
166
- 28, 28, 28, 28, 28, 28, 28, 28,
167
- 28, 28, 28, 28, 28, 28, 28, 28,
168
- 28, 28, 28, 28, 28, 28, 28, 28,
169
- 28, 28, 28, 28, 28, 28, 28, 28,
170
- 28, 28, 28, 28, 28, 28, 28, 28,
171
- 28, 28, 28, 28, 28, 28, 31, 28,
172
- 32, 28, 33, 34, 29, 35, 33, 33,
173
- 33, 36, 33, 33, 33, 33, 33, 33,
174
- 33, 33, 33, 33, 33, 33, 33, 33,
175
- 33, 33, 33, 33, 33, 33, 33, 33,
176
- 33, 33, 33, 33, 33, 33, 33, 33,
177
- 33, 33, 33, 33, 33, 33, 33, 33,
178
- 33, 33, 33, 33, 33, 33, 33, 33,
179
- 33, 33, 33, 33, 33, 33, 33, 33,
180
- 33, 33, 33, 33, 33, 33, 33, 33,
181
- 33, 33, 33, 33, 33, 33, 33, 33,
182
- 33, 33, 33, 33, 33, 33, 33, 33,
183
- 33, 33, 33, 33, 33, 37, 33, 38,
184
- 33, 35, 33, 33, 33, 36, 33, 33,
185
- 33, 33, 33, 33, 33, 33, 33, 33,
186
- 33, 33, 33, 33, 33, 33, 33, 33,
187
- 33, 33, 33, 33, 33, 33, 33, 33,
188
- 33, 33, 33, 33, 33, 33, 33, 33,
189
- 33, 33, 33, 33, 33, 33, 33, 33,
190
- 33, 33, 33, 33, 33, 33, 33, 33,
191
- 33, 33, 33, 33, 33, 33, 33, 33,
192
- 33, 33, 33, 33, 33, 33, 33, 33,
193
- 33, 33, 33, 33, 33, 33, 33, 33,
194
- 33, 33, 33, 33, 33, 33, 33, 33,
195
- 33, 39, 33, 38, 33, 40, 41, 36,
196
- 36, 36, 40, 36, 42, 40, 40, 40,
197
- 40, 40, 40, 40, 40, 40, 40, 40,
198
- 40, 40, 40, 40, 40, 40, 40, 40,
199
- 40, 40, 40, 40, 40, 40, 40, 40,
200
- 40, 40, 40, 40, 40, 40, 40, 40,
201
- 40, 40, 40, 40, 40, 40, 40, 40,
202
- 40, 40, 40, 40, 40, 40, 40, 40,
203
- 40, 40, 40, 40, 40, 40, 40, 40,
204
- 40, 40, 40, 40, 40, 40, 40, 40,
205
- 40, 40, 40, 40, 40, 40, 40, 40,
206
- 40, 40, 40, 40, 40, 40, 40, 40,
207
- 40, 40, 40, 40, 43, 40, 44, 40,
208
- 42, 40, 40, 40, 40, 40, 40, 40,
209
- 40, 40, 40, 40, 40, 40, 40, 40,
210
- 40, 40, 40, 40, 40, 40, 40, 40,
211
- 40, 40, 40, 40, 40, 40, 40, 40,
212
- 40, 40, 40, 40, 40, 40, 40, 40,
213
- 40, 40, 40, 40, 40, 40, 40, 40,
214
- 40, 40, 40, 40, 40, 40, 40, 40,
215
- 40, 40, 40, 40, 40, 40, 40, 40,
216
- 40, 40, 40, 40, 40, 40, 40, 40,
217
- 40, 40, 40, 40, 40, 40, 40, 40,
218
- 40, 40, 40, 40, 40, 40, 40, 40,
219
- 45, 40, 44, 40, 40, 41, 36, 36,
220
- 36, 40, 36, 36, 36, 36, 36, 36,
221
- 36, 36, 36, 36, 36, 36, 36, 36,
222
- 36, 36, 36, 36, 36, 36, 36, 36,
223
- 36, 36, 36, 36, 36, 36, 36, 36,
224
- 36, 36, 36, 36, 36, 36, 36, 36,
225
- 36, 36, 36, 36, 36, 36, 36, 36,
226
- 36, 36, 36, 36, 36, 36, 36, 36,
227
- 36, 36, 36, 36, 36, 36, 36, 36,
228
- 36, 36, 36, 36, 36, 36, 36, 36,
229
- 36, 36, 36, 36, 36, 36, 36, 36,
230
- 36, 36, 36, 36, 36, 46, 36, 33,
231
- 34, 29, 29, 29, 29, 29, 29, 29,
232
- 29, 29, 29, 29, 29, 29, 29, 29,
233
- 29, 29, 29, 29, 29, 29, 29, 29,
234
- 29, 29, 29, 29, 29, 29, 29, 29,
235
- 29, 29, 29, 29, 29, 29, 29, 29,
236
- 29, 29, 29, 29, 29, 29, 29, 29,
237
- 29, 29, 29, 29, 29, 29, 29, 29,
238
- 29, 29, 29, 29, 29, 29, 29, 29,
239
- 29, 29, 29, 29, 29, 29, 29, 29,
240
- 29, 29, 29, 29, 29, 29, 29, 29,
241
- 29, 29, 29, 29, 29, 29, 29, 29,
242
- 47, 29, 48, 30, 36, 48, 48, 48,
243
- 48, 48, 48, 48, 48, 48, 48, 48,
244
- 48, 48, 48, 48, 48, 48, 48, 48,
245
- 48, 48, 48, 48, 48, 48, 48, 48,
246
- 48, 48, 48, 48, 48, 48, 48, 48,
247
- 48, 48, 48, 48, 48, 48, 48, 48,
248
- 48, 48, 48, 48, 48, 48, 48, 48,
249
- 48, 48, 48, 48, 48, 48, 48, 48,
250
- 48, 48, 48, 48, 48, 48, 48, 48,
251
- 48, 48, 48, 48, 48, 48, 48, 48,
252
- 48, 48, 48, 48, 48, 48, 48, 48,
253
- 48, 48, 48, 48, 48, 49, 48, 50,
254
- 48, 52, 51, 51, 51, 51, 53, 51,
255
- 51, 51, 51, 51, 51, 51, 51, 51,
256
- 51, 51, 51, 51, 51, 51, 51, 51,
257
- 51, 51, 51, 51, 51, 51, 51, 51,
258
- 51, 51, 51, 51, 51, 51, 51, 51,
259
- 51, 51, 51, 51, 51, 51, 51, 51,
260
- 51, 51, 51, 51, 51, 51, 51, 51,
261
- 51, 51, 51, 51, 51, 51, 51, 51,
262
- 51, 51, 51, 51, 51, 51, 51, 51,
263
- 51, 51, 51, 51, 51, 51, 51, 51,
264
- 51, 51, 51, 51, 51, 51, 51, 51,
265
- 51, 51, 54, 51, 55, 51, 56, 57,
266
- 52, 58, 56, 56, 56, 59, 56, 56,
267
- 56, 56, 56, 56, 56, 56, 56, 56,
268
- 56, 56, 56, 56, 56, 56, 56, 56,
269
- 56, 56, 56, 56, 56, 56, 56, 56,
270
- 56, 56, 56, 56, 56, 56, 56, 56,
271
- 56, 56, 56, 56, 56, 56, 56, 56,
272
- 56, 56, 56, 56, 56, 56, 56, 56,
273
- 56, 56, 56, 56, 56, 56, 56, 56,
274
- 56, 56, 56, 56, 56, 56, 56, 56,
275
- 56, 56, 56, 56, 56, 56, 56, 56,
276
- 56, 56, 56, 56, 56, 56, 56, 56,
277
- 56, 60, 56, 61, 56, 58, 56, 56,
278
- 56, 59, 56, 56, 56, 56, 56, 56,
279
- 56, 56, 56, 56, 56, 56, 56, 56,
280
- 56, 56, 56, 56, 56, 56, 56, 56,
281
- 56, 56, 56, 56, 56, 56, 56, 56,
282
- 56, 56, 56, 56, 56, 56, 56, 56,
283
- 56, 56, 56, 56, 56, 56, 56, 56,
284
- 56, 56, 56, 56, 56, 56, 56, 56,
285
- 56, 56, 56, 56, 56, 56, 56, 56,
286
- 56, 56, 56, 56, 56, 56, 56, 56,
287
- 56, 56, 56, 56, 56, 56, 56, 56,
288
- 56, 56, 56, 56, 56, 62, 56, 61,
289
- 56, 63, 64, 59, 59, 59, 63, 59,
290
- 65, 63, 63, 63, 63, 63, 63, 63,
291
- 63, 63, 63, 63, 63, 63, 63, 63,
292
- 63, 63, 63, 63, 63, 63, 63, 63,
293
- 63, 63, 63, 63, 63, 63, 63, 63,
294
- 63, 63, 63, 63, 63, 63, 63, 63,
295
- 63, 63, 63, 63, 63, 63, 63, 63,
296
- 63, 63, 63, 63, 63, 63, 63, 63,
297
- 63, 63, 63, 63, 63, 63, 63, 63,
298
- 63, 63, 63, 63, 63, 63, 63, 63,
299
- 63, 63, 63, 63, 63, 63, 63, 63,
300
- 63, 63, 63, 63, 63, 63, 63, 63,
301
- 66, 63, 67, 63, 65, 63, 63, 63,
302
- 63, 63, 63, 63, 63, 63, 63, 63,
303
- 63, 63, 63, 63, 63, 63, 63, 63,
304
- 63, 63, 63, 63, 63, 63, 63, 63,
305
- 63, 63, 63, 63, 63, 63, 63, 63,
306
- 63, 63, 63, 63, 63, 63, 63, 63,
307
- 63, 63, 63, 63, 63, 63, 63, 63,
308
- 63, 63, 63, 63, 63, 63, 63, 63,
309
- 63, 63, 63, 63, 63, 63, 63, 63,
310
- 63, 63, 63, 63, 63, 63, 63, 63,
311
- 63, 63, 63, 63, 63, 63, 63, 63,
312
- 63, 63, 63, 63, 68, 63, 67, 63,
313
- 63, 64, 59, 59, 59, 63, 59, 59,
314
- 59, 59, 59, 59, 59, 59, 59, 59,
315
- 59, 59, 59, 59, 59, 59, 59, 59,
316
- 59, 59, 59, 59, 59, 59, 59, 59,
317
- 59, 59, 59, 59, 59, 59, 59, 59,
318
- 59, 59, 59, 59, 59, 59, 59, 59,
319
- 59, 59, 59, 59, 59, 59, 59, 59,
320
- 59, 59, 59, 59, 59, 59, 59, 59,
321
- 59, 59, 59, 59, 59, 59, 59, 59,
322
- 59, 59, 59, 59, 59, 59, 59, 59,
323
- 59, 59, 59, 59, 59, 59, 59, 59,
324
- 59, 69, 59, 56, 57, 52, 52, 52,
325
- 52, 52, 52, 52, 52, 52, 52, 52,
326
- 52, 52, 52, 52, 52, 52, 52, 52,
327
- 52, 52, 52, 52, 52, 52, 52, 52,
328
- 52, 52, 52, 52, 52, 52, 52, 52,
329
- 52, 52, 52, 52, 52, 52, 52, 52,
330
- 52, 52, 52, 52, 52, 52, 52, 52,
331
- 52, 52, 52, 52, 52, 52, 52, 52,
332
- 52, 52, 52, 52, 52, 52, 52, 52,
333
- 52, 52, 52, 52, 52, 52, 52, 52,
334
- 52, 52, 52, 52, 52, 52, 52, 52,
335
- 52, 52, 52, 52, 70, 52, 71, 53,
336
- 59, 71, 71, 71, 71, 71, 71, 71,
337
- 71, 71, 71, 71, 71, 71, 71, 71,
338
- 71, 71, 71, 71, 71, 71, 71, 71,
339
- 71, 71, 71, 71, 71, 71, 71, 71,
340
- 71, 71, 71, 71, 71, 71, 71, 71,
341
- 71, 71, 71, 71, 71, 71, 71, 71,
342
- 71, 71, 71, 71, 71, 71, 71, 71,
343
- 71, 71, 71, 71, 71, 71, 71, 71,
344
- 71, 71, 71, 71, 71, 71, 71, 71,
345
- 71, 71, 71, 71, 71, 71, 71, 71,
346
- 71, 71, 71, 71, 71, 71, 71, 71,
347
- 71, 72, 71, 73, 71, 74, 2, 74,
348
- 74, 74, 6, 6, 6, 6, 6, 6,
349
- 6, 6, 6, 6, 6, 6, 6, 6,
350
- 6, 6, 6, 6, 74, 6, 6, 75,
351
- 6, 6, 6, 6, 6, 6, 6, 6,
352
- 6, 6, 6, 6, 6, 6, 6, 6,
353
- 6, 6, 6, 6, 6, 6, 6, 6,
354
- 76, 6, 2, 6, 6, 6, 6, 6,
355
- 6, 6, 6, 6, 6, 6, 6, 6,
356
- 6, 6, 6, 6, 6, 6, 6, 6,
357
- 6, 6, 6, 78, 6, 6, 6, 6,
358
- 6, 6, 6, 6, 6, 6, 6, 6,
359
- 6, 6, 6, 6, 6, 6, 6, 6,
360
- 6, 6, 6, 6, 79, 6, 2, 1,
361
- 1, 1, 1, 1, 1, 1, 1, 1,
362
- 1, 1, 1, 1, 1, 1, 1, 1,
363
- 1, 1, 1, 1, 1, 1, 1, 3,
364
- 1, 1, 1, 1, 1, 1, 1, 1,
365
- 1, 1, 1, 1, 1, 1, 1, 1,
366
- 1, 1, 1, 1, 1, 1, 1, 1,
367
- 4, 1, 74, 2, 74, 74, 74, 6,
368
- 6, 6, 6, 6, 6, 6, 6, 6,
369
- 6, 6, 6, 6, 6, 6, 6, 6,
370
- 6, 74, 6, 6, 78, 6, 6, 6,
371
- 6, 6, 6, 6, 6, 6, 6, 6,
372
- 6, 6, 6, 6, 6, 6, 6, 6,
373
- 6, 6, 6, 6, 6, 81, 6, 82,
374
- 13, 15, 13, 13, 13, 83, 83, 83,
375
- 83, 83, 83, 83, 83, 83, 83, 83,
376
- 83, 83, 83, 83, 83, 83, 83, 13,
377
- 83, 40, 41, 36, 36, 36, 40, 36,
378
- 33, 34, 29, 48, 30, 84, 63, 64,
379
- 59, 59, 59, 63, 59, 56, 57, 52,
380
- 71, 53, 84, 0
381
- ]
382
-
383
- class << self
384
- attr_accessor :_template_trans_targs
385
- private :_template_trans_targs, :_template_trans_targs=
31
+
32
+ # line 33 "template.rb"
33
+ class << self
34
+ attr_accessor :_template_trans_keys
35
+ private :_template_trans_keys, :_template_trans_keys=
36
+ end
37
+ self._template_trans_keys = [
38
+ 0, 0, 10, 60, 123, 123,
39
+ 63, 63, 123, 123, 63,
40
+ 63, 63, 63, 114, 114,
41
+ 9, 32, 63, 63, 62, 62,
42
+ 9, 32, 123, 123, 63,
43
+ 63, 0, 127, 0, 127,
44
+ 63, 63, 62, 62, 0, 127,
45
+ 63, 63, 62, 62, 34,
46
+ 125, 34, 35, 35, 125,
47
+ 35, 125, 34, 39, 35, 125,
48
+ 35, 125, 34, 123, 34,
49
+ 123, 39, 39, 34, 125,
50
+ 34, 125, 34, 35, 35, 125,
51
+ 35, 125, 34, 39, 35,
52
+ 125, 35, 125, 34, 123,
53
+ 34, 123, 39, 39, 34, 125,
54
+ 9, 60, 10, 60, 10,
55
+ 60, 9, 60, 0, 0,
56
+ 9, 32, 34, 39, 34, 35,
57
+ 39, 39, 0, 0, 34,
58
+ 39, 34, 35, 39, 39,
59
+ 0, 0, 0
60
+ ]
61
+
62
+ class << self
63
+ attr_accessor :_template_key_spans
64
+ private :_template_key_spans, :_template_key_spans=
65
+ end
66
+ self._template_key_spans = [
67
+ 0, 51, 1, 1, 1, 1, 1, 1,
68
+ 24, 1, 1, 24, 1, 1, 128, 128,
69
+ 1, 1, 128, 1, 1, 92, 2, 91,
70
+ 91, 6, 91, 91, 90, 90, 1, 92,
71
+ 92, 2, 91, 91, 6, 91, 91, 90,
72
+ 90, 1, 92, 52, 51, 51, 52, 0,
73
+ 24, 6, 2, 1, 0, 6, 2, 1,
74
+ 0
75
+ ]
76
+
77
+ class << self
78
+ attr_accessor :_template_index_offsets
79
+ private :_template_index_offsets, :_template_index_offsets=
80
+ end
81
+ self._template_index_offsets = [
82
+ 0, 0, 52, 54, 56, 58, 60, 62,
83
+ 64, 89, 91, 93, 118, 120, 122, 251,
84
+ 380, 382, 384, 513, 515, 517, 610, 613,
85
+ 705, 797, 804, 896, 988, 1079, 1170, 1172,
86
+ 1265, 1358, 1361, 1453, 1545, 1552, 1644, 1736,
87
+ 1827, 1918, 1920, 2013, 2066, 2118, 2170, 2223,
88
+ 2224, 2249, 2256, 2259, 2261, 2262, 2269, 2272,
89
+ 2274
90
+ ]
91
+
92
+ class << self
93
+ attr_accessor :_template_indicies
94
+ private :_template_indicies, :_template_indicies=
95
+ end
96
+ self._template_indicies = [
97
+ 2, 1, 1, 1, 1, 1, 1, 1,
98
+ 1, 1, 1, 1, 1, 1, 1, 1,
99
+ 1, 1, 1, 1, 1, 1, 1, 1,
100
+ 1, 3, 1, 1, 1, 1, 1, 1,
101
+ 1, 1, 1, 1, 1, 1, 1, 1,
102
+ 1, 1, 1, 1, 1, 1, 1, 1,
103
+ 1, 1, 4, 1, 0, 1, 0, 1,
104
+ 5, 6, 5, 6, 7, 6, 8, 5,
105
+ 10, 10, 10, 10, 10, 5, 5, 5,
106
+ 5, 5, 5, 5, 5, 5, 5, 5,
107
+ 5, 5, 5, 5, 5, 5, 5, 10,
108
+ 5, 12, 11, 13, 11, 13, 15, 13,
109
+ 13, 13, 14, 14, 14, 14, 14, 14,
110
+ 14, 14, 14, 14, 14, 14, 14, 14,
111
+ 14, 14, 14, 14, 13, 14, 16, 6,
112
+ 17, 6, 19, 19, 19, 19, 19, 19,
113
+ 19, 19, 19, 19, 19, 19, 19, 19,
114
+ 19, 19, 19, 19, 19, 19, 19, 19,
115
+ 19, 19, 19, 19, 19, 19, 19, 19,
116
+ 19, 19, 19, 19, 19, 19, 19, 19,
117
+ 19, 19, 19, 19, 19, 19, 19, 18,
118
+ 18, 19, 18, 18, 18, 18, 18, 18,
119
+ 18, 18, 18, 18, 18, 19, 19, 19,
120
+ 19, 19, 19, 18, 18, 18, 18, 18,
121
+ 18, 18, 18, 18, 18, 18, 18, 18,
122
+ 18, 18, 18, 18, 18, 18, 18, 18,
123
+ 18, 18, 18, 18, 18, 19, 19, 19,
124
+ 19, 18, 19, 18, 18, 18, 18, 18,
125
+ 18, 18, 18, 18, 18, 18, 18, 18,
126
+ 18, 18, 18, 18, 20, 18, 18, 18,
127
+ 18, 18, 18, 18, 18, 19, 19, 19,
128
+ 19, 19, 18, 19, 19, 19, 19, 19,
129
+ 19, 19, 19, 19, 21, 21, 21, 21,
130
+ 21, 19, 19, 19, 19, 19, 19, 19,
131
+ 19, 19, 19, 19, 19, 19, 19, 19,
132
+ 19, 19, 19, 21, 19, 19, 19, 19,
133
+ 19, 19, 19, 19, 19, 19, 19, 19,
134
+ 18, 18, 19, 18, 18, 18, 18, 18,
135
+ 18, 18, 18, 18, 18, 18, 19, 19,
136
+ 19, 19, 19, 19, 18, 18, 18, 18,
137
+ 18, 18, 18, 18, 18, 18, 18, 18,
138
+ 18, 18, 18, 18, 18, 18, 18, 18,
139
+ 18, 18, 18, 18, 18, 18, 19, 19,
140
+ 19, 19, 18, 19, 18, 18, 18, 18,
141
+ 18, 18, 18, 18, 18, 18, 18, 18,
142
+ 18, 18, 18, 18, 18, 18, 18, 18,
143
+ 18, 18, 18, 18, 18, 18, 19, 19,
144
+ 19, 19, 19, 18, 22, 21, 23, 21,
145
+ 19, 19, 19, 19, 19, 19, 19, 19,
146
+ 19, 24, 24, 24, 24, 24, 19, 19,
147
+ 19, 19, 19, 19, 19, 19, 19, 19,
148
+ 19, 19, 19, 19, 19, 19, 19, 19,
149
+ 24, 19, 19, 19, 19, 19, 19, 19,
150
+ 19, 19, 19, 19, 19, 18, 18, 19,
151
+ 18, 18, 18, 18, 18, 18, 18, 18,
152
+ 18, 18, 18, 19, 19, 19, 19, 19,
153
+ 19, 18, 18, 18, 18, 18, 18, 18,
154
+ 18, 18, 18, 18, 18, 18, 18, 18,
155
+ 18, 18, 18, 18, 18, 18, 18, 18,
156
+ 18, 18, 18, 19, 19, 19, 19, 18,
157
+ 19, 18, 18, 18, 18, 18, 18, 18,
158
+ 18, 18, 18, 18, 18, 18, 18, 18,
159
+ 18, 18, 18, 18, 18, 18, 18, 18,
160
+ 18, 18, 18, 19, 19, 19, 19, 19,
161
+ 18, 26, 25, 27, 25, 29, 28, 28,
162
+ 28, 28, 30, 28, 28, 28, 28, 28,
163
+ 28, 28, 28, 28, 28, 28, 28, 28,
164
+ 28, 28, 28, 28, 28, 28, 28, 28,
165
+ 28, 28, 28, 28, 28, 28, 28, 28,
166
+ 28, 28, 28, 28, 28, 28, 28, 28,
167
+ 28, 28, 28, 28, 28, 28, 28, 28,
168
+ 28, 28, 28, 28, 28, 28, 28, 28,
169
+ 28, 28, 28, 28, 28, 28, 28, 28,
170
+ 28, 28, 28, 28, 28, 28, 28, 28,
171
+ 28, 28, 28, 28, 28, 28, 28, 28,
172
+ 28, 28, 28, 28, 28, 28, 31, 28,
173
+ 32, 28, 33, 34, 29, 35, 33, 33,
174
+ 33, 36, 33, 33, 33, 33, 33, 33,
175
+ 33, 33, 33, 33, 33, 33, 33, 33,
176
+ 33, 33, 33, 33, 33, 33, 33, 33,
177
+ 33, 33, 33, 33, 33, 33, 33, 33,
178
+ 33, 33, 33, 33, 33, 33, 33, 33,
179
+ 33, 33, 33, 33, 33, 33, 33, 33,
180
+ 33, 33, 33, 33, 33, 33, 33, 33,
181
+ 33, 33, 33, 33, 33, 33, 33, 33,
182
+ 33, 33, 33, 33, 33, 33, 33, 33,
183
+ 33, 33, 33, 33, 33, 33, 33, 33,
184
+ 33, 33, 33, 33, 33, 37, 33, 38,
185
+ 33, 35, 33, 33, 33, 36, 33, 33,
186
+ 33, 33, 33, 33, 33, 33, 33, 33,
187
+ 33, 33, 33, 33, 33, 33, 33, 33,
188
+ 33, 33, 33, 33, 33, 33, 33, 33,
189
+ 33, 33, 33, 33, 33, 33, 33, 33,
190
+ 33, 33, 33, 33, 33, 33, 33, 33,
191
+ 33, 33, 33, 33, 33, 33, 33, 33,
192
+ 33, 33, 33, 33, 33, 33, 33, 33,
193
+ 33, 33, 33, 33, 33, 33, 33, 33,
194
+ 33, 33, 33, 33, 33, 33, 33, 33,
195
+ 33, 33, 33, 33, 33, 33, 33, 33,
196
+ 33, 39, 33, 38, 33, 40, 41, 36,
197
+ 36, 36, 40, 36, 42, 40, 40, 40,
198
+ 40, 40, 40, 40, 40, 40, 40, 40,
199
+ 40, 40, 40, 40, 40, 40, 40, 40,
200
+ 40, 40, 40, 40, 40, 40, 40, 40,
201
+ 40, 40, 40, 40, 40, 40, 40, 40,
202
+ 40, 40, 40, 40, 40, 40, 40, 40,
203
+ 40, 40, 40, 40, 40, 40, 40, 40,
204
+ 40, 40, 40, 40, 40, 40, 40, 40,
205
+ 40, 40, 40, 40, 40, 40, 40, 40,
206
+ 40, 40, 40, 40, 40, 40, 40, 40,
207
+ 40, 40, 40, 40, 40, 40, 40, 40,
208
+ 40, 40, 40, 40, 43, 40, 44, 40,
209
+ 42, 40, 40, 40, 40, 40, 40, 40,
210
+ 40, 40, 40, 40, 40, 40, 40, 40,
211
+ 40, 40, 40, 40, 40, 40, 40, 40,
212
+ 40, 40, 40, 40, 40, 40, 40, 40,
213
+ 40, 40, 40, 40, 40, 40, 40, 40,
214
+ 40, 40, 40, 40, 40, 40, 40, 40,
215
+ 40, 40, 40, 40, 40, 40, 40, 40,
216
+ 40, 40, 40, 40, 40, 40, 40, 40,
217
+ 40, 40, 40, 40, 40, 40, 40, 40,
218
+ 40, 40, 40, 40, 40, 40, 40, 40,
219
+ 40, 40, 40, 40, 40, 40, 40, 40,
220
+ 45, 40, 44, 40, 40, 41, 36, 36,
221
+ 36, 40, 36, 36, 36, 36, 36, 36,
222
+ 36, 36, 36, 36, 36, 36, 36, 36,
223
+ 36, 36, 36, 36, 36, 36, 36, 36,
224
+ 36, 36, 36, 36, 36, 36, 36, 36,
225
+ 36, 36, 36, 36, 36, 36, 36, 36,
226
+ 36, 36, 36, 36, 36, 36, 36, 36,
227
+ 36, 36, 36, 36, 36, 36, 36, 36,
228
+ 36, 36, 36, 36, 36, 36, 36, 36,
229
+ 36, 36, 36, 36, 36, 36, 36, 36,
230
+ 36, 36, 36, 36, 36, 36, 36, 36,
231
+ 36, 36, 36, 36, 36, 46, 36, 33,
232
+ 34, 29, 29, 29, 29, 29, 29, 29,
233
+ 29, 29, 29, 29, 29, 29, 29, 29,
234
+ 29, 29, 29, 29, 29, 29, 29, 29,
235
+ 29, 29, 29, 29, 29, 29, 29, 29,
236
+ 29, 29, 29, 29, 29, 29, 29, 29,
237
+ 29, 29, 29, 29, 29, 29, 29, 29,
238
+ 29, 29, 29, 29, 29, 29, 29, 29,
239
+ 29, 29, 29, 29, 29, 29, 29, 29,
240
+ 29, 29, 29, 29, 29, 29, 29, 29,
241
+ 29, 29, 29, 29, 29, 29, 29, 29,
242
+ 29, 29, 29, 29, 29, 29, 29, 29,
243
+ 47, 29, 48, 30, 36, 48, 48, 48,
244
+ 48, 48, 48, 48, 48, 48, 48, 48,
245
+ 48, 48, 48, 48, 48, 48, 48, 48,
246
+ 48, 48, 48, 48, 48, 48, 48, 48,
247
+ 48, 48, 48, 48, 48, 48, 48, 48,
248
+ 48, 48, 48, 48, 48, 48, 48, 48,
249
+ 48, 48, 48, 48, 48, 48, 48, 48,
250
+ 48, 48, 48, 48, 48, 48, 48, 48,
251
+ 48, 48, 48, 48, 48, 48, 48, 48,
252
+ 48, 48, 48, 48, 48, 48, 48, 48,
253
+ 48, 48, 48, 48, 48, 48, 48, 48,
254
+ 48, 48, 48, 48, 48, 49, 48, 50,
255
+ 48, 52, 51, 51, 51, 51, 53, 51,
256
+ 51, 51, 51, 51, 51, 51, 51, 51,
257
+ 51, 51, 51, 51, 51, 51, 51, 51,
258
+ 51, 51, 51, 51, 51, 51, 51, 51,
259
+ 51, 51, 51, 51, 51, 51, 51, 51,
260
+ 51, 51, 51, 51, 51, 51, 51, 51,
261
+ 51, 51, 51, 51, 51, 51, 51, 51,
262
+ 51, 51, 51, 51, 51, 51, 51, 51,
263
+ 51, 51, 51, 51, 51, 51, 51, 51,
264
+ 51, 51, 51, 51, 51, 51, 51, 51,
265
+ 51, 51, 51, 51, 51, 51, 51, 51,
266
+ 51, 51, 54, 51, 55, 51, 56, 57,
267
+ 52, 58, 56, 56, 56, 59, 56, 56,
268
+ 56, 56, 56, 56, 56, 56, 56, 56,
269
+ 56, 56, 56, 56, 56, 56, 56, 56,
270
+ 56, 56, 56, 56, 56, 56, 56, 56,
271
+ 56, 56, 56, 56, 56, 56, 56, 56,
272
+ 56, 56, 56, 56, 56, 56, 56, 56,
273
+ 56, 56, 56, 56, 56, 56, 56, 56,
274
+ 56, 56, 56, 56, 56, 56, 56, 56,
275
+ 56, 56, 56, 56, 56, 56, 56, 56,
276
+ 56, 56, 56, 56, 56, 56, 56, 56,
277
+ 56, 56, 56, 56, 56, 56, 56, 56,
278
+ 56, 60, 56, 61, 56, 58, 56, 56,
279
+ 56, 59, 56, 56, 56, 56, 56, 56,
280
+ 56, 56, 56, 56, 56, 56, 56, 56,
281
+ 56, 56, 56, 56, 56, 56, 56, 56,
282
+ 56, 56, 56, 56, 56, 56, 56, 56,
283
+ 56, 56, 56, 56, 56, 56, 56, 56,
284
+ 56, 56, 56, 56, 56, 56, 56, 56,
285
+ 56, 56, 56, 56, 56, 56, 56, 56,
286
+ 56, 56, 56, 56, 56, 56, 56, 56,
287
+ 56, 56, 56, 56, 56, 56, 56, 56,
288
+ 56, 56, 56, 56, 56, 56, 56, 56,
289
+ 56, 56, 56, 56, 56, 62, 56, 61,
290
+ 56, 63, 64, 59, 59, 59, 63, 59,
291
+ 65, 63, 63, 63, 63, 63, 63, 63,
292
+ 63, 63, 63, 63, 63, 63, 63, 63,
293
+ 63, 63, 63, 63, 63, 63, 63, 63,
294
+ 63, 63, 63, 63, 63, 63, 63, 63,
295
+ 63, 63, 63, 63, 63, 63, 63, 63,
296
+ 63, 63, 63, 63, 63, 63, 63, 63,
297
+ 63, 63, 63, 63, 63, 63, 63, 63,
298
+ 63, 63, 63, 63, 63, 63, 63, 63,
299
+ 63, 63, 63, 63, 63, 63, 63, 63,
300
+ 63, 63, 63, 63, 63, 63, 63, 63,
301
+ 63, 63, 63, 63, 63, 63, 63, 63,
302
+ 66, 63, 67, 63, 65, 63, 63, 63,
303
+ 63, 63, 63, 63, 63, 63, 63, 63,
304
+ 63, 63, 63, 63, 63, 63, 63, 63,
305
+ 63, 63, 63, 63, 63, 63, 63, 63,
306
+ 63, 63, 63, 63, 63, 63, 63, 63,
307
+ 63, 63, 63, 63, 63, 63, 63, 63,
308
+ 63, 63, 63, 63, 63, 63, 63, 63,
309
+ 63, 63, 63, 63, 63, 63, 63, 63,
310
+ 63, 63, 63, 63, 63, 63, 63, 63,
311
+ 63, 63, 63, 63, 63, 63, 63, 63,
312
+ 63, 63, 63, 63, 63, 63, 63, 63,
313
+ 63, 63, 63, 63, 68, 63, 67, 63,
314
+ 63, 64, 59, 59, 59, 63, 59, 59,
315
+ 59, 59, 59, 59, 59, 59, 59, 59,
316
+ 59, 59, 59, 59, 59, 59, 59, 59,
317
+ 59, 59, 59, 59, 59, 59, 59, 59,
318
+ 59, 59, 59, 59, 59, 59, 59, 59,
319
+ 59, 59, 59, 59, 59, 59, 59, 59,
320
+ 59, 59, 59, 59, 59, 59, 59, 59,
321
+ 59, 59, 59, 59, 59, 59, 59, 59,
322
+ 59, 59, 59, 59, 59, 59, 59, 59,
323
+ 59, 59, 59, 59, 59, 59, 59, 59,
324
+ 59, 59, 59, 59, 59, 59, 59, 59,
325
+ 59, 69, 59, 56, 57, 52, 52, 52,
326
+ 52, 52, 52, 52, 52, 52, 52, 52,
327
+ 52, 52, 52, 52, 52, 52, 52, 52,
328
+ 52, 52, 52, 52, 52, 52, 52, 52,
329
+ 52, 52, 52, 52, 52, 52, 52, 52,
330
+ 52, 52, 52, 52, 52, 52, 52, 52,
331
+ 52, 52, 52, 52, 52, 52, 52, 52,
332
+ 52, 52, 52, 52, 52, 52, 52, 52,
333
+ 52, 52, 52, 52, 52, 52, 52, 52,
334
+ 52, 52, 52, 52, 52, 52, 52, 52,
335
+ 52, 52, 52, 52, 52, 52, 52, 52,
336
+ 52, 52, 52, 52, 70, 52, 71, 53,
337
+ 59, 71, 71, 71, 71, 71, 71, 71,
338
+ 71, 71, 71, 71, 71, 71, 71, 71,
339
+ 71, 71, 71, 71, 71, 71, 71, 71,
340
+ 71, 71, 71, 71, 71, 71, 71, 71,
341
+ 71, 71, 71, 71, 71, 71, 71, 71,
342
+ 71, 71, 71, 71, 71, 71, 71, 71,
343
+ 71, 71, 71, 71, 71, 71, 71, 71,
344
+ 71, 71, 71, 71, 71, 71, 71, 71,
345
+ 71, 71, 71, 71, 71, 71, 71, 71,
346
+ 71, 71, 71, 71, 71, 71, 71, 71,
347
+ 71, 71, 71, 71, 71, 71, 71, 71,
348
+ 71, 72, 71, 73, 71, 74, 2, 74,
349
+ 74, 74, 6, 6, 6, 6, 6, 6,
350
+ 6, 6, 6, 6, 6, 6, 6, 6,
351
+ 6, 6, 6, 6, 74, 6, 6, 75,
352
+ 6, 6, 6, 6, 6, 6, 6, 6,
353
+ 6, 6, 6, 6, 6, 6, 6, 6,
354
+ 6, 6, 6, 6, 6, 6, 6, 6,
355
+ 76, 6, 2, 6, 6, 6, 6, 6,
356
+ 6, 6, 6, 6, 6, 6, 6, 6,
357
+ 6, 6, 6, 6, 6, 6, 6, 6,
358
+ 6, 6, 6, 78, 6, 6, 6, 6,
359
+ 6, 6, 6, 6, 6, 6, 6, 6,
360
+ 6, 6, 6, 6, 6, 6, 6, 6,
361
+ 6, 6, 6, 6, 79, 6, 2, 1,
362
+ 1, 1, 1, 1, 1, 1, 1, 1,
363
+ 1, 1, 1, 1, 1, 1, 1, 1,
364
+ 1, 1, 1, 1, 1, 1, 1, 3,
365
+ 1, 1, 1, 1, 1, 1, 1, 1,
366
+ 1, 1, 1, 1, 1, 1, 1, 1,
367
+ 1, 1, 1, 1, 1, 1, 1, 1,
368
+ 4, 1, 74, 2, 74, 74, 74, 6,
369
+ 6, 6, 6, 6, 6, 6, 6, 6,
370
+ 6, 6, 6, 6, 6, 6, 6, 6,
371
+ 6, 74, 6, 6, 78, 6, 6, 6,
372
+ 6, 6, 6, 6, 6, 6, 6, 6,
373
+ 6, 6, 6, 6, 6, 6, 6, 6,
374
+ 6, 6, 6, 6, 6, 81, 6, 82,
375
+ 13, 15, 13, 13, 13, 83, 83, 83,
376
+ 83, 83, 83, 83, 83, 83, 83, 83,
377
+ 83, 83, 83, 83, 83, 83, 83, 13,
378
+ 83, 40, 41, 36, 36, 36, 40, 36,
379
+ 33, 34, 29, 48, 30, 84, 63, 64,
380
+ 59, 59, 59, 63, 59, 56, 57, 52,
381
+ 71, 53, 84, 0
382
+ ]
383
+
384
+ class << self
385
+ attr_accessor :_template_trans_targs
386
+ private :_template_trans_targs, :_template_trans_targs=
387
+ end
388
+ self._template_trans_targs = [
389
+ 43, 1, 45, 2, 3, 43, 44, 7,
390
+ 8, 43, 9, 9, 10, 11, 43, 43,
391
+ 47, 14, 15, 0, 18, 16, 17, 43,
392
+ 19, 19, 20, 48, 21, 22, 30, 21,
393
+ 52, 23, 29, 24, 25, 23, 50, 23,
394
+ 26, 28, 27, 26, 49, 26, 25, 22,
395
+ 31, 31, 51, 32, 33, 41, 32, 56,
396
+ 34, 40, 35, 36, 34, 54, 34, 37,
397
+ 39, 38, 37, 53, 37, 36, 33, 42,
398
+ 42, 55, 46, 12, 13, 43, 4, 5,
399
+ 43, 6, 43, 43, 0
400
+ ]
401
+
402
+ class << self
403
+ attr_accessor :_template_trans_actions
404
+ private :_template_trans_actions, :_template_trans_actions=
405
+ end
406
+ self._template_trans_actions = [
407
+ 1, 0, 2, 0, 0, 3, 2, 0,
408
+ 0, 4, 5, 0, 6, 0, 7, 8,
409
+ 0, 0, 0, 9, 0, 0, 0, 10,
410
+ 5, 0, 6, 11, 0, 0, 0, 13,
411
+ 14, 0, 0, 0, 0, 13, 14, 15,
412
+ 0, 0, 0, 13, 14, 15, 16, 16,
413
+ 0, 13, 14, 0, 0, 0, 13, 18,
414
+ 0, 0, 0, 0, 13, 18, 15, 0,
415
+ 0, 0, 13, 18, 15, 16, 16, 0,
416
+ 13, 18, 20, 0, 0, 21, 0, 0,
417
+ 22, 0, 23, 24, 0
418
+ ]
419
+
420
+ class << self
421
+ attr_accessor :_template_to_state_actions
422
+ private :_template_to_state_actions, :_template_to_state_actions=
423
+ end
424
+ self._template_to_state_actions = [
425
+ 0, 0, 0, 0, 0, 0, 0, 0,
426
+ 0, 0, 0, 0, 0, 0, 0, 0,
427
+ 0, 0, 0, 0, 0, 12, 12, 12,
428
+ 0, 12, 12, 0, 0, 0, 0, 12,
429
+ 12, 12, 12, 0, 12, 12, 0, 0,
430
+ 0, 0, 12, 12, 0, 0, 0, 0,
431
+ 0, 0, 0, 0, 0, 0, 0, 0,
432
+ 0
433
+ ]
434
+
435
+ class << self
436
+ attr_accessor :_template_from_state_actions
437
+ private :_template_from_state_actions, :_template_from_state_actions=
438
+ end
439
+ self._template_from_state_actions = [
440
+ 0, 0, 0, 0, 0, 0, 0, 0,
441
+ 0, 0, 0, 0, 0, 0, 0, 0,
442
+ 0, 0, 0, 0, 0, 0, 0, 0,
443
+ 0, 0, 0, 0, 0, 0, 0, 0,
444
+ 0, 0, 0, 0, 0, 0, 0, 0,
445
+ 0, 0, 0, 19, 0, 0, 0, 0,
446
+ 0, 0, 0, 0, 0, 0, 0, 0,
447
+ 0
448
+ ]
449
+
450
+ class << self
451
+ attr_accessor :_template_eof_actions
452
+ private :_template_eof_actions, :_template_eof_actions=
453
+ end
454
+ self._template_eof_actions = [
455
+ 0, 0, 0, 0, 0, 0, 0, 0,
456
+ 0, 0, 0, 0, 0, 0, 9, 9,
457
+ 9, 9, 9, 9, 9, 0, 0, 0,
458
+ 0, 0, 0, 0, 0, 0, 0, 0,
459
+ 17, 17, 17, 17, 17, 17, 17, 17,
460
+ 17, 17, 17, 0, 0, 0, 0, 0,
461
+ 0, 0, 0, 0, 0, 0, 0, 0,
462
+ 0
463
+ ]
464
+
465
+ class << self
466
+ attr_accessor :_template_eof_trans
467
+ private :_template_eof_trans, :_template_eof_trans=
468
+ end
469
+ self._template_eof_trans = [
470
+ 0, 1, 1, 1, 6, 6, 6, 6,
471
+ 10, 10, 10, 15, 0, 0, 0, 0,
472
+ 0, 0, 0, 0, 0, 0, 0, 0,
473
+ 0, 0, 0, 0, 0, 0, 0, 0,
474
+ 0, 0, 0, 0, 0, 0, 0, 0,
475
+ 0, 0, 0, 0, 78, 81, 78, 83,
476
+ 84, 0, 0, 0, 0, 0, 0, 0,
477
+ 0
478
+ ]
479
+
480
+ class << self
481
+ attr_accessor :template_start
482
+ end
483
+ self.template_start = 43;
484
+ class << self
485
+ attr_accessor :template_first_final
486
+ end
487
+ self.template_first_final = 43;
488
+ class << self
489
+ attr_accessor :template_error
490
+ end
491
+ self.template_error = 0;
492
+
493
+ class << self
494
+ attr_accessor :template_en_parse_nested_expression
495
+ end
496
+ self.template_en_parse_nested_expression = 21;
497
+ class << self
498
+ attr_accessor :template_en_parse_expression
499
+ end
500
+ self.template_en_parse_expression = 32;
501
+ class << self
502
+ attr_accessor :template_en_main
503
+ end
504
+ self.template_en_main = 43;
505
+
506
+
507
+ # line 75 "template.rl"
508
+
509
+ def self.parse_template(buffer, delegate)
510
+ data = buffer.read
511
+ bytes = data.bytes
512
+
513
+ p = 0
514
+ pe = eof = data.bytesize
515
+ stack = []
516
+
517
+ expression_begin = expression_end = nil
518
+ instruction_begin = instruction_end = nil
519
+
520
+
521
+ # line 522 "template.rb"
522
+ begin
523
+ p ||= 0
524
+ pe ||= data.length
525
+ cs = template_start
526
+ top = 0
527
+ ts = nil
528
+ te = nil
529
+ act = 0
530
+ end
531
+
532
+ # line 88 "template.rl"
533
+
534
+ # line 535 "template.rb"
535
+ begin
536
+ testEof = false
537
+ _slen, _trans, _keys, _inds, _acts, _nacts = nil
538
+ _goto_level = 0
539
+ _resume = 10
540
+ _eof_trans = 15
541
+ _again = 20
542
+ _test_eof = 30
543
+ _out = 40
544
+ while true
545
+ if _goto_level <= 0
546
+ if p == pe
547
+ _goto_level = _test_eof
548
+ next
549
+ end
550
+ if cs == 0
551
+ _goto_level = _out
552
+ next
553
+ end
554
+ end
555
+ if _goto_level <= _resume
556
+ case _template_from_state_actions[cs]
557
+ when 19 then
558
+ # line 1 "NONE"
559
+ begin
560
+ ts = p
386
561
  end
387
- self._template_trans_targs = [
388
- 43, 1, 45, 2, 3, 43, 44, 7,
389
- 8, 43, 9, 9, 10, 11, 43, 43,
390
- 47, 14, 15, 0, 18, 16, 17, 43,
391
- 19, 19, 20, 48, 21, 22, 30, 21,
392
- 52, 23, 29, 24, 25, 23, 50, 23,
393
- 26, 28, 27, 26, 49, 26, 25, 22,
394
- 31, 31, 51, 32, 33, 41, 32, 56,
395
- 34, 40, 35, 36, 34, 54, 34, 37,
396
- 39, 38, 37, 53, 37, 36, 33, 42,
397
- 42, 55, 46, 12, 13, 43, 4, 5,
398
- 43, 6, 43, 43, 0
399
- ]
400
-
401
- class << self
402
- attr_accessor :_template_trans_actions
403
- private :_template_trans_actions, :_template_trans_actions=
562
+ # line 563 "template.rb"
563
+ end
564
+ _keys = cs << 1
565
+ _inds = _template_index_offsets[cs]
566
+ _slen = _template_key_spans[cs]
567
+ _wide = ( bytes[p])
568
+ _trans = if ( _slen > 0 &&
569
+ _template_trans_keys[_keys] <= _wide &&
570
+ _wide <= _template_trans_keys[_keys + 1]
571
+ ) then
572
+ _template_indicies[ _inds + _wide - _template_trans_keys[_keys] ]
573
+ else
574
+ _template_indicies[ _inds + _slen ]
575
+ end
576
+ end
577
+ if _goto_level <= _eof_trans
578
+ cs = _template_trans_targs[_trans]
579
+ if _template_trans_actions[_trans] != 0
580
+ case _template_trans_actions[_trans]
581
+ when 5 then
582
+ # line 24 "template.rl"
583
+ begin
584
+
585
+ instruction_begin = p
586
+ end
587
+ when 6 then
588
+ # line 28 "template.rl"
589
+ begin
590
+
591
+ instruction_end = p
592
+ end
593
+ when 9 then
594
+ # line 40 "template.rl"
595
+ begin
596
+
597
+ raise ParseError.new("failed to parse instruction", buffer, p)
598
+ end
599
+ when 16 then
600
+ # line 13 "/home/samuel/Documents/ioquatix/trenni/parsers/trenni/template.rl"
601
+ begin
602
+ begin
603
+ stack[top] = cs
604
+ top+= 1
605
+ cs = 21
606
+ _goto_level = _again
607
+ next
608
+ end
404
609
  end
405
- self._template_trans_actions = [
406
- 1, 0, 2, 0, 0, 3, 2, 0,
407
- 0, 4, 5, 0, 6, 0, 7, 8,
408
- 0, 0, 0, 9, 0, 0, 0, 10,
409
- 5, 0, 6, 11, 0, 0, 0, 13,
410
- 14, 0, 0, 0, 0, 13, 14, 15,
411
- 0, 0, 0, 13, 14, 15, 16, 16,
412
- 0, 13, 14, 0, 0, 0, 13, 18,
413
- 0, 0, 0, 0, 13, 18, 15, 0,
414
- 0, 0, 13, 18, 15, 16, 16, 0,
415
- 13, 18, 20, 0, 0, 21, 0, 0,
416
- 22, 0, 23, 24, 0
417
- ]
418
-
419
- class << self
420
- attr_accessor :_template_to_state_actions
421
- private :_template_to_state_actions, :_template_to_state_actions=
610
+ when 13 then
611
+ # line 17 "/home/samuel/Documents/ioquatix/trenni/parsers/trenni/template.rl"
612
+ begin
613
+ begin
614
+ stack[top] = cs
615
+ top+= 1
616
+ cs = 21
617
+ _goto_level = _again
618
+ next
619
+ end
422
620
  end
423
- self._template_to_state_actions = [
424
- 0, 0, 0, 0, 0, 0, 0, 0,
425
- 0, 0, 0, 0, 0, 0, 0, 0,
426
- 0, 0, 0, 0, 0, 12, 12, 12,
427
- 0, 12, 12, 0, 0, 0, 0, 12,
428
- 12, 12, 12, 0, 12, 12, 0, 0,
429
- 0, 0, 12, 12, 0, 0, 0, 0,
430
- 0, 0, 0, 0, 0, 0, 0, 0,
431
- 0
432
- ]
433
-
434
- class << self
435
- attr_accessor :_template_from_state_actions
436
- private :_template_from_state_actions, :_template_from_state_actions=
621
+ when 14 then
622
+ # line 20 "/home/samuel/Documents/ioquatix/trenni/parsers/trenni/template.rl"
623
+ begin
624
+ begin
625
+ top -= 1
626
+ cs = stack[top]
627
+ _goto_level = _again
628
+ next
629
+ end
437
630
  end
438
- self._template_from_state_actions = [
439
- 0, 0, 0, 0, 0, 0, 0, 0,
440
- 0, 0, 0, 0, 0, 0, 0, 0,
441
- 0, 0, 0, 0, 0, 0, 0, 0,
442
- 0, 0, 0, 0, 0, 0, 0, 0,
443
- 0, 0, 0, 0, 0, 0, 0, 0,
444
- 0, 0, 0, 19, 0, 0, 0, 0,
445
- 0, 0, 0, 0, 0, 0, 0, 0,
446
- 0
447
- ]
448
-
449
- class << self
450
- attr_accessor :_template_eof_actions
451
- private :_template_eof_actions, :_template_eof_actions=
631
+ when 2 then
632
+ # line 1 "NONE"
633
+ begin
634
+ te = p+1
452
635
  end
453
- self._template_eof_actions = [
454
- 0, 0, 0, 0, 0, 0, 0, 0,
455
- 0, 0, 0, 0, 0, 0, 9, 9,
456
- 9, 9, 9, 9, 9, 0, 0, 0,
457
- 0, 0, 0, 0, 0, 0, 0, 0,
458
- 17, 17, 17, 17, 17, 17, 17, 17,
459
- 17, 17, 17, 0, 0, 0, 0, 0,
460
- 0, 0, 0, 0, 0, 0, 0, 0,
461
- 0
462
- ]
463
-
464
- class << self
465
- attr_accessor :_template_eof_trans
466
- private :_template_eof_trans, :_template_eof_trans=
636
+ when 8 then
637
+ # line 36 "template.rl"
638
+ begin
639
+ te = p+1
640
+ begin
641
+ delegate.instruction(data.byteslice(instruction_begin...instruction_end), "\n")
642
+ end
467
643
  end
468
- self._template_eof_trans = [
469
- 0, 1, 1, 1, 6, 6, 6, 6,
470
- 10, 10, 10, 15, 0, 0, 0, 0,
471
- 0, 0, 0, 0, 0, 0, 0, 0,
472
- 0, 0, 0, 0, 0, 0, 0, 0,
473
- 0, 0, 0, 0, 0, 0, 0, 0,
474
- 0, 0, 0, 0, 78, 81, 78, 83,
475
- 84, 0, 0, 0, 0, 0, 0, 0,
476
- 0
477
- ]
478
-
479
- class << self
480
- attr_accessor :template_start
644
+ when 10 then
645
+ # line 60 "template.rl"
646
+ begin
647
+ te = p+1
648
+ begin
649
+ delegate.text(data.byteslice(ts...te))
650
+ end
481
651
  end
482
- self.template_start = 43;
483
- class << self
484
- attr_accessor :template_first_final
652
+ when 22 then
653
+ # line 60 "template.rl"
654
+ begin
655
+ te = p
656
+ p = p - 1; begin
657
+ delegate.text(data.byteslice(ts...te))
658
+ end
485
659
  end
486
- self.template_first_final = 43;
487
- class << self
488
- attr_accessor :template_error
660
+ when 24 then
661
+ # line 32 "template.rl"
662
+ begin
663
+ te = p
664
+ p = p - 1; begin
665
+ delegate.instruction(data.byteslice(instruction_begin...instruction_end))
666
+ end
489
667
  end
490
- self.template_error = 0;
491
-
492
- class << self
493
- attr_accessor :template_en_parse_nested_expression
668
+ when 21 then
669
+ # line 60 "template.rl"
670
+ begin
671
+ te = p
672
+ p = p - 1; begin
673
+ delegate.text(data.byteslice(ts...te))
674
+ end
494
675
  end
495
- self.template_en_parse_nested_expression = 21;
496
- class << self
497
- attr_accessor :template_en_parse_expression
676
+ when 1 then
677
+ # line 60 "template.rl"
678
+ begin
679
+ begin p = ((te))-1; end
680
+ begin
681
+ delegate.text(data.byteslice(ts...te))
682
+ end
498
683
  end
499
- self.template_en_parse_expression = 32;
500
- class << self
501
- attr_accessor :template_en_main
684
+ when 3 then
685
+ # line 60 "template.rl"
686
+ begin
687
+ begin p = ((te))-1; end
688
+ begin
689
+ delegate.text(data.byteslice(ts...te))
690
+ end
502
691
  end
503
- self.template_en_main = 43;
692
+ when 7 then
693
+ # line 1 "NONE"
694
+ begin
695
+ case act
696
+ when 3 then
697
+ begin begin p = ((te))-1; end
504
698
 
699
+ delegate.instruction(data.byteslice(instruction_begin...instruction_end))
700
+ end
701
+ when 6 then
702
+ begin begin p = ((te))-1; end
505
703
 
506
- # line 75 "template.rl"
507
- def self.parse_template(buffer, delegate)
508
- data = buffer.read
509
- bytes = data.bytes
510
- p = 0
511
- pe = eof = data.bytesize
512
- stack = []
513
- expression_begin = expression_end = nil
514
- instruction_begin = instruction_end = nil
515
- # line 522 "template.rb"
516
- begin
517
- p ||= 0
518
- pe ||= data.length
519
- cs = template_start
520
- top = 0
521
- ts = nil
522
- te = nil
523
- act = 0
704
+ delegate.text(data.byteslice(ts...te))
705
+ end
706
+ end
524
707
  end
525
-
526
- # line 88 "template.rl"
527
- # line 535 "template.rb"
528
- begin
529
- testEof = false
530
- _slen, _trans, _keys, _inds, _acts, _nacts = nil
531
- _goto_level = 0
532
- _resume = 10
533
- _eof_trans = 15
534
- _again = 20
535
- _test_eof = 30
536
- _out = 40
537
- while true
538
- if _goto_level <= 0
539
- if p == pe
540
- _goto_level = _test_eof
541
- next
542
- end
543
- if cs == 0
544
- _goto_level = _out
545
- next
546
- end
547
- end
548
- if _goto_level <= _resume
549
- case _template_from_state_actions[cs]
550
- when 19 then
551
- # line 1 "NONE"
552
- begin
553
- ts = p
554
- end
555
- # line 563 "template.rb"
556
- end
557
- _keys = cs << 1
558
- _inds = _template_index_offsets[cs]
559
- _slen = _template_key_spans[cs]
560
- _wide = ( bytes[p])
561
- _trans = if ( _slen > 0 &&
562
- _template_trans_keys[_keys] <= _wide &&
563
- _wide <= _template_trans_keys[_keys + 1]
564
- ) then
565
- _template_indicies[ _inds + _wide - _template_trans_keys[_keys] ]
566
- else
567
- _template_indicies[ _inds + _slen ]
568
- end
569
- end
570
- if _goto_level <= _eof_trans
571
- cs = _template_trans_targs[_trans]
572
- if _template_trans_actions[_trans] != 0
573
- case _template_trans_actions[_trans]
574
- when 5 then
575
- # line 24 "template.rl"
576
- begin
577
-
578
- instruction_begin = p
579
- end
580
- when 6 then
581
- # line 28 "template.rl"
582
- begin
583
-
584
- instruction_end = p
585
- end
586
- when 9 then
587
- # line 40 "template.rl"
588
- begin
589
-
590
- raise ParseError.new("failed to parse instruction", buffer, p)
591
- end
592
- when 16 then
593
- # line 13 "/Users/samuel/Documents/Programming/ioquatix/trenni/parsers/trenni/template.rl"
594
- begin
595
- begin
596
- stack[top] = cs
597
- top+= 1
598
- cs = 21
599
- _goto_level = _again
600
- next
601
- end
602
- end
603
- when 13 then
604
- # line 17 "/Users/samuel/Documents/Programming/ioquatix/trenni/parsers/trenni/template.rl"
605
- begin
606
- begin
607
- stack[top] = cs
608
- top+= 1
609
- cs = 21
610
- _goto_level = _again
611
- next
612
- end
613
- end
614
- when 14 then
615
- # line 20 "/Users/samuel/Documents/Programming/ioquatix/trenni/parsers/trenni/template.rl"
616
- begin
617
- begin
618
- top -= 1
619
- cs = stack[top]
620
- _goto_level = _again
621
- next
622
- end
623
- end
624
- when 2 then
625
- # line 1 "NONE"
626
- begin
627
- te = p+1
628
- end
629
- when 8 then
630
- # line 36 "template.rl"
631
- begin
632
- te = p+1
633
- begin
634
- delegate.instruction(data.byteslice(instruction_begin...instruction_end), "\n")
635
- end
636
- end
637
- when 10 then
638
- # line 60 "template.rl"
639
- begin
640
- te = p+1
641
- begin
642
- delegate.text(data.byteslice(ts...te))
643
- end
644
- end
645
- when 22 then
646
- # line 60 "template.rl"
647
- begin
648
- te = p
649
- p = p - 1; begin
650
- delegate.text(data.byteslice(ts...te))
651
- end
652
- end
653
- when 24 then
654
- # line 32 "template.rl"
655
- begin
656
- te = p
657
- p = p - 1; begin
658
- delegate.instruction(data.byteslice(instruction_begin...instruction_end))
659
- end
660
- end
661
- when 21 then
662
- # line 60 "template.rl"
663
- begin
664
- te = p
665
- p = p - 1; begin
666
- delegate.text(data.byteslice(ts...te))
667
- end
668
- end
669
- when 1 then
670
- # line 60 "template.rl"
671
- begin
672
- begin p = ((te))-1; end
673
- begin
674
- delegate.text(data.byteslice(ts...te))
675
- end
676
- end
677
- when 3 then
678
- # line 60 "template.rl"
679
- begin
680
- begin p = ((te))-1; end
681
- begin
682
- delegate.text(data.byteslice(ts...te))
683
- end
684
- end
685
- when 7 then
686
- # line 1 "NONE"
687
- begin
688
- case act
689
- when 3 then
690
- begin begin p = ((te))-1; end
691
-
692
- delegate.instruction(data.byteslice(instruction_begin...instruction_end))
693
- end
694
- when 6 then
695
- begin begin p = ((te))-1; end
696
-
697
- delegate.text(data.byteslice(ts...te))
698
- end
699
- end
700
- end
701
708
  when 4 then
702
- # line 40 "template.rl"
709
+ # line 40 "template.rl"
703
710
  begin
704
711
 
705
- raise ParseError.new("failed to parse instruction", buffer, p)
706
- end
707
- # line 60 "template.rl"
708
- begin
709
- begin p = ((te))-1; end
710
- begin
711
- delegate.text(data.byteslice(ts...te))
712
+ raise ParseError.new("failed to parse instruction", buffer, p)
712
713
  end
714
+ # line 60 "template.rl"
715
+ begin
716
+ begin p = ((te))-1; end
717
+ begin
718
+ delegate.text(data.byteslice(ts...te))
719
+ end
713
720
  end
714
721
  when 23 then
715
- # line 44 "template.rl"
722
+ # line 44 "template.rl"
716
723
  begin
717
724
 
718
- expression_begin = p
725
+ expression_begin = p
726
+ end
727
+ # line 53 "/home/samuel/Documents/ioquatix/trenni/parsers/trenni/template.rl"
728
+ begin
729
+ te = p
730
+ p = p - 1; begin cs = 32; end
719
731
  end
720
- # line 53 "/Users/samuel/Documents/Programming/ioquatix/trenni/parsers/trenni/template.rl"
732
+ when 15 then
733
+ # line 13 "/home/samuel/Documents/ioquatix/trenni/parsers/trenni/template.rl"
721
734
  begin
722
- te = p
723
- p = p - 1; begin cs = 32; end
735
+ begin
736
+ stack[top] = cs
737
+ top+= 1
738
+ cs = 21
739
+ _goto_level = _again
740
+ next
724
741
  end
725
- when 15 then
726
- # line 13 "/Users/samuel/Documents/Programming/ioquatix/trenni/parsers/trenni/template.rl"
742
+ end
743
+ # line 17 "/home/samuel/Documents/ioquatix/trenni/parsers/trenni/template.rl"
744
+ begin
727
745
  begin
746
+ stack[top] = cs
747
+ top+= 1
748
+ cs = 21
749
+ _goto_level = _again
750
+ next
751
+ end
752
+ end
753
+ when 11 then
754
+ # line 1 "NONE"
728
755
  begin
729
- stack[top] = cs
730
- top+= 1
731
- cs = 21
732
- _goto_level = _again
733
- next
756
+ te = p+1
734
757
  end
735
- end
736
- # line 17 "/Users/samuel/Documents/Programming/ioquatix/trenni/parsers/trenni/template.rl"
737
- begin
758
+ # line 32 "template.rl"
738
759
  begin
739
- stack[top] = cs
740
- top+= 1
741
- cs = 21
742
- _goto_level = _again
743
- next
760
+ act = 3; end
761
+ when 20 then
762
+ # line 1 "NONE"
763
+ begin
764
+ te = p+1
744
765
  end
745
- end
746
- when 11 then
747
- # line 1 "NONE"
748
- begin
749
- te = p+1
750
- end
751
- # line 32 "template.rl"
752
- begin
753
- act = 3; end
754
- when 20 then
755
- # line 1 "NONE"
756
- begin
757
- te = p+1
758
- end
759
- # line 60 "template.rl"
760
- begin
761
- act = 6; end
762
- when 18 then
763
- # line 48 "template.rl"
764
- begin
766
+ # line 60 "template.rl"
767
+ begin
768
+ act = 6; end
769
+ when 18 then
770
+ # line 48 "template.rl"
771
+ begin
765
772
 
766
773
  expression_end = p
767
- end
768
- # line 52 "template.rl"
769
- begin
774
+ end
775
+ # line 52 "template.rl"
776
+ begin
770
777
 
771
778
  delegate.expression(data.byteslice(expression_begin...expression_end))
779
+ end
780
+ # line 21 "/home/samuel/Documents/ioquatix/trenni/parsers/trenni/template.rl"
781
+ begin
782
+ cs = 43; end
783
+ # line 784 "template.rb"
772
784
  end
773
- # line 21 "/Users/samuel/Documents/Programming/ioquatix/trenni/parsers/trenni/template.rl"
774
- begin
775
- cs = 43; end
776
- # line 784 "template.rb"
777
- end
778
- end
779
- end
780
- if _goto_level <= _again
785
+ end
786
+ end
787
+ if _goto_level <= _again
781
788
  case _template_to_state_actions[cs]
782
789
  when 12 then
783
- # line 1 "NONE"
790
+ # line 1 "NONE"
784
791
  begin
785
- ts = nil; end
786
- # line 794 "template.rb"
792
+ ts = nil; end
793
+ # line 794 "template.rb"
787
794
  end
788
795
 
789
796
  if cs == 0
@@ -795,43 +802,45 @@ if _goto_level <= _again
795
802
  _goto_level = _resume
796
803
  next
797
804
  end
798
- end
799
- if _goto_level <= _test_eof
805
+ end
806
+ if _goto_level <= _test_eof
800
807
  if p == eof
801
- if _template_eof_trans[cs] > 0
802
- _trans = _template_eof_trans[cs] - 1;
803
- _goto_level = _eof_trans
804
- next;
805
- end
806
- case _template_eof_actions[cs]
807
- when 9 then
808
- # line 40 "template.rl"
809
- begin
808
+ if _template_eof_trans[cs] > 0
809
+ _trans = _template_eof_trans[cs] - 1;
810
+ _goto_level = _eof_trans
811
+ next;
812
+ end
813
+ case _template_eof_actions[cs]
814
+ when 9 then
815
+ # line 40 "template.rl"
816
+ begin
810
817
 
811
- raise ParseError.new("failed to parse instruction", buffer, p)
818
+ raise ParseError.new("failed to parse instruction", buffer, p)
812
819
  end
813
- when 17 then
814
- # line 56 "template.rl"
815
- begin
820
+ when 17 then
821
+ # line 56 "template.rl"
822
+ begin
816
823
 
817
- raise ParseError.new("failed to parse expression", buffer, p)
824
+ raise ParseError.new("failed to parse expression", buffer, p)
818
825
  end
819
- # line 827 "template.rb"
820
- end
826
+ # line 827 "template.rb"
827
+ end
821
828
  end
822
829
 
830
+ end
831
+ if _goto_level <= _out
832
+ break
833
+ end
823
834
  end
824
- if _goto_level <= _out
825
- break
826
- end
827
- end
828
- end
835
+ end
829
836
 
830
837
  # line 89 "template.rl"
831
- if p != eof
832
- raise ParseError.new("could not consume all input", buffer, p)
833
- end
834
- return nil
835
- end
836
- end
838
+
839
+ if p != eof
840
+ raise ParseError.new("could not consume all input", buffer, p)
841
+ end
842
+
843
+ return nil
844
+ end
845
+ end
837
846
  end