motiro 0.6.8 → 0.6.9
Sign up to get free protection for your applications and to get access to all the features.
- data/AUTHORS +15 -0
- data/README +2 -2
- data/README.en +1 -2
- data/README.pt-br +1 -2
- data/app/controllers/account_controller.rb +1 -1
- data/app/controllers/application.rb +13 -12
- data/app/controllers/javascript_controller.rb +1 -1
- data/app/controllers/report_controller.rb +1 -1
- data/app/controllers/wiki_controller.rb +3 -5
- data/app/core/cache_reporter.rb +1 -1
- data/app/core/cache_reporter_fetcher.rb +1 -1
- data/app/core/chief_editor.rb +1 -1
- data/app/core/reporter.rb +1 -1
- data/app/core/reporter_driver.rb +1 -1
- data/app/core/reporter_fetcher.rb +1 -1
- data/app/core/settings.rb +1 -1
- data/app/core/version.rb +1 -1
- data/app/core/wiki_reporter.rb +1 -1
- data/app/helpers/application_helper.rb +5 -1
- data/app/helpers/default_page_provider.rb +6 -2
- data/app/helpers/report_helper.rb +14 -1
- data/app/models/change.rb +1 -1
- data/app/models/chunk.rb +1 -1
- data/app/models/feed_observer.rb +1 -1
- data/app/models/headline.rb +1 -1
- data/app/models/page.rb +38 -4
- data/app/models/revision.rb +1 -1
- data/app/models/user.rb +1 -1
- data/app/models/wiki_reference.rb +21 -0
- data/app/models/wiki_sweeper.rb +17 -2
- data/app/ports/chdir_runner.rb +1 -1
- data/app/ports/runner.rb +1 -1
- data/app/reporters/darcs_connection.rb +1 -1
- data/app/reporters/darcs_reporter.rb +1 -1
- data/app/reporters/darcs_temp_repo.rb +1 -1
- data/app/reporters/events_reporter.rb +1 -1
- data/app/reporters/features_reporter.rb +1 -1
- data/app/reporters/subversion_reporter.rb +1 -1
- data/app/reporters/svn_connection.rb +1 -1
- data/app/reporters/svn_settings.rb +1 -1
- data/app/views/report/list.rhtml +6 -7
- data/app/views/report/older.rhtml +1 -2
- data/app/views/report/rss.rxml +1 -1
- data/app/views/report/show.rhtml +2 -2
- data/app/views/wiki/_edit_event.rhtml +2 -0
- data/app/views/wiki/_edit_feature.rhtml +2 -0
- data/app/views/wiki/_properties_edit.rhtml +3 -5
- data/app/views/wiki/_properties_show.rhtml +4 -5
- data/app/views/wiki/_show_event.rhtml +3 -0
- data/app/views/wiki/_show_feature.rhtml +2 -0
- data/app/views/wiki/show.rhtml +1 -1
- data/bin/motiro +3 -3
- data/config/routes.rb +1 -1
- data/db/migrate/024_add_feature_status.rb +11 -0
- data/db/migrate/025_add_page_references.rb +12 -0
- data/db/migrate/026_convert_link_syntax.rb +12 -0
- data/db/migrate/027_register_page_references.rb +12 -0
- data/db/motirodb.sqlite.initial +0 -0
- data/db/schema_version +1 -1
- data/db/translation/pt-BR.rb +7 -1
- data/lib/array_extensions.rb +1 -1
- data/lib/diff_chunk_builder.rb +1 -1
- data/lib/differ.rb +1 -1
- data/lib/string_extensions.rb +13 -6
- data/lib/stub_hash.rb +1 -1
- data/lib/tasks/packaging.rake +10 -12
- data/lib/tasks/testing.rake +1 -1
- data/lib/tick_daemon.rb +1 -1
- data/lib/{wiki_url_generator.rb → wiki_link_handler.rb} +13 -3
- data/lib/wiki_renderer.rb +63 -34
- data/public/images/done.png +0 -0
- data/public/images/not-done.png +0 -0
- data/public/stylesheets/motiro.css +8 -0
- data/script/ticker +1 -1
- data/test/acceptance/account_test.rb +1 -1
- data/test/acceptance/darcs_test.rb +1 -1
- data/test/acceptance/events_test.rb +1 -1
- data/test/acceptance/main_page_test.rb +1 -1
- data/test/acceptance/subversion_test.rb +1 -1
- data/test/acceptance/ts_all_suites.rb +1 -1
- data/test/acceptance/wiki_test.rb +3 -3
- data/test/contract/darcs_test.rb +1 -1
- data/test/contract/remote_darcs_test.rb +1 -1
- data/test/contract/svn_test.rb +1 -1
- data/test/fixtures/pages.yml +20 -1
- data/test/fixtures/revisions.yml +40 -1
- data/test/fixtures/wiki_references.yml +5 -0
- data/test/functional/report_controller_test.rb +1 -1
- data/test/functional/report_features_test.rb +8 -1
- data/test/functional/report_subversion_test.rb +1 -1
- data/test/functional/root_controller_test.rb +1 -1
- data/test/functional/wiki_controller_test.rb +67 -2
- data/test/lib/acceptance_test_case.rb +1 -1
- data/test/lib/darcs_excerpts.rb +1 -1
- data/test/lib/darcs_repo.rb +1 -1
- data/test/lib/hash_extensions.rb +22 -0
- data/test/lib/live_mode_test.rb +1 -1
- data/test/lib/netutils.rb +1 -1
- data/test/lib/platform_thread.rb +1 -1
- data/test/lib/selenium_extensions.rb +1 -1
- data/test/lib/stubio.rb +1 -1
- data/test/lib/webserver.rb +1 -1
- data/test/meta/darcs_repo_test.rb +1 -1
- data/test/meta/local_svn_test.rb +1 -1
- data/test/meta/platform_thread_test.rb +1 -1
- data/test/meta/stubio_test.rb +1 -1
- data/test/stubs/{url_generator.rb → wiki_link_handler.rb} +8 -4
- data/test/test_helper.rb +3 -1
- data/test/unit/array_extensions_test.rb +1 -1
- data/test/unit/cache_reporter_fetcher_test.rb +1 -1
- data/test/unit/cache_reporter_test.rb +1 -1
- data/test/unit/change_test.rb +1 -1
- data/test/unit/chdir_runner_test.rb +1 -1
- data/test/unit/chief_editor_test.rb +1 -1
- data/test/unit/darcs_connection_test.rb +1 -1
- data/test/unit/darcs_reporter_test.rb +4 -4
- data/test/unit/darcs_temp_repo_test.rb +1 -1
- data/test/unit/default_page_provider_test.rb +23 -13
- data/test/unit/diff_chunk_builder_test.rb +1 -1
- data/test/unit/page_test.rb +67 -4
- data/test/unit/reporter_driver_test.rb +1 -1
- data/test/unit/reporter_test.rb +1 -1
- data/test/unit/revision_test.rb +1 -1
- data/test/unit/runner_test.rb +1 -1
- data/test/unit/string_extensions_test.rb +15 -3
- data/test/unit/svn_connection_test.rb +1 -1
- data/test/unit/svn_reporter_interaction_test.rb +1 -1
- data/test/unit/svn_reporter_test.rb +1 -1
- data/test/unit/svn_settings_test.rb +1 -1
- data/test/unit/user_test.rb +1 -1
- data/test/unit/{wiki_url_generator_test.rb → wiki_link_handler_test.rb} +3 -3
- data/test/unit/wiki_renderer_test.rb +75 -20
- data/test/unit/wiki_reporter_test.rb +1 -1
- data/vendor/mediacloth-trunk/MIT-LICENSE +20 -0
- data/vendor/mediacloth-trunk/README +32 -0
- data/vendor/mediacloth-trunk/Rakefile +33 -0
- data/vendor/mediacloth-trunk/lib/mediacloth/mediawikiast.rb +122 -0
- data/vendor/mediacloth-trunk/lib/mediacloth/mediawikihtmlgenerator.rb +252 -0
- data/vendor/mediacloth-trunk/lib/mediacloth/mediawikilexer.rb +821 -0
- data/vendor/mediacloth-trunk/lib/mediacloth/mediawikilinkhandler.rb +68 -0
- data/vendor/mediacloth-trunk/lib/mediacloth/mediawikiparams.rb +33 -0
- data/vendor/mediacloth-trunk/lib/mediacloth/mediawikiparser.rb +1218 -0
- data/vendor/mediacloth-trunk/lib/mediacloth/mediawikiparser.y +493 -0
- data/vendor/mediacloth-trunk/lib/mediacloth/mediawikiwalker.rb +146 -0
- data/vendor/mediacloth-trunk/lib/mediacloth.rb +29 -0
- data/vendor/mediacloth-trunk/mediacloth.gemspec +24 -0
- data/vendor/mediacloth-trunk/mediacloth.kdevelop +117 -0
- data/vendor/mediacloth-trunk/setup.rb +1585 -0
- data/vendor/mediacloth-trunk/test/data/html1 +26 -0
- data/vendor/mediacloth-trunk/test/data/html10 +130 -0
- data/vendor/mediacloth-trunk/test/data/html11 +17 -0
- data/vendor/mediacloth-trunk/test/data/html12 +12 -0
- data/vendor/mediacloth-trunk/test/data/html13 +11 -0
- data/vendor/mediacloth-trunk/test/data/html2 +2 -0
- data/vendor/mediacloth-trunk/test/data/html3 +1 -0
- data/vendor/mediacloth-trunk/test/data/html4 +47 -0
- data/vendor/mediacloth-trunk/test/data/html5 +57 -0
- data/vendor/mediacloth-trunk/test/data/html6 +8 -0
- data/vendor/mediacloth-trunk/test/data/html7 +45 -0
- data/vendor/mediacloth-trunk/test/data/html8 +1 -0
- data/vendor/mediacloth-trunk/test/data/html9 +14 -0
- data/vendor/mediacloth-trunk/test/data/input1 +34 -0
- data/vendor/mediacloth-trunk/test/data/input10 +124 -0
- data/vendor/mediacloth-trunk/test/data/input11 +17 -0
- data/vendor/mediacloth-trunk/test/data/input12 +15 -0
- data/vendor/mediacloth-trunk/test/data/input13 +10 -0
- data/vendor/mediacloth-trunk/test/data/input2 +2 -0
- data/vendor/mediacloth-trunk/test/data/input3 +2 -0
- data/vendor/mediacloth-trunk/test/data/input4 +50 -0
- data/vendor/mediacloth-trunk/test/data/input5 +63 -0
- data/vendor/mediacloth-trunk/test/data/input6 +8 -0
- data/vendor/mediacloth-trunk/test/data/input7 +45 -0
- data/vendor/mediacloth-trunk/test/data/input8 +1 -0
- data/vendor/mediacloth-trunk/test/data/input9 +14 -0
- data/vendor/mediacloth-trunk/test/data/lex1 +26 -0
- data/vendor/mediacloth-trunk/test/data/lex10 +85 -0
- data/vendor/mediacloth-trunk/test/data/lex11 +17 -0
- data/vendor/mediacloth-trunk/test/data/lex12 +15 -0
- data/vendor/mediacloth-trunk/test/data/lex13 +3 -0
- data/vendor/mediacloth-trunk/test/data/lex2 +2 -0
- data/vendor/mediacloth-trunk/test/data/lex3 +1 -0
- data/vendor/mediacloth-trunk/test/data/lex4 +47 -0
- data/vendor/mediacloth-trunk/test/data/lex5 +57 -0
- data/vendor/mediacloth-trunk/test/data/lex6 +8 -0
- data/vendor/mediacloth-trunk/test/data/lex7 +45 -0
- data/vendor/mediacloth-trunk/test/data/lex8 +1 -0
- data/vendor/mediacloth-trunk/test/data/lex9 +14 -0
- data/vendor/mediacloth-trunk/test/data/result1 +48 -0
- data/vendor/mediacloth-trunk/test/dataproducers/html.rb +18 -0
- data/vendor/mediacloth-trunk/test/dataproducers/lex.rb +15 -0
- data/vendor/mediacloth-trunk/test/debugwalker.rb +68 -0
- data/vendor/mediacloth-trunk/test/htmlgenerator.rb +97 -0
- data/vendor/mediacloth-trunk/test/lexer.rb +542 -0
- data/vendor/mediacloth-trunk/test/linkhandler.rb +39 -0
- data/vendor/mediacloth-trunk/test/parser.rb +22 -0
- data/vendor/mediacloth-trunk/test/testhelper.rb +27 -0
- data/vendor/mediacloth.rb +3 -0
- data/vendor/motiro-installer.rb +1 -1
- data/vendor/plugins/cache_test-0.2/CHANGELOG +14 -0
- data/vendor/plugins/cache_test-0.2/MIT-LICENSE +20 -0
- data/vendor/plugins/cache_test-0.2/README +124 -0
- data/vendor/plugins/cache_test-0.2/init.rb +8 -0
- data/vendor/plugins/cache_test-0.2/lib/fragment_cache_test.rb +205 -0
- data/vendor/plugins/cache_test-0.2/lib/page_cache_test.rb +140 -0
- data/vendor/plugins/global_routing/init.rb +1 -1
- metadata +517 -455
@@ -0,0 +1,1218 @@
|
|
1
|
+
#
|
2
|
+
# DO NOT MODIFY!!!!
|
3
|
+
# This file is automatically generated by racc 1.4.5
|
4
|
+
# from racc grammer file "mediawikiparser.y".
|
5
|
+
#
|
6
|
+
|
7
|
+
require 'racc/parser'
|
8
|
+
|
9
|
+
|
10
|
+
require 'mediacloth/mediawikiast'
|
11
|
+
|
12
|
+
|
13
|
+
class MediaWikiParser < Racc::Parser
|
14
|
+
|
15
|
+
module_eval <<'..end mediawikiparser.y modeval..id6b37ece63a', 'mediawikiparser.y', 474
|
16
|
+
|
17
|
+
attr_accessor :lexer
|
18
|
+
|
19
|
+
def initialize
|
20
|
+
@nodes = []
|
21
|
+
super
|
22
|
+
end
|
23
|
+
|
24
|
+
#Tokenizes input string and parses it.
|
25
|
+
def parse(input)
|
26
|
+
@yydebug=true
|
27
|
+
lexer.tokenize(input)
|
28
|
+
do_parse
|
29
|
+
return @nodes.last
|
30
|
+
end
|
31
|
+
|
32
|
+
#Asks the lexer to return the next token.
|
33
|
+
def next_token
|
34
|
+
return @lexer.lex
|
35
|
+
end
|
36
|
+
..end mediawikiparser.y modeval..id6b37ece63a
|
37
|
+
|
38
|
+
##### racc 1.4.5 generates ###
|
39
|
+
|
40
|
+
racc_reduce_table = [
|
41
|
+
0, 0, :racc_error,
|
42
|
+
1, 53, :_reduce_1,
|
43
|
+
1, 55, :_reduce_2,
|
44
|
+
1, 55, :_reduce_3,
|
45
|
+
1, 55, :_reduce_4,
|
46
|
+
1, 55, :_reduce_5,
|
47
|
+
1, 55, :_reduce_6,
|
48
|
+
1, 55, :_reduce_7,
|
49
|
+
1, 55, :_reduce_8,
|
50
|
+
1, 55, :_reduce_9,
|
51
|
+
1, 55, :_reduce_10,
|
52
|
+
3, 55, :_reduce_11,
|
53
|
+
3, 55, :_reduce_12,
|
54
|
+
6, 55, :_reduce_13,
|
55
|
+
4, 55, :_reduce_14,
|
56
|
+
1, 55, :_reduce_none,
|
57
|
+
0, 64, :_reduce_16,
|
58
|
+
1, 64, :_reduce_17,
|
59
|
+
3, 62, :_reduce_18,
|
60
|
+
4, 62, :_reduce_19,
|
61
|
+
0, 69, :_reduce_20,
|
62
|
+
2, 69, :_reduce_21,
|
63
|
+
3, 69, :_reduce_22,
|
64
|
+
1, 65, :_reduce_23,
|
65
|
+
3, 65, :_reduce_24,
|
66
|
+
1, 70, :_reduce_25,
|
67
|
+
3, 70, :_reduce_26,
|
68
|
+
0, 67, :_reduce_27,
|
69
|
+
2, 67, :_reduce_28,
|
70
|
+
0, 66, :_reduce_29,
|
71
|
+
2, 66, :_reduce_30,
|
72
|
+
3, 66, :_reduce_31,
|
73
|
+
1, 54, :_reduce_32,
|
74
|
+
2, 54, :_reduce_33,
|
75
|
+
1, 56, :_reduce_34,
|
76
|
+
1, 56, :_reduce_35,
|
77
|
+
3, 68, :_reduce_36,
|
78
|
+
4, 68, :_reduce_37,
|
79
|
+
0, 73, :_reduce_38,
|
80
|
+
4, 73, :_reduce_39,
|
81
|
+
5, 73, :_reduce_40,
|
82
|
+
0, 74, :_reduce_41,
|
83
|
+
3, 74, :_reduce_42,
|
84
|
+
4, 74, :_reduce_43,
|
85
|
+
3, 74, :_reduce_44,
|
86
|
+
4, 74, :_reduce_45,
|
87
|
+
1, 71, :_reduce_46,
|
88
|
+
1, 71, :_reduce_47,
|
89
|
+
1, 71, :_reduce_48,
|
90
|
+
1, 71, :_reduce_49,
|
91
|
+
1, 71, :_reduce_50,
|
92
|
+
1, 71, :_reduce_51,
|
93
|
+
2, 72, :_reduce_52,
|
94
|
+
2, 72, :_reduce_53,
|
95
|
+
3, 72, :_reduce_54,
|
96
|
+
3, 72, :_reduce_55,
|
97
|
+
4, 57, :_reduce_56,
|
98
|
+
4, 58, :_reduce_57,
|
99
|
+
0, 77, :_reduce_58,
|
100
|
+
3, 76, :_reduce_59,
|
101
|
+
0, 76, :_reduce_60,
|
102
|
+
2, 75, :_reduce_61,
|
103
|
+
3, 75, :_reduce_62,
|
104
|
+
4, 59, :_reduce_63,
|
105
|
+
3, 59, :_reduce_64,
|
106
|
+
2, 78, :_reduce_65,
|
107
|
+
3, 78, :_reduce_66,
|
108
|
+
2, 79, :_reduce_67,
|
109
|
+
0, 79, :_reduce_68,
|
110
|
+
2, 80, :_reduce_69,
|
111
|
+
3, 80, :_reduce_70,
|
112
|
+
3, 60, :_reduce_71,
|
113
|
+
3, 61, :_reduce_72,
|
114
|
+
3, 63, :_reduce_73 ]
|
115
|
+
|
116
|
+
racc_reduce_n = 74
|
117
|
+
|
118
|
+
racc_shift_n = 135
|
119
|
+
|
120
|
+
racc_action_table = [
|
121
|
+
5, 10, 51, 15, 81, 24, 83, 81, 33, 83,
|
122
|
+
112, 81, 8, 83, 16, 21, 82, 26, 30, 32,
|
123
|
+
1, 3, 81, 9, 83, 14, 54, 98, 56, 29,
|
124
|
+
81, 75, 83, 93, 95, 12, 43, 5, 10, 27,
|
125
|
+
15, 101, 24, 53, -60, 33, 104, 18, 20, 8,
|
126
|
+
77, 16, 21, 92, 26, 30, 32, 1, 3, 81,
|
127
|
+
9, 83, 14, 43, 72, -60, 29, 110, 62, 38,
|
128
|
+
60, 59, 12, 115, 5, 10, 27, 15, 116, 24,
|
129
|
+
-58, 56, 33, 90, 18, 20, 8, 78, 16, 21,
|
130
|
+
121, 26, 30, 32, 1, 3, 56, 9, 49, 14,
|
131
|
+
53, 47, 126, 29, 38, 53, 53, 80, 131, 12,
|
132
|
+
43, 38, nil, 27, nil, 5, 10, nil, 15, nil,
|
133
|
+
24, 18, 20, 33, nil, 126, nil, 8, nil, 16,
|
134
|
+
21, nil, 26, 30, 32, 1, 3, nil, 9, nil,
|
135
|
+
14, nil, nil, nil, 29, nil, nil, nil, nil, nil,
|
136
|
+
12, nil, nil, nil, 27, nil, 5, 10, 40, 15,
|
137
|
+
nil, 24, 18, 20, 33, nil, nil, nil, 8, nil,
|
138
|
+
16, 21, nil, 26, 30, 32, 1, 3, nil, 9,
|
139
|
+
nil, 14, nil, nil, nil, 29, nil, nil, nil, nil,
|
140
|
+
nil, 12, nil, nil, nil, 27, nil, 5, 10, nil,
|
141
|
+
15, nil, 24, 18, 20, 33, nil, 126, nil, 8,
|
142
|
+
nil, 16, 21, nil, 26, 30, 32, 1, 3, nil,
|
143
|
+
9, nil, 14, nil, nil, nil, 29, nil, nil, nil,
|
144
|
+
nil, nil, 12, nil, 5, 10, 27, 15, nil, 24,
|
145
|
+
nil, nil, 33, nil, 18, 20, 8, nil, 16, 21,
|
146
|
+
nil, 26, 30, 32, 1, 3, nil, 9, nil, 14,
|
147
|
+
nil, nil, nil, 29, nil, nil, nil, nil, nil, 12,
|
148
|
+
nil, 5, 10, 27, 15, 45, 24, nil, nil, 33,
|
149
|
+
nil, 18, 20, 8, nil, 16, 21, nil, 26, 30,
|
150
|
+
32, 1, 3, nil, 9, nil, 14, nil, nil, nil,
|
151
|
+
29, nil, nil, nil, nil, nil, 12, nil, 5, 10,
|
152
|
+
27, 15, nil, 24, nil, nil, 33, nil, 18, 20,
|
153
|
+
8, nil, 16, 21, nil, 26, 30, 32, 1, 3,
|
154
|
+
nil, 9, nil, 14, nil, nil, nil, 29, nil, nil,
|
155
|
+
nil, nil, nil, 12, nil, 5, 10, 27, 15, nil,
|
156
|
+
24, nil, nil, 33, nil, 18, 20, 8, nil, 16,
|
157
|
+
21, nil, 26, 30, 32, 1, 3, nil, 9, nil,
|
158
|
+
14, nil, nil, nil, 29, nil, nil, nil, nil, nil,
|
159
|
+
12, nil, 5, 10, 27, 15, nil, 24, nil, nil,
|
160
|
+
33, nil, 18, 20, 8, nil, 16, 21, nil, 26,
|
161
|
+
30, 32, 1, 3, nil, 9, nil, 14, nil, nil,
|
162
|
+
nil, 29, nil, nil, nil, nil, nil, 12, nil, 5,
|
163
|
+
10, 27, 15, nil, 24, nil, nil, 33, 123, 18,
|
164
|
+
20, 8, nil, 16, 21, nil, 26, 30, 32, 1,
|
165
|
+
3, nil, 9, nil, 14, nil, nil, nil, 29, nil,
|
166
|
+
nil, nil, nil, nil, 12, nil, nil, nil, 27, nil,
|
167
|
+
nil, nil, nil, 120, nil, nil, 18, 20, 5, 10,
|
168
|
+
nil, 15, nil, 24, nil, 118, 33, nil, nil, nil,
|
169
|
+
8, nil, 16, 21, nil, 26, 30, 32, 1, 3,
|
170
|
+
nil, 9, nil, 14, nil, nil, nil, 29, nil, nil,
|
171
|
+
nil, nil, nil, 12, nil, 5, 10, 27, 15, nil,
|
172
|
+
24, nil, nil, 33, nil, 18, 20, 8, nil, 16,
|
173
|
+
21, nil, 26, 30, 32, 1, 3, nil, 9, nil,
|
174
|
+
14, nil, nil, nil, 29, nil, nil, nil, nil, nil,
|
175
|
+
12, nil, 5, 10, 27, 15, nil, 24, nil, nil,
|
176
|
+
33, nil, 18, 20, 8, nil, 16, 21, nil, 26,
|
177
|
+
30, 32, 1, 3, nil, 9, nil, 14, nil, nil,
|
178
|
+
nil, 29, nil, nil, nil, nil, 113, 12, nil, 5,
|
179
|
+
10, 27, 15, nil, 24, nil, nil, 33, nil, 18,
|
180
|
+
20, 8, nil, 16, 21, nil, 26, 30, 32, 1,
|
181
|
+
3, nil, 9, nil, 14, nil, nil, nil, 29, nil,
|
182
|
+
nil, nil, nil, nil, 12, nil, 5, 10, 27, 15,
|
183
|
+
nil, 24, nil, nil, 33, nil, 18, 20, 8, nil,
|
184
|
+
16, 21, nil, 26, 30, 32, 1, 3, nil, 9,
|
185
|
+
nil, 14, nil, nil, nil, 29, nil, nil, 111, nil,
|
186
|
+
nil, 12, nil, 5, 10, 27, 15, nil, 24, nil,
|
187
|
+
nil, 33, nil, 18, 20, 8, nil, 16, 21, nil,
|
188
|
+
26, 30, 32, 1, 3, nil, 9, nil, 14, nil,
|
189
|
+
nil, nil, 29, nil, nil, nil, nil, nil, 12, nil,
|
190
|
+
5, 10, 27, 15, nil, 24, nil, nil, 33, nil,
|
191
|
+
18, 20, 8, nil, 16, 21, nil, 26, 30, 32,
|
192
|
+
1, 3, nil, 9, nil, 14, nil, nil, nil, 29,
|
193
|
+
nil, nil, 85, nil, nil, 12, nil, 5, 10, 27,
|
194
|
+
15, nil, 24, nil, nil, 33, nil, 18, 20, 8,
|
195
|
+
nil, 16, 21, nil, 26, 30, 32, 1, 3, nil,
|
196
|
+
9, nil, 14, nil, nil, 64, 29, nil, nil, nil,
|
197
|
+
nil, nil, 12, nil, 5, 10, 27, 15, nil, 24,
|
198
|
+
nil, nil, 33, nil, 18, 20, 8, nil, 16, 21,
|
199
|
+
nil, 26, 30, 32, 1, 3, nil, 9, nil, 14,
|
200
|
+
nil, nil, nil, 29, nil, nil, nil, nil, nil, 12,
|
201
|
+
nil, nil, nil, 27, nil, nil, nil, nil, nil, nil,
|
202
|
+
108, 18, 20, 5, 10, 68, 15, nil, 24, nil,
|
203
|
+
nil, 33, nil, nil, nil, 8, nil, 16, 21, nil,
|
204
|
+
26, 30, 32, 1, 3, nil, 9, nil, 14, nil,
|
205
|
+
nil, nil, 29, nil, nil, nil, nil, nil, 12, nil,
|
206
|
+
5, 10, 27, 15, nil, 24, nil, nil, 33, nil,
|
207
|
+
18, 20, 8, nil, 16, 21, nil, 26, 30, 32,
|
208
|
+
1, 3, nil, 9, nil, 14, nil, nil, nil, 29,
|
209
|
+
nil, nil, nil, nil, nil, 12, 69, 5, 10, 27,
|
210
|
+
15, nil, 24, nil, nil, 33, nil, 18, 20, 8,
|
211
|
+
nil, 16, 21, nil, 26, 30, 32, 1, 3, nil,
|
212
|
+
9, nil, 14, nil, nil, nil, 29, nil, nil, nil,
|
213
|
+
nil, nil, 12, nil, 5, 10, 27, 15, nil, 24,
|
214
|
+
nil, 105, 33, nil, 18, 20, 8, nil, 16, 21,
|
215
|
+
nil, 26, 30, 32, 1, 3, nil, 9, nil, 14,
|
216
|
+
nil, nil, nil, 29, nil, nil, nil, nil, nil, 12,
|
217
|
+
nil, 5, 10, 27, 15, 74, 24, nil, nil, 33,
|
218
|
+
nil, 18, 20, 8, nil, 16, 21, nil, 26, 30,
|
219
|
+
32, 1, 3, nil, 9, nil, 14, nil, nil, nil,
|
220
|
+
29, nil, nil, nil, nil, nil, 12, nil, 5, 10,
|
221
|
+
27, 15, nil, 24, nil, nil, 33, nil, 18, 20,
|
222
|
+
8, nil, 16, 21, nil, 26, 30, 32, 1, 3,
|
223
|
+
nil, 9, nil, 14, nil, nil, nil, 29, nil, nil,
|
224
|
+
nil, nil, nil, 12, 99, 5, 10, 27, 15, nil,
|
225
|
+
24, nil, nil, 33, nil, 18, 20, 8, nil, 16,
|
226
|
+
21, 76, 26, 30, 32, 1, 3, nil, 9, nil,
|
227
|
+
14, nil, nil, nil, 29, nil, nil, nil, nil, nil,
|
228
|
+
12, nil, 5, 10, 27, 15, nil, 24, nil, nil,
|
229
|
+
33, nil, 18, 20, 8, nil, 16, 21, nil, 26,
|
230
|
+
30, 32, 1, 3, nil, 9, nil, 14, nil, nil,
|
231
|
+
96, 29, nil, nil, nil, nil, nil, 12, nil, 5,
|
232
|
+
10, 27, 15, nil, 24, nil, nil, 33, nil, 18,
|
233
|
+
20, 8, nil, 16, 21, nil, 26, 30, 32, 1,
|
234
|
+
3, nil, 9, nil, 14, nil, nil, nil, 29, nil,
|
235
|
+
nil, nil, nil, 88, 12, nil, 5, 10, 27, 15,
|
236
|
+
nil, 24, nil, nil, 33, nil, 18, 20, 8, 63,
|
237
|
+
16, 21, nil, 26, 30, 32, 1, 3, nil, 9,
|
238
|
+
nil, 14, nil, nil, nil, 29, nil, nil, nil, nil,
|
239
|
+
nil, 12, nil, nil, nil, 27, nil, nil, nil, nil,
|
240
|
+
nil, nil, nil, 18, 20 ]
|
241
|
+
|
242
|
+
racc_action_check = [
|
243
|
+
0, 0, 27, 0, 108, 0, 108, 120, 0, 120,
|
244
|
+
87, 123, 0, 123, 0, 0, 53, 0, 0, 0,
|
245
|
+
0, 0, 82, 0, 82, 0, 29, 67, 29, 0,
|
246
|
+
105, 47, 105, 60, 60, 0, 72, 3, 3, 0,
|
247
|
+
3, 73, 3, 27, 44, 3, 79, 0, 0, 3,
|
248
|
+
49, 3, 3, 59, 3, 3, 3, 3, 3, 53,
|
249
|
+
3, 53, 3, 43, 43, 39, 3, 84, 35, 66,
|
250
|
+
33, 31, 3, 94, 8, 8, 3, 8, 95, 8,
|
251
|
+
97, 58, 8, 57, 3, 3, 8, 50, 8, 8,
|
252
|
+
107, 8, 8, 8, 8, 8, 55, 8, 24, 8,
|
253
|
+
110, 20, 116, 8, 14, 51, 121, 52, 125, 8,
|
254
|
+
12, 9, nil, 8, nil, 133, 133, nil, 133, nil,
|
255
|
+
133, 8, 8, 133, nil, 133, nil, 133, nil, 133,
|
256
|
+
133, nil, 133, 133, 133, 133, 133, nil, 133, nil,
|
257
|
+
133, nil, nil, nil, 133, nil, nil, nil, nil, nil,
|
258
|
+
133, nil, nil, nil, 133, nil, 10, 10, 10, 10,
|
259
|
+
nil, 10, 133, 133, 10, nil, nil, nil, 10, nil,
|
260
|
+
10, 10, nil, 10, 10, 10, 10, 10, nil, 10,
|
261
|
+
nil, 10, nil, nil, nil, 10, nil, nil, nil, nil,
|
262
|
+
nil, 10, nil, nil, nil, 10, nil, 126, 126, nil,
|
263
|
+
126, nil, 126, 10, 10, 126, nil, 126, nil, 126,
|
264
|
+
nil, 126, 126, nil, 126, 126, 126, 126, 126, nil,
|
265
|
+
126, nil, 126, nil, nil, nil, 126, nil, nil, nil,
|
266
|
+
nil, nil, 126, nil, 118, 118, 126, 118, nil, 118,
|
267
|
+
nil, nil, 118, nil, 126, 126, 118, nil, 118, 118,
|
268
|
+
nil, 118, 118, 118, 118, 118, nil, 118, nil, 118,
|
269
|
+
nil, nil, nil, 118, nil, nil, nil, nil, nil, 118,
|
270
|
+
nil, 15, 15, 118, 15, 15, 15, nil, nil, 15,
|
271
|
+
nil, 118, 118, 15, nil, 15, 15, nil, 15, 15,
|
272
|
+
15, 15, 15, nil, 15, nil, 15, nil, nil, nil,
|
273
|
+
15, nil, nil, nil, nil, nil, 15, nil, 114, 114,
|
274
|
+
15, 114, nil, 114, nil, nil, 114, nil, 15, 15,
|
275
|
+
114, nil, 114, 114, nil, 114, 114, 114, 114, 114,
|
276
|
+
nil, 114, nil, 114, nil, nil, nil, 114, nil, nil,
|
277
|
+
nil, nil, nil, 114, nil, 21, 21, 114, 21, nil,
|
278
|
+
21, nil, nil, 21, nil, 114, 114, 21, nil, 21,
|
279
|
+
21, nil, 21, 21, 21, 21, 21, nil, 21, nil,
|
280
|
+
21, nil, nil, nil, 21, nil, nil, nil, nil, nil,
|
281
|
+
21, nil, 109, 109, 21, 109, nil, 109, nil, nil,
|
282
|
+
109, nil, 21, 21, 109, nil, 109, 109, nil, 109,
|
283
|
+
109, 109, 109, 109, nil, 109, nil, 109, nil, nil,
|
284
|
+
nil, 109, nil, nil, nil, nil, nil, 109, nil, 106,
|
285
|
+
106, 109, 106, nil, 106, nil, nil, 106, 109, 109,
|
286
|
+
109, 106, nil, 106, 106, nil, 106, 106, 106, 106,
|
287
|
+
106, nil, 106, nil, 106, nil, nil, nil, 106, nil,
|
288
|
+
nil, nil, nil, nil, 106, nil, nil, nil, 106, nil,
|
289
|
+
nil, nil, nil, 106, nil, nil, 106, 106, 103, 103,
|
290
|
+
nil, 103, nil, 103, nil, 103, 103, nil, nil, nil,
|
291
|
+
103, nil, 103, 103, nil, 103, 103, 103, 103, 103,
|
292
|
+
nil, 103, nil, 103, nil, nil, nil, 103, nil, nil,
|
293
|
+
nil, nil, nil, 103, nil, 93, 93, 103, 93, nil,
|
294
|
+
93, nil, nil, 93, nil, 103, 103, 93, nil, 93,
|
295
|
+
93, nil, 93, 93, 93, 93, 93, nil, 93, nil,
|
296
|
+
93, nil, nil, nil, 93, nil, nil, nil, nil, nil,
|
297
|
+
93, nil, 89, 89, 93, 89, nil, 89, nil, nil,
|
298
|
+
89, nil, 93, 93, 89, nil, 89, 89, nil, 89,
|
299
|
+
89, 89, 89, 89, nil, 89, nil, 89, nil, nil,
|
300
|
+
nil, 89, nil, nil, nil, nil, 89, 89, nil, 34,
|
301
|
+
34, 89, 34, nil, 34, nil, nil, 34, nil, 89,
|
302
|
+
89, 34, nil, 34, 34, nil, 34, 34, 34, 34,
|
303
|
+
34, nil, 34, nil, 34, nil, nil, nil, 34, nil,
|
304
|
+
nil, nil, nil, nil, 34, nil, 86, 86, 34, 86,
|
305
|
+
nil, 86, nil, nil, 86, nil, 34, 34, 86, nil,
|
306
|
+
86, 86, nil, 86, 86, 86, 86, 86, nil, 86,
|
307
|
+
nil, 86, nil, nil, nil, 86, nil, nil, 86, nil,
|
308
|
+
nil, 86, nil, 36, 36, 86, 36, nil, 36, nil,
|
309
|
+
nil, 36, nil, 86, 86, 36, nil, 36, 36, nil,
|
310
|
+
36, 36, 36, 36, 36, nil, 36, nil, 36, nil,
|
311
|
+
nil, nil, 36, nil, nil, nil, nil, nil, 36, nil,
|
312
|
+
54, 54, 36, 54, nil, 54, nil, nil, 54, nil,
|
313
|
+
36, 36, 54, nil, 54, 54, nil, 54, 54, 54,
|
314
|
+
54, 54, nil, 54, nil, 54, nil, nil, nil, 54,
|
315
|
+
nil, nil, 54, nil, nil, 54, nil, 38, 38, 54,
|
316
|
+
38, nil, 38, nil, nil, 38, nil, 54, 54, 38,
|
317
|
+
nil, 38, 38, nil, 38, 38, 38, 38, 38, nil,
|
318
|
+
38, nil, 38, nil, nil, 38, 38, nil, nil, nil,
|
319
|
+
nil, nil, 38, nil, 83, 83, 38, 83, nil, 83,
|
320
|
+
nil, nil, 83, nil, 38, 38, 83, nil, 83, 83,
|
321
|
+
nil, 83, 83, 83, 83, 83, nil, 83, nil, 83,
|
322
|
+
nil, nil, nil, 83, nil, nil, nil, nil, nil, 83,
|
323
|
+
nil, nil, nil, 83, nil, nil, nil, nil, nil, nil,
|
324
|
+
83, 83, 83, 41, 41, 41, 41, nil, 41, nil,
|
325
|
+
nil, 41, nil, nil, nil, 41, nil, 41, 41, nil,
|
326
|
+
41, 41, 41, 41, 41, nil, 41, nil, 41, nil,
|
327
|
+
nil, nil, 41, nil, nil, nil, nil, nil, 41, nil,
|
328
|
+
42, 42, 41, 42, nil, 42, nil, nil, 42, nil,
|
329
|
+
41, 41, 42, nil, 42, 42, nil, 42, 42, 42,
|
330
|
+
42, 42, nil, 42, nil, 42, nil, nil, nil, 42,
|
331
|
+
nil, nil, nil, nil, nil, 42, 42, 81, 81, 42,
|
332
|
+
81, nil, 81, nil, nil, 81, nil, 42, 42, 81,
|
333
|
+
nil, 81, 81, nil, 81, 81, 81, 81, 81, nil,
|
334
|
+
81, nil, 81, nil, nil, nil, 81, nil, nil, nil,
|
335
|
+
nil, nil, 81, nil, 77, 77, 81, 77, nil, 77,
|
336
|
+
nil, 81, 77, nil, 81, 81, 77, nil, 77, 77,
|
337
|
+
nil, 77, 77, 77, 77, 77, nil, 77, nil, 77,
|
338
|
+
nil, nil, nil, 77, nil, nil, nil, nil, nil, 77,
|
339
|
+
nil, 46, 46, 77, 46, 46, 46, nil, nil, 46,
|
340
|
+
nil, 77, 77, 46, nil, 46, 46, nil, 46, 46,
|
341
|
+
46, 46, 46, nil, 46, nil, 46, nil, nil, nil,
|
342
|
+
46, nil, nil, nil, nil, nil, 46, nil, 70, 70,
|
343
|
+
46, 70, nil, 70, nil, nil, 70, nil, 46, 46,
|
344
|
+
70, nil, 70, 70, nil, 70, 70, 70, 70, 70,
|
345
|
+
nil, 70, nil, 70, nil, nil, nil, 70, nil, nil,
|
346
|
+
nil, nil, nil, 70, 70, 48, 48, 70, 48, nil,
|
347
|
+
48, nil, nil, 48, nil, 70, 70, 48, nil, 48,
|
348
|
+
48, 48, 48, 48, 48, 48, 48, nil, 48, nil,
|
349
|
+
48, nil, nil, nil, 48, nil, nil, nil, nil, nil,
|
350
|
+
48, nil, 65, 65, 48, 65, nil, 65, nil, nil,
|
351
|
+
65, nil, 48, 48, 65, nil, 65, 65, nil, 65,
|
352
|
+
65, 65, 65, 65, nil, 65, nil, 65, nil, nil,
|
353
|
+
65, 65, nil, nil, nil, nil, nil, 65, nil, 56,
|
354
|
+
56, 65, 56, nil, 56, nil, nil, 56, nil, 65,
|
355
|
+
65, 56, nil, 56, 56, nil, 56, 56, 56, 56,
|
356
|
+
56, nil, 56, nil, 56, nil, nil, nil, 56, nil,
|
357
|
+
nil, nil, nil, 56, 56, nil, 37, 37, 56, 37,
|
358
|
+
nil, 37, nil, nil, 37, nil, 56, 56, 37, 37,
|
359
|
+
37, 37, nil, 37, 37, 37, 37, 37, nil, 37,
|
360
|
+
nil, 37, nil, nil, nil, 37, nil, nil, nil, nil,
|
361
|
+
nil, 37, nil, nil, nil, 37, nil, nil, nil, nil,
|
362
|
+
nil, nil, nil, 37, 37 ]
|
363
|
+
|
364
|
+
racc_action_pointer = [
|
365
|
+
-2, nil, nil, 35, nil, nil, nil, nil, 72, 82,
|
366
|
+
154, nil, 71, nil, 75, 269, nil, nil, nil, nil,
|
367
|
+
99, 343, nil, nil, 96, nil, nil, 0, nil, -7,
|
368
|
+
nil, 71, nil, 68, 577, 44, 651, 1144, 725, 39,
|
369
|
+
nil, 811, 848, 24, 16, nil, 959, -20, 1033, 41,
|
370
|
+
79, 62, 65, 14, 688, 61, 1107, 51, 46, 53,
|
371
|
+
21, nil, nil, nil, nil, 1070, 40, 1, nil, nil,
|
372
|
+
996, nil, -3, 13, nil, nil, nil, 922, nil, 4,
|
373
|
+
nil, 885, -23, 762, 23, nil, 614, -22, nil, 540,
|
374
|
+
nil, nil, nil, 503, 62, 76, nil, 51, nil, nil,
|
375
|
+
nil, nil, nil, 466, nil, -15, 417, 46, -41, 380,
|
376
|
+
57, nil, nil, nil, 306, nil, 90, nil, 232, nil,
|
377
|
+
-38, 63, nil, -34, nil, 97, 195, nil, nil, nil,
|
378
|
+
nil, nil, nil, 113, nil ]
|
379
|
+
|
380
|
+
racc_action_default = [
|
381
|
+
-74, -51, -32, -16, -2, -46, -15, -3, -74, -74,
|
382
|
+
-74, -4, -20, -5, -74, -74, -48, -34, -10, -6,
|
383
|
+
-74, -74, -35, -7, -74, -8, -47, -38, -9, -68,
|
384
|
+
-50, -74, -49, -74, -1, -74, -17, -74, -74, -58,
|
385
|
+
-52, -74, -74, -20, -58, -53, -74, -74, -74, -23,
|
386
|
+
-74, -38, -74, -41, -74, -68, -74, -74, -68, -74,
|
387
|
+
-27, -33, -11, -71, -61, -74, -74, -74, -54, -18,
|
388
|
+
-74, -21, -20, -74, -55, -73, -72, -74, -12, -74,
|
389
|
+
-36, -74, -41, -74, -74, -65, -74, -74, -69, -74,
|
390
|
+
-64, -67, 135, -74, -74, -74, -62, -60, -56, -19,
|
391
|
+
-22, -57, -24, -25, -37, -41, -74, -74, -41, -74,
|
392
|
+
-38, -66, -63, -70, -28, -14, -29, -59, -74, -42,
|
393
|
+
-41, -38, -44, -41, -39, -74, -29, -26, -43, -40,
|
394
|
+
-45, -13, -30, -29, -31 ]
|
395
|
+
|
396
|
+
racc_goto_table = [
|
397
|
+
34, 52, 42, 36, 39, 84, 67, 102, 37, 44,
|
398
|
+
41, 73, 125, 35, 57, 46, 61, 50, 61, 61,
|
399
|
+
94, 48, 132, 61, 55, 79, 31, nil, 61, 134,
|
400
|
+
61, nil, nil, 71, 107, nil, nil, nil, 65, nil,
|
401
|
+
87, nil, 70, 91, nil, nil, nil, 61, 127, nil,
|
402
|
+
nil, nil, 61, nil, 86, nil, 89, 119, nil, nil,
|
403
|
+
122, 97, 100, nil, 117, nil, nil, nil, 61, nil,
|
404
|
+
nil, 61, 128, nil, nil, 130, nil, nil, nil, nil,
|
405
|
+
nil, 106, nil, 109, 124, 61, nil, nil, 61, nil,
|
406
|
+
nil, 61, nil, 114, nil, 129, 61, nil, nil, nil,
|
407
|
+
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
408
|
+
nil, nil, nil, nil, nil, 61, nil, nil, nil, nil,
|
409
|
+
nil, nil, nil, nil, nil, nil, 133 ]
|
410
|
+
|
411
|
+
racc_goto_check = [
|
412
|
+
2, 21, 17, 2, 23, 22, 24, 18, 2, 23,
|
413
|
+
2, 24, 14, 12, 27, 2, 3, 13, 3, 3,
|
414
|
+
15, 2, 14, 3, 26, 21, 1, nil, 3, 14,
|
415
|
+
3, nil, nil, 17, 22, nil, nil, nil, 2, nil,
|
416
|
+
27, nil, 2, 27, nil, nil, nil, 3, 18, nil,
|
417
|
+
nil, nil, 3, nil, 2, nil, 2, 22, nil, nil,
|
418
|
+
22, 23, 17, nil, 24, nil, nil, nil, 3, nil,
|
419
|
+
nil, 3, 22, nil, nil, 22, nil, nil, nil, nil,
|
420
|
+
nil, 2, nil, 2, 21, 3, nil, nil, 3, nil,
|
421
|
+
nil, 3, nil, 2, nil, 21, 3, nil, nil, nil,
|
422
|
+
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
423
|
+
nil, nil, nil, nil, nil, 3, nil, nil, nil, nil,
|
424
|
+
nil, nil, nil, nil, nil, nil, 2 ]
|
425
|
+
|
426
|
+
racc_goto_pointer = [
|
427
|
+
nil, 26, 0, -18, nil, nil, nil, nil, nil, nil,
|
428
|
+
nil, nil, 10, -7, -104, -40, nil, -10, -70, nil,
|
429
|
+
nil, -26, -48, -5, -33, nil, -5, -15, nil ]
|
430
|
+
|
431
|
+
racc_goto_default = [
|
432
|
+
nil, nil, 103, 2, 4, 7, 11, 13, 19, 23,
|
433
|
+
25, 28, nil, nil, nil, nil, 6, nil, nil, 17,
|
434
|
+
22, nil, nil, nil, nil, 66, nil, nil, 58 ]
|
435
|
+
|
436
|
+
racc_token_table = {
|
437
|
+
false => 0,
|
438
|
+
Object.new => 1,
|
439
|
+
:TEXT => 2,
|
440
|
+
:BOLD_START => 3,
|
441
|
+
:BOLD_END => 4,
|
442
|
+
:ITALIC_START => 5,
|
443
|
+
:ITALIC_END => 6,
|
444
|
+
:LINK_START => 7,
|
445
|
+
:LINK_END => 8,
|
446
|
+
:LINKSEP => 9,
|
447
|
+
:INTLINK_START => 10,
|
448
|
+
:INTLINK_END => 11,
|
449
|
+
:INTLINKSEP => 12,
|
450
|
+
:RESOURCESEP => 13,
|
451
|
+
:PRE_START => 14,
|
452
|
+
:PRE_END => 15,
|
453
|
+
:CHAR_ENT => 16,
|
454
|
+
:SECTION_START => 17,
|
455
|
+
:SECTION_END => 18,
|
456
|
+
:HLINE => 19,
|
457
|
+
:SIGNATURE_NAME => 20,
|
458
|
+
:SIGNATURE_DATE => 21,
|
459
|
+
:SIGNATURE_FULL => 22,
|
460
|
+
:PARA_START => 23,
|
461
|
+
:PARA_END => 24,
|
462
|
+
:UL_START => 25,
|
463
|
+
:UL_END => 26,
|
464
|
+
:OL_START => 27,
|
465
|
+
:OL_END => 28,
|
466
|
+
:LI_START => 29,
|
467
|
+
:LI_END => 30,
|
468
|
+
:DL_START => 31,
|
469
|
+
:DL_END => 32,
|
470
|
+
:DT_START => 33,
|
471
|
+
:DT_END => 34,
|
472
|
+
:DD_START => 35,
|
473
|
+
:DD_END => 36,
|
474
|
+
:TAG_START => 37,
|
475
|
+
:TAG_END => 38,
|
476
|
+
:ATTR_NAME => 39,
|
477
|
+
:ATTR_VALUE => 40,
|
478
|
+
:TABLE_START => 41,
|
479
|
+
:TABLE_END => 42,
|
480
|
+
:ROW_START => 43,
|
481
|
+
:ROW_END => 44,
|
482
|
+
:HEAD_START => 45,
|
483
|
+
:HEAD_END => 46,
|
484
|
+
:CELL_START => 47,
|
485
|
+
:CELL_END => 48,
|
486
|
+
:KEYWORD => 49,
|
487
|
+
:VARIABLE_START => 50,
|
488
|
+
:VARIABLE_END => 51 }
|
489
|
+
|
490
|
+
racc_use_result_var = true
|
491
|
+
|
492
|
+
racc_nt_base = 52
|
493
|
+
|
494
|
+
Racc_arg = [
|
495
|
+
racc_action_table,
|
496
|
+
racc_action_check,
|
497
|
+
racc_action_default,
|
498
|
+
racc_action_pointer,
|
499
|
+
racc_goto_table,
|
500
|
+
racc_goto_check,
|
501
|
+
racc_goto_default,
|
502
|
+
racc_goto_pointer,
|
503
|
+
racc_nt_base,
|
504
|
+
racc_reduce_table,
|
505
|
+
racc_token_table,
|
506
|
+
racc_shift_n,
|
507
|
+
racc_reduce_n,
|
508
|
+
racc_use_result_var ]
|
509
|
+
|
510
|
+
Racc_token_to_s_table = [
|
511
|
+
'$end',
|
512
|
+
'error',
|
513
|
+
'TEXT',
|
514
|
+
'BOLD_START',
|
515
|
+
'BOLD_END',
|
516
|
+
'ITALIC_START',
|
517
|
+
'ITALIC_END',
|
518
|
+
'LINK_START',
|
519
|
+
'LINK_END',
|
520
|
+
'LINKSEP',
|
521
|
+
'INTLINK_START',
|
522
|
+
'INTLINK_END',
|
523
|
+
'INTLINKSEP',
|
524
|
+
'RESOURCESEP',
|
525
|
+
'PRE_START',
|
526
|
+
'PRE_END',
|
527
|
+
'CHAR_ENT',
|
528
|
+
'SECTION_START',
|
529
|
+
'SECTION_END',
|
530
|
+
'HLINE',
|
531
|
+
'SIGNATURE_NAME',
|
532
|
+
'SIGNATURE_DATE',
|
533
|
+
'SIGNATURE_FULL',
|
534
|
+
'PARA_START',
|
535
|
+
'PARA_END',
|
536
|
+
'UL_START',
|
537
|
+
'UL_END',
|
538
|
+
'OL_START',
|
539
|
+
'OL_END',
|
540
|
+
'LI_START',
|
541
|
+
'LI_END',
|
542
|
+
'DL_START',
|
543
|
+
'DL_END',
|
544
|
+
'DT_START',
|
545
|
+
'DT_END',
|
546
|
+
'DD_START',
|
547
|
+
'DD_END',
|
548
|
+
'TAG_START',
|
549
|
+
'TAG_END',
|
550
|
+
'ATTR_NAME',
|
551
|
+
'ATTR_VALUE',
|
552
|
+
'TABLE_START',
|
553
|
+
'TABLE_END',
|
554
|
+
'ROW_START',
|
555
|
+
'ROW_END',
|
556
|
+
'HEAD_START',
|
557
|
+
'HEAD_END',
|
558
|
+
'CELL_START',
|
559
|
+
'CELL_END',
|
560
|
+
'KEYWORD',
|
561
|
+
'VARIABLE_START',
|
562
|
+
'VARIABLE_END',
|
563
|
+
'$start',
|
564
|
+
'wiki',
|
565
|
+
'repeated_contents',
|
566
|
+
'contents',
|
567
|
+
'text',
|
568
|
+
'bulleted_list',
|
569
|
+
'numbered_list',
|
570
|
+
'dictionary_list',
|
571
|
+
'preformatted',
|
572
|
+
'section',
|
573
|
+
'tag',
|
574
|
+
'variable',
|
575
|
+
'para_contents',
|
576
|
+
'link_contents',
|
577
|
+
'reslink_repeated_contents',
|
578
|
+
'intlink_repeated_contents',
|
579
|
+
'table',
|
580
|
+
'tag_attributes',
|
581
|
+
'link_repeated_contents',
|
582
|
+
'element',
|
583
|
+
'formatted_element',
|
584
|
+
'table_contents',
|
585
|
+
'row_contents',
|
586
|
+
'list_item',
|
587
|
+
'list_contents',
|
588
|
+
'@1',
|
589
|
+
'dictionary_term',
|
590
|
+
'dictionary_contents',
|
591
|
+
'dictionary_definition']
|
592
|
+
|
593
|
+
Racc_debug_parser = false
|
594
|
+
|
595
|
+
##### racc system variables end #####
|
596
|
+
|
597
|
+
# reduce 0 omitted
|
598
|
+
|
599
|
+
module_eval <<'.,.,', 'mediawikiparser.y', 29
|
600
|
+
def _reduce_1( val, _values, result )
|
601
|
+
@nodes.push WikiAST.new
|
602
|
+
#@nodes.last.children.insert(0, val[0])
|
603
|
+
#puts val[0]
|
604
|
+
@nodes.last.children += val[0]
|
605
|
+
result
|
606
|
+
end
|
607
|
+
.,.,
|
608
|
+
|
609
|
+
module_eval <<'.,.,', 'mediawikiparser.y', 36
|
610
|
+
def _reduce_2( val, _values, result )
|
611
|
+
result = val[0]
|
612
|
+
result
|
613
|
+
end
|
614
|
+
.,.,
|
615
|
+
|
616
|
+
module_eval <<'.,.,', 'mediawikiparser.y', 40
|
617
|
+
def _reduce_3( val, _values, result )
|
618
|
+
result = val[0]
|
619
|
+
result
|
620
|
+
end
|
621
|
+
.,.,
|
622
|
+
|
623
|
+
module_eval <<'.,.,', 'mediawikiparser.y', 44
|
624
|
+
def _reduce_4( val, _values, result )
|
625
|
+
result = val[0]
|
626
|
+
result
|
627
|
+
end
|
628
|
+
.,.,
|
629
|
+
|
630
|
+
module_eval <<'.,.,', 'mediawikiparser.y', 51
|
631
|
+
def _reduce_5( val, _values, result )
|
632
|
+
list = ListAST.new
|
633
|
+
list.list_type = :Dictionary
|
634
|
+
list.children = val[0]
|
635
|
+
result = list
|
636
|
+
result
|
637
|
+
end
|
638
|
+
.,.,
|
639
|
+
|
640
|
+
module_eval <<'.,.,', 'mediawikiparser.y', 55
|
641
|
+
def _reduce_6( val, _values, result )
|
642
|
+
result = val[0]
|
643
|
+
result
|
644
|
+
end
|
645
|
+
.,.,
|
646
|
+
|
647
|
+
module_eval <<'.,.,', 'mediawikiparser.y', 59
|
648
|
+
def _reduce_7( val, _values, result )
|
649
|
+
result = val[0]
|
650
|
+
result
|
651
|
+
end
|
652
|
+
.,.,
|
653
|
+
|
654
|
+
module_eval <<'.,.,', 'mediawikiparser.y', 63
|
655
|
+
def _reduce_8( val, _values, result )
|
656
|
+
result = val[0]
|
657
|
+
result
|
658
|
+
end
|
659
|
+
.,.,
|
660
|
+
|
661
|
+
module_eval <<'.,.,', 'mediawikiparser.y', 67
|
662
|
+
def _reduce_9( val, _values, result )
|
663
|
+
result = val[0]
|
664
|
+
result
|
665
|
+
end
|
666
|
+
.,.,
|
667
|
+
|
668
|
+
module_eval <<'.,.,', 'mediawikiparser.y', 73
|
669
|
+
def _reduce_10( val, _values, result )
|
670
|
+
k = KeywordAST.new
|
671
|
+
k.text = val[0]
|
672
|
+
result = k
|
673
|
+
result
|
674
|
+
end
|
675
|
+
.,.,
|
676
|
+
|
677
|
+
module_eval <<'.,.,', 'mediawikiparser.y', 79
|
678
|
+
def _reduce_11( val, _values, result )
|
679
|
+
p = ParagraphAST.new
|
680
|
+
p.children = val[1]
|
681
|
+
result = p
|
682
|
+
result
|
683
|
+
end
|
684
|
+
.,.,
|
685
|
+
|
686
|
+
module_eval <<'.,.,', 'mediawikiparser.y', 86
|
687
|
+
def _reduce_12( val, _values, result )
|
688
|
+
l = LinkAST.new
|
689
|
+
l.url = val[1][0]
|
690
|
+
l.children += val[1][1..-1] if val[1].length > 1
|
691
|
+
result = l
|
692
|
+
result
|
693
|
+
end
|
694
|
+
.,.,
|
695
|
+
|
696
|
+
module_eval <<'.,.,', 'mediawikiparser.y', 94
|
697
|
+
def _reduce_13( val, _values, result )
|
698
|
+
l = ResourceLinkAST.new
|
699
|
+
l.prefix = val[1]
|
700
|
+
l.locator = val[3]
|
701
|
+
l.children = val[4] unless val[4].nil? or val[4].empty?
|
702
|
+
result = l
|
703
|
+
result
|
704
|
+
end
|
705
|
+
.,.,
|
706
|
+
|
707
|
+
module_eval <<'.,.,', 'mediawikiparser.y', 101
|
708
|
+
def _reduce_14( val, _values, result )
|
709
|
+
l = InternalLinkAST.new
|
710
|
+
l.locator = val[1]
|
711
|
+
l.children = val[2] unless val[2].nil? or val[2].empty?
|
712
|
+
result = l
|
713
|
+
result
|
714
|
+
end
|
715
|
+
.,.,
|
716
|
+
|
717
|
+
# reduce 15 omitted
|
718
|
+
|
719
|
+
module_eval <<'.,.,', 'mediawikiparser.y', 108
|
720
|
+
def _reduce_16( val, _values, result )
|
721
|
+
result = nil
|
722
|
+
result
|
723
|
+
end
|
724
|
+
.,.,
|
725
|
+
|
726
|
+
module_eval <<'.,.,', 'mediawikiparser.y', 112
|
727
|
+
def _reduce_17( val, _values, result )
|
728
|
+
result = val[0]
|
729
|
+
result
|
730
|
+
end
|
731
|
+
.,.,
|
732
|
+
|
733
|
+
module_eval <<'.,.,', 'mediawikiparser.y', 125
|
734
|
+
def _reduce_18( val, _values, result )
|
735
|
+
if val[0] != val[2]
|
736
|
+
raise Racc::ParseError.new("XHTML end tag #{val[2]} does not match start tag #{val[0]}")
|
737
|
+
end
|
738
|
+
elem = ElementAST.new
|
739
|
+
elem.name = val[0]
|
740
|
+
elem.attributes = val[1]
|
741
|
+
result = elem
|
742
|
+
result
|
743
|
+
end
|
744
|
+
.,.,
|
745
|
+
|
746
|
+
module_eval <<'.,.,', 'mediawikiparser.y', 136
|
747
|
+
def _reduce_19( val, _values, result )
|
748
|
+
if val[0] != val[3]
|
749
|
+
raise Racc::ParseError.new("XHTML end tag #{val[3]} does not match start tag #{val[0]}")
|
750
|
+
end
|
751
|
+
elem = ElementAST.new
|
752
|
+
elem.name = val[0]
|
753
|
+
elem.attributes = val[1]
|
754
|
+
elem.children += val[2]
|
755
|
+
result = elem
|
756
|
+
result
|
757
|
+
end
|
758
|
+
.,.,
|
759
|
+
|
760
|
+
module_eval <<'.,.,', 'mediawikiparser.y', 142
|
761
|
+
def _reduce_20( val, _values, result )
|
762
|
+
result = nil
|
763
|
+
result
|
764
|
+
end
|
765
|
+
.,.,
|
766
|
+
|
767
|
+
module_eval <<'.,.,', 'mediawikiparser.y', 148
|
768
|
+
def _reduce_21( val, _values, result )
|
769
|
+
attr_map = val[2] ? val[2] : {}
|
770
|
+
attr_map[val[0]] = true
|
771
|
+
result = attr_map
|
772
|
+
result
|
773
|
+
end
|
774
|
+
.,.,
|
775
|
+
|
776
|
+
module_eval <<'.,.,', 'mediawikiparser.y', 154
|
777
|
+
def _reduce_22( val, _values, result )
|
778
|
+
attr_map = val[2] ? val[2] : {}
|
779
|
+
attr_map[val[0]] = val[1]
|
780
|
+
result = attr_map
|
781
|
+
result
|
782
|
+
end
|
783
|
+
.,.,
|
784
|
+
|
785
|
+
module_eval <<'.,.,', 'mediawikiparser.y', 162
|
786
|
+
def _reduce_23( val, _values, result )
|
787
|
+
result = val
|
788
|
+
result
|
789
|
+
end
|
790
|
+
.,.,
|
791
|
+
|
792
|
+
module_eval <<'.,.,', 'mediawikiparser.y', 167
|
793
|
+
def _reduce_24( val, _values, result )
|
794
|
+
result = [val[0]]
|
795
|
+
result += val[2]
|
796
|
+
result
|
797
|
+
end
|
798
|
+
.,.,
|
799
|
+
|
800
|
+
module_eval <<'.,.,', 'mediawikiparser.y', 175
|
801
|
+
def _reduce_25( val, _values, result )
|
802
|
+
result = val[0]
|
803
|
+
result
|
804
|
+
end
|
805
|
+
.,.,
|
806
|
+
|
807
|
+
module_eval <<'.,.,', 'mediawikiparser.y', 180
|
808
|
+
def _reduce_26( val, _values, result )
|
809
|
+
result = val[0]
|
810
|
+
result += val[2] if val[2]
|
811
|
+
result
|
812
|
+
end
|
813
|
+
.,.,
|
814
|
+
|
815
|
+
module_eval <<'.,.,', 'mediawikiparser.y', 187
|
816
|
+
def _reduce_27( val, _values, result )
|
817
|
+
result = nil
|
818
|
+
result
|
819
|
+
end
|
820
|
+
.,.,
|
821
|
+
|
822
|
+
module_eval <<'.,.,', 'mediawikiparser.y', 191
|
823
|
+
def _reduce_28( val, _values, result )
|
824
|
+
result = val[1]
|
825
|
+
result
|
826
|
+
end
|
827
|
+
.,.,
|
828
|
+
|
829
|
+
module_eval <<'.,.,', 'mediawikiparser.y', 197
|
830
|
+
def _reduce_29( val, _values, result )
|
831
|
+
result = nil
|
832
|
+
result
|
833
|
+
end
|
834
|
+
.,.,
|
835
|
+
|
836
|
+
module_eval <<'.,.,', 'mediawikiparser.y', 201
|
837
|
+
def _reduce_30( val, _values, result )
|
838
|
+
result = val[1]
|
839
|
+
result
|
840
|
+
end
|
841
|
+
.,.,
|
842
|
+
|
843
|
+
module_eval <<'.,.,', 'mediawikiparser.y', 208
|
844
|
+
def _reduce_31( val, _values, result )
|
845
|
+
i = InternalLinkItemAST.new
|
846
|
+
i.children = val[1]
|
847
|
+
result = [i]
|
848
|
+
result += val[2] if val[2]
|
849
|
+
result
|
850
|
+
end
|
851
|
+
.,.,
|
852
|
+
|
853
|
+
module_eval <<'.,.,', 'mediawikiparser.y', 215
|
854
|
+
def _reduce_32( val, _values, result )
|
855
|
+
result = []
|
856
|
+
result << val[0]
|
857
|
+
result
|
858
|
+
end
|
859
|
+
.,.,
|
860
|
+
|
861
|
+
module_eval <<'.,.,', 'mediawikiparser.y', 221
|
862
|
+
def _reduce_33( val, _values, result )
|
863
|
+
result = []
|
864
|
+
result += val[0]
|
865
|
+
result << val[1]
|
866
|
+
result
|
867
|
+
end
|
868
|
+
.,.,
|
869
|
+
|
870
|
+
module_eval <<'.,.,', 'mediawikiparser.y', 230
|
871
|
+
def _reduce_34( val, _values, result )
|
872
|
+
p = TextAST.new
|
873
|
+
p.formatting = val[0][0]
|
874
|
+
p.contents = val[0][1]
|
875
|
+
result = p
|
876
|
+
result
|
877
|
+
end
|
878
|
+
.,.,
|
879
|
+
|
880
|
+
module_eval <<'.,.,', 'mediawikiparser.y', 234
|
881
|
+
def _reduce_35( val, _values, result )
|
882
|
+
result = val[0]
|
883
|
+
result
|
884
|
+
end
|
885
|
+
.,.,
|
886
|
+
|
887
|
+
module_eval <<'.,.,', 'mediawikiparser.y', 243
|
888
|
+
def _reduce_36( val, _values, result )
|
889
|
+
table = TableAST.new
|
890
|
+
table.children = val[1] unless val[1].nil? or val[1].empty?
|
891
|
+
result = table
|
892
|
+
result
|
893
|
+
end
|
894
|
+
.,.,
|
895
|
+
|
896
|
+
module_eval <<'.,.,', 'mediawikiparser.y', 250
|
897
|
+
def _reduce_37( val, _values, result )
|
898
|
+
table = TableAST.new
|
899
|
+
table.options = val[1]
|
900
|
+
table.children = val[2] unless val[2].nil? or val[2].empty?
|
901
|
+
result = table
|
902
|
+
result
|
903
|
+
end
|
904
|
+
.,.,
|
905
|
+
|
906
|
+
module_eval <<'.,.,', 'mediawikiparser.y', 255
|
907
|
+
def _reduce_38( val, _values, result )
|
908
|
+
result = nil
|
909
|
+
result
|
910
|
+
end
|
911
|
+
.,.,
|
912
|
+
|
913
|
+
module_eval <<'.,.,', 'mediawikiparser.y', 262
|
914
|
+
def _reduce_39( val, _values, result )
|
915
|
+
row = TableRowAST.new
|
916
|
+
row.children = val[1] unless val[1].nil? or val[1].empty?
|
917
|
+
result = [row]
|
918
|
+
result += val[3] unless val[3].nil? or val[3].empty?
|
919
|
+
result
|
920
|
+
end
|
921
|
+
.,.,
|
922
|
+
|
923
|
+
module_eval <<'.,.,', 'mediawikiparser.y', 270
|
924
|
+
def _reduce_40( val, _values, result )
|
925
|
+
row = TableRowAST.new
|
926
|
+
row.children = val[2] unless val[2].nil? or val[2].empty?
|
927
|
+
row.options = val[1]
|
928
|
+
result = [row]
|
929
|
+
result += val[4] unless val[4].nil? or val[4].empty?
|
930
|
+
result
|
931
|
+
end
|
932
|
+
.,.,
|
933
|
+
|
934
|
+
module_eval <<'.,.,', 'mediawikiparser.y', 275
|
935
|
+
def _reduce_41( val, _values, result )
|
936
|
+
result = nil
|
937
|
+
result
|
938
|
+
end
|
939
|
+
.,.,
|
940
|
+
|
941
|
+
module_eval <<'.,.,', 'mediawikiparser.y', 282
|
942
|
+
def _reduce_42( val, _values, result )
|
943
|
+
cell = TableCellAST.new
|
944
|
+
cell.type = :head
|
945
|
+
result = [cell]
|
946
|
+
result += val[2] unless val[2].nil? or val[2].empty?
|
947
|
+
result
|
948
|
+
end
|
949
|
+
.,.,
|
950
|
+
|
951
|
+
module_eval <<'.,.,', 'mediawikiparser.y', 290
|
952
|
+
def _reduce_43( val, _values, result )
|
953
|
+
cell = TableCellAST.new
|
954
|
+
cell.children = val[1] unless val[1].nil? or val[1].empty?
|
955
|
+
cell.type = :head
|
956
|
+
result = [cell]
|
957
|
+
result += val[3] unless val[3].nil? or val[3].empty?
|
958
|
+
result
|
959
|
+
end
|
960
|
+
.,.,
|
961
|
+
|
962
|
+
module_eval <<'.,.,', 'mediawikiparser.y', 297
|
963
|
+
def _reduce_44( val, _values, result )
|
964
|
+
cell = TableCellAST.new
|
965
|
+
cell.type = :body
|
966
|
+
result = [cell]
|
967
|
+
result += val[2] unless val[2].nil? or val[2].empty?
|
968
|
+
result
|
969
|
+
end
|
970
|
+
.,.,
|
971
|
+
|
972
|
+
module_eval <<'.,.,', 'mediawikiparser.y', 305
|
973
|
+
def _reduce_45( val, _values, result )
|
974
|
+
cell = TableCellAST.new
|
975
|
+
cell.children = val[1] unless val[1].nil? or val[1].empty?
|
976
|
+
cell.type = :body
|
977
|
+
result = [cell]
|
978
|
+
result += val[3] unless val[3].nil? or val[3].empty?
|
979
|
+
result
|
980
|
+
end
|
981
|
+
.,.,
|
982
|
+
|
983
|
+
module_eval <<'.,.,', 'mediawikiparser.y', 309
|
984
|
+
def _reduce_46( val, _values, result )
|
985
|
+
return [:None, val[0]]
|
986
|
+
result
|
987
|
+
end
|
988
|
+
.,.,
|
989
|
+
|
990
|
+
module_eval <<'.,.,', 'mediawikiparser.y', 311
|
991
|
+
def _reduce_47( val, _values, result )
|
992
|
+
return [:HLine, val[0]]
|
993
|
+
result
|
994
|
+
end
|
995
|
+
.,.,
|
996
|
+
|
997
|
+
module_eval <<'.,.,', 'mediawikiparser.y', 313
|
998
|
+
def _reduce_48( val, _values, result )
|
999
|
+
return [:CharacterEntity, val[0]]
|
1000
|
+
result
|
1001
|
+
end
|
1002
|
+
.,.,
|
1003
|
+
|
1004
|
+
module_eval <<'.,.,', 'mediawikiparser.y', 315
|
1005
|
+
def _reduce_49( val, _values, result )
|
1006
|
+
return [:SignatureDate, val[0]]
|
1007
|
+
result
|
1008
|
+
end
|
1009
|
+
.,.,
|
1010
|
+
|
1011
|
+
module_eval <<'.,.,', 'mediawikiparser.y', 317
|
1012
|
+
def _reduce_50( val, _values, result )
|
1013
|
+
return [:SignatureName, val[0]]
|
1014
|
+
result
|
1015
|
+
end
|
1016
|
+
.,.,
|
1017
|
+
|
1018
|
+
module_eval <<'.,.,', 'mediawikiparser.y', 319
|
1019
|
+
def _reduce_51( val, _values, result )
|
1020
|
+
return [:SignatureFull, val[0]]
|
1021
|
+
result
|
1022
|
+
end
|
1023
|
+
.,.,
|
1024
|
+
|
1025
|
+
module_eval <<'.,.,', 'mediawikiparser.y', 329
|
1026
|
+
def _reduce_52( val, _values, result )
|
1027
|
+
result = FormattedAST.new
|
1028
|
+
result.formatting = :Bold
|
1029
|
+
result
|
1030
|
+
result
|
1031
|
+
end
|
1032
|
+
.,.,
|
1033
|
+
|
1034
|
+
module_eval <<'.,.,', 'mediawikiparser.y', 335
|
1035
|
+
def _reduce_53( val, _values, result )
|
1036
|
+
result = FormattedAST.new
|
1037
|
+
result.formatting = :Italic
|
1038
|
+
result
|
1039
|
+
result
|
1040
|
+
end
|
1041
|
+
.,.,
|
1042
|
+
|
1043
|
+
module_eval <<'.,.,', 'mediawikiparser.y', 342
|
1044
|
+
def _reduce_54( val, _values, result )
|
1045
|
+
p = FormattedAST.new
|
1046
|
+
p.formatting = :Bold
|
1047
|
+
p.children += val[1]
|
1048
|
+
result = p
|
1049
|
+
result
|
1050
|
+
end
|
1051
|
+
.,.,
|
1052
|
+
|
1053
|
+
module_eval <<'.,.,', 'mediawikiparser.y', 349
|
1054
|
+
def _reduce_55( val, _values, result )
|
1055
|
+
p = FormattedAST.new
|
1056
|
+
p.formatting = :Italic
|
1057
|
+
p.children += val[1]
|
1058
|
+
result = p
|
1059
|
+
result
|
1060
|
+
end
|
1061
|
+
.,.,
|
1062
|
+
|
1063
|
+
module_eval <<'.,.,', 'mediawikiparser.y', 359
|
1064
|
+
def _reduce_56( val, _values, result )
|
1065
|
+
list = ListAST.new
|
1066
|
+
list.list_type = :Bulleted
|
1067
|
+
list.children << val[1]
|
1068
|
+
list.children += val[2]
|
1069
|
+
result = list
|
1070
|
+
result
|
1071
|
+
end
|
1072
|
+
.,.,
|
1073
|
+
|
1074
|
+
module_eval <<'.,.,', 'mediawikiparser.y', 369
|
1075
|
+
def _reduce_57( val, _values, result )
|
1076
|
+
list = ListAST.new
|
1077
|
+
list.list_type = :Numbered
|
1078
|
+
list.children << val[1]
|
1079
|
+
list.children += val[2]
|
1080
|
+
result = list
|
1081
|
+
result
|
1082
|
+
end
|
1083
|
+
.,.,
|
1084
|
+
|
1085
|
+
module_eval <<'.,.,', 'mediawikiparser.y', 372
|
1086
|
+
def _reduce_58( val, _values, result )
|
1087
|
+
result = []
|
1088
|
+
result
|
1089
|
+
end
|
1090
|
+
.,.,
|
1091
|
+
|
1092
|
+
module_eval <<'.,.,', 'mediawikiparser.y', 378
|
1093
|
+
def _reduce_59( val, _values, result )
|
1094
|
+
result << val[1]
|
1095
|
+
result += val[2]
|
1096
|
+
result
|
1097
|
+
end
|
1098
|
+
.,.,
|
1099
|
+
|
1100
|
+
module_eval <<'.,.,', 'mediawikiparser.y', 379
|
1101
|
+
def _reduce_60( val, _values, result )
|
1102
|
+
result = []
|
1103
|
+
result
|
1104
|
+
end
|
1105
|
+
.,.,
|
1106
|
+
|
1107
|
+
module_eval <<'.,.,', 'mediawikiparser.y', 387
|
1108
|
+
def _reduce_61( val, _values, result )
|
1109
|
+
result = ListItemAST.new
|
1110
|
+
result
|
1111
|
+
end
|
1112
|
+
.,.,
|
1113
|
+
|
1114
|
+
module_eval <<'.,.,', 'mediawikiparser.y', 393
|
1115
|
+
def _reduce_62( val, _values, result )
|
1116
|
+
li = ListItemAST.new
|
1117
|
+
li.children += val[1]
|
1118
|
+
result = li
|
1119
|
+
result
|
1120
|
+
end
|
1121
|
+
.,.,
|
1122
|
+
|
1123
|
+
module_eval <<'.,.,', 'mediawikiparser.y', 401
|
1124
|
+
def _reduce_63( val, _values, result )
|
1125
|
+
result = [val[1]]
|
1126
|
+
result += val[2]
|
1127
|
+
result
|
1128
|
+
end
|
1129
|
+
.,.,
|
1130
|
+
|
1131
|
+
module_eval <<'.,.,', 'mediawikiparser.y', 405
|
1132
|
+
def _reduce_64( val, _values, result )
|
1133
|
+
result = val[1]
|
1134
|
+
result
|
1135
|
+
end
|
1136
|
+
.,.,
|
1137
|
+
|
1138
|
+
module_eval <<'.,.,', 'mediawikiparser.y', 412
|
1139
|
+
def _reduce_65( val, _values, result )
|
1140
|
+
result = ListTermAST.new
|
1141
|
+
result
|
1142
|
+
end
|
1143
|
+
.,.,
|
1144
|
+
|
1145
|
+
module_eval <<'.,.,', 'mediawikiparser.y', 418
|
1146
|
+
def _reduce_66( val, _values, result )
|
1147
|
+
term = ListTermAST.new
|
1148
|
+
term.children += val[1]
|
1149
|
+
result = term
|
1150
|
+
result
|
1151
|
+
end
|
1152
|
+
.,.,
|
1153
|
+
|
1154
|
+
module_eval <<'.,.,', 'mediawikiparser.y', 425
|
1155
|
+
def _reduce_67( val, _values, result )
|
1156
|
+
result = [val[0]]
|
1157
|
+
result += val[1] if val[1]
|
1158
|
+
result
|
1159
|
+
end
|
1160
|
+
.,.,
|
1161
|
+
|
1162
|
+
module_eval <<'.,.,', 'mediawikiparser.y', 429
|
1163
|
+
def _reduce_68( val, _values, result )
|
1164
|
+
result = []
|
1165
|
+
result
|
1166
|
+
end
|
1167
|
+
.,.,
|
1168
|
+
|
1169
|
+
module_eval <<'.,.,', 'mediawikiparser.y', 435
|
1170
|
+
def _reduce_69( val, _values, result )
|
1171
|
+
result = ListDefinitionAST.new
|
1172
|
+
result
|
1173
|
+
end
|
1174
|
+
.,.,
|
1175
|
+
|
1176
|
+
module_eval <<'.,.,', 'mediawikiparser.y', 441
|
1177
|
+
def _reduce_70( val, _values, result )
|
1178
|
+
term = ListDefinitionAST.new
|
1179
|
+
term.children += val[1]
|
1180
|
+
result = term
|
1181
|
+
result
|
1182
|
+
end
|
1183
|
+
.,.,
|
1184
|
+
|
1185
|
+
module_eval <<'.,.,', 'mediawikiparser.y', 448
|
1186
|
+
def _reduce_71( val, _values, result )
|
1187
|
+
p = PreformattedAST.new
|
1188
|
+
p.children += val[1]
|
1189
|
+
result = p
|
1190
|
+
result
|
1191
|
+
end
|
1192
|
+
.,.,
|
1193
|
+
|
1194
|
+
module_eval <<'.,.,', 'mediawikiparser.y', 456
|
1195
|
+
def _reduce_72( val, _values, result )
|
1196
|
+
result = [val[1], val[0].length]
|
1197
|
+
s = SectionAST.new
|
1198
|
+
s.children = val[1]
|
1199
|
+
s.level = val[0].length
|
1200
|
+
result = s
|
1201
|
+
result
|
1202
|
+
end
|
1203
|
+
.,.,
|
1204
|
+
|
1205
|
+
module_eval <<'.,.,', 'mediawikiparser.y', 465
|
1206
|
+
def _reduce_73( val, _values, result )
|
1207
|
+
v = VariableAST.new
|
1208
|
+
v.text = val[1]
|
1209
|
+
result = v
|
1210
|
+
result
|
1211
|
+
end
|
1212
|
+
.,.,
|
1213
|
+
|
1214
|
+
def _reduce_none( val, _values, result )
|
1215
|
+
result
|
1216
|
+
end
|
1217
|
+
|
1218
|
+
end # class MediaWikiParser
|