makiri 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (566) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/release.yml +11 -5
  3. data/CHANGELOG.md +65 -1
  4. data/ext/makiri/glue/glue.h +6 -0
  5. data/ext/makiri/glue/ruby_doc.c +56 -0
  6. data/ext/makiri/glue/ruby_mutate.c +37 -0
  7. data/ext/makiri/glue/ruby_node.c +197 -4
  8. data/ext/makiri/glue/ruby_xpath.c +1 -1
  9. data/lib/makiri/version.rb +1 -1
  10. metadata +1 -557
  11. data/vendor/lexbor/.github/FUNDING.yml +0 -12
  12. data/vendor/lexbor/.github/workflows/cmake.yml +0 -37
  13. data/vendor/lexbor/benchmarks/CMakeLists.txt +0 -22
  14. data/vendor/lexbor/benchmarks/benchmark.h +0 -101
  15. data/vendor/lexbor/benchmarks/lexbor/html/CMakeLists.txt +0 -16
  16. data/vendor/lexbor/benchmarks/lexbor/html/tokenizer/input_validation.c +0 -100
  17. data/vendor/lexbor/benchmarks/lexbor/html/tokenizer/parse.c +0 -95
  18. data/vendor/lexbor/benchmarks/lexbor/selectors/CMakeLists.txt +0 -16
  19. data/vendor/lexbor/benchmarks/lexbor/selectors/files/average.html +0 -41
  20. data/vendor/lexbor/benchmarks/lexbor/selectors/selectors.c +0 -144
  21. data/vendor/lexbor/examples/CMakeLists.txt +0 -17
  22. data/vendor/lexbor/examples/lexbor/css/CMakeLists.txt +0 -25
  23. data/vendor/lexbor/examples/lexbor/css/StyleSheet.c +0 -70
  24. data/vendor/lexbor/examples/lexbor/css/base.h +0 -34
  25. data/vendor/lexbor/examples/lexbor/css/selectors/list_easy_way.c +0 -74
  26. data/vendor/lexbor/examples/lexbor/css/selectors/list_fast_way.c +0 -149
  27. data/vendor/lexbor/examples/lexbor/css/syntax/structure_parse_file.c +0 -467
  28. data/vendor/lexbor/examples/lexbor/css/syntax/tokenizer/from_file.c +0 -87
  29. data/vendor/lexbor/examples/lexbor/css/syntax/tokenizer/print_raw.c +0 -100
  30. data/vendor/lexbor/examples/lexbor/encoding/CMakeLists.txt +0 -11
  31. data/vendor/lexbor/examples/lexbor/encoding/buffer/decode/decode.c +0 -58
  32. data/vendor/lexbor/examples/lexbor/encoding/buffer/decode/decoder.c +0 -140
  33. data/vendor/lexbor/examples/lexbor/encoding/buffer/decode/validate.c +0 -65
  34. data/vendor/lexbor/examples/lexbor/encoding/buffer/encode/encode.c +0 -67
  35. data/vendor/lexbor/examples/lexbor/encoding/buffer/encode/encoder.c +0 -262
  36. data/vendor/lexbor/examples/lexbor/encoding/buffer/encode/validate.c +0 -77
  37. data/vendor/lexbor/examples/lexbor/encoding/buffer/from_to.c +0 -193
  38. data/vendor/lexbor/examples/lexbor/encoding/data_by_name.c +0 -23
  39. data/vendor/lexbor/examples/lexbor/encoding/single/decode/decode.c +0 -55
  40. data/vendor/lexbor/examples/lexbor/encoding/single/decode/decoder.c +0 -115
  41. data/vendor/lexbor/examples/lexbor/encoding/single/decode/validate.c +0 -59
  42. data/vendor/lexbor/examples/lexbor/encoding/single/encode/encode.c +0 -65
  43. data/vendor/lexbor/examples/lexbor/encoding/single/encode/encoder.c +0 -241
  44. data/vendor/lexbor/examples/lexbor/encoding/single/encode/validate.c +0 -85
  45. data/vendor/lexbor/examples/lexbor/encoding/single/from_to.c +0 -156
  46. data/vendor/lexbor/examples/lexbor/html/CMakeLists.txt +0 -21
  47. data/vendor/lexbor/examples/lexbor/html/base.h +0 -98
  48. data/vendor/lexbor/examples/lexbor/html/document_parse.c +0 -43
  49. data/vendor/lexbor/examples/lexbor/html/document_parse_chunk.c +0 -72
  50. data/vendor/lexbor/examples/lexbor/html/document_title.c +0 -84
  51. data/vendor/lexbor/examples/lexbor/html/element_attributes.c +0 -134
  52. data/vendor/lexbor/examples/lexbor/html/element_create.c +0 -84
  53. data/vendor/lexbor/examples/lexbor/html/element_innerHTML.c +0 -52
  54. data/vendor/lexbor/examples/lexbor/html/elements_by_attr.c +0 -106
  55. data/vendor/lexbor/examples/lexbor/html/elements_by_class_name.c +0 -55
  56. data/vendor/lexbor/examples/lexbor/html/elements_by_tag_name.c +0 -51
  57. data/vendor/lexbor/examples/lexbor/html/encoding.c +0 -95
  58. data/vendor/lexbor/examples/lexbor/html/html2sexpr.c +0 -231
  59. data/vendor/lexbor/examples/lexbor/html/parse.c +0 -69
  60. data/vendor/lexbor/examples/lexbor/html/parse_chunk.c +0 -77
  61. data/vendor/lexbor/examples/lexbor/html/tokenizer/callback.c +0 -78
  62. data/vendor/lexbor/examples/lexbor/html/tokenizer/simple.c +0 -118
  63. data/vendor/lexbor/examples/lexbor/html/tokenizer/tag_attributes.c +0 -106
  64. data/vendor/lexbor/examples/lexbor/html/tokenizer/text.c +0 -75
  65. data/vendor/lexbor/examples/lexbor/punycode/CMakeLists.txt +0 -11
  66. data/vendor/lexbor/examples/lexbor/punycode/decode.c +0 -102
  67. data/vendor/lexbor/examples/lexbor/punycode/encode.c +0 -102
  68. data/vendor/lexbor/examples/lexbor/selectors/CMakeLists.txt +0 -15
  69. data/vendor/lexbor/examples/lexbor/selectors/easy_way.c +0 -120
  70. data/vendor/lexbor/examples/lexbor/selectors/normal_way.c +0 -172
  71. data/vendor/lexbor/examples/lexbor/selectors/unique_nodes.c +0 -142
  72. data/vendor/lexbor/examples/lexbor/styles/CMakeLists.txt +0 -15
  73. data/vendor/lexbor/examples/lexbor/styles/attribute_style.c +0 -110
  74. data/vendor/lexbor/examples/lexbor/styles/base.h +0 -34
  75. data/vendor/lexbor/examples/lexbor/styles/events_insert.c +0 -199
  76. data/vendor/lexbor/examples/lexbor/styles/stylesheet.c +0 -141
  77. data/vendor/lexbor/examples/lexbor/styles/walk.c +0 -170
  78. data/vendor/lexbor/examples/lexbor/unicode/CMakeLists.txt +0 -17
  79. data/vendor/lexbor/examples/lexbor/unicode/idna_to_ascii.c +0 -115
  80. data/vendor/lexbor/examples/lexbor/unicode/normalization_form.c +0 -99
  81. data/vendor/lexbor/examples/lexbor/unicode/normalization_form_stdin.c +0 -99
  82. data/vendor/lexbor/examples/lexbor/url/CMakeLists.txt +0 -15
  83. data/vendor/lexbor/examples/lexbor/url/parse.c +0 -101
  84. data/vendor/lexbor/examples/lexbor/url/relative.c +0 -112
  85. data/vendor/lexbor/images/SerpApi-logo.png +0 -0
  86. data/vendor/lexbor/images/neural-logo.png +0 -0
  87. data/vendor/lexbor/packaging/Makefile +0 -26
  88. data/vendor/lexbor/packaging/README.md +0 -17
  89. data/vendor/lexbor/packaging/deb/Makefile.in +0 -40
  90. data/vendor/lexbor/packaging/deb/Makefile.module.in +0 -15
  91. data/vendor/lexbor/packaging/deb/debian_in/changelog +0 -6
  92. data/vendor/lexbor/packaging/deb/debian_in/control +0 -25
  93. data/vendor/lexbor/packaging/deb/debian_in/copyright +0 -29
  94. data/vendor/lexbor/packaging/deb/debian_in/dev.dirs +0 -2
  95. data/vendor/lexbor/packaging/deb/debian_in/dev.install +0 -3
  96. data/vendor/lexbor/packaging/deb/debian_in/dirs +0 -1
  97. data/vendor/lexbor/packaging/deb/debian_in/docs +0 -2
  98. data/vendor/lexbor/packaging/deb/debian_in/install +0 -1
  99. data/vendor/lexbor/packaging/deb/debian_in/not-installed +0 -4
  100. data/vendor/lexbor/packaging/deb/debian_in/rules +0 -15
  101. data/vendor/lexbor/packaging/deb/debian_in/source/format +0 -1
  102. data/vendor/lexbor/packaging/deb/debian_main_in/changelog +0 -6
  103. data/vendor/lexbor/packaging/deb/debian_main_in/control +0 -33
  104. data/vendor/lexbor/packaging/deb/debian_main_in/copyright +0 -29
  105. data/vendor/lexbor/packaging/deb/debian_main_in/dev.dirs +0 -3
  106. data/vendor/lexbor/packaging/deb/debian_main_in/dev.install +0 -5
  107. data/vendor/lexbor/packaging/deb/debian_main_in/dirs +0 -1
  108. data/vendor/lexbor/packaging/deb/debian_main_in/docs +0 -2
  109. data/vendor/lexbor/packaging/deb/debian_main_in/install +0 -1
  110. data/vendor/lexbor/packaging/deb/debian_main_in/rules +0 -15
  111. data/vendor/lexbor/packaging/deb/debian_main_in/source/format +0 -1
  112. data/vendor/lexbor/packaging/rpm/Makefile +0 -14
  113. data/vendor/lexbor/packaging/rpm/build.sh +0 -105
  114. data/vendor/lexbor/packaging/rpm/liblexbor-module.spec.in +0 -31
  115. data/vendor/lexbor/packaging/rpm/liblexbor.spec.in +0 -62
  116. data/vendor/lexbor/test/CMakeLists.txt +0 -44
  117. data/vendor/lexbor/test/amalgamation/code/_base.h +0 -33
  118. data/vendor/lexbor/test/amalgamation/code/html.c +0 -35
  119. data/vendor/lexbor/test/amalgamation/generate_and_compile.sh +0 -130
  120. data/vendor/lexbor/test/external/commoncrawl.py +0 -110
  121. data/vendor/lexbor/test/files/lexbor/css/declarations/display.ton +0 -801
  122. data/vendor/lexbor/test/files/lexbor/css/declarations/height.ton +0 -367
  123. data/vendor/lexbor/test/files/lexbor/css/declarations/syntax.ton +0 -189
  124. data/vendor/lexbor/test/files/lexbor/css/declarations/width.ton +0 -367
  125. data/vendor/lexbor/test/files/lexbor/css/lexbor.css +0 -205
  126. data/vendor/lexbor/test/files/lexbor/css/syntax/parser/at.ton +0 -518
  127. data/vendor/lexbor/test/files/lexbor/css/syntax/parser/other.ton +0 -80
  128. data/vendor/lexbor/test/files/lexbor/css/syntax/parser/qualified.ton +0 -799
  129. data/vendor/lexbor/test/files/lexbor/css/syntax/tokenizer/CDO-CDC.ton +0 -226
  130. data/vendor/lexbor/test/files/lexbor/css/syntax/tokenizer/at.ton +0 -170
  131. data/vendor/lexbor/test/files/lexbor/css/syntax/tokenizer/broken-utf-8.ton +0 -101
  132. data/vendor/lexbor/test/files/lexbor/css/syntax/tokenizer/comment.ton +0 -95
  133. data/vendor/lexbor/test/files/lexbor/css/syntax/tokenizer/hash.ton +0 -181
  134. data/vendor/lexbor/test/files/lexbor/css/syntax/tokenizer/ident.ton +0 -245
  135. data/vendor/lexbor/test/files/lexbor/css/syntax/tokenizer/number.ton +0 -694
  136. data/vendor/lexbor/test/files/lexbor/css/syntax/tokenizer/other.ton +0 -16
  137. data/vendor/lexbor/test/files/lexbor/css/syntax/tokenizer/reverse-solidus.ton +0 -111
  138. data/vendor/lexbor/test/files/lexbor/css/syntax/tokenizer/single-tokens.ton +0 -66
  139. data/vendor/lexbor/test/files/lexbor/css/syntax/tokenizer/string.ton +0 -303
  140. data/vendor/lexbor/test/files/lexbor/css/syntax/tokenizer/unicode_range.ton +0 -139
  141. data/vendor/lexbor/test/files/lexbor/css/syntax/tokenizer/url-function.ton +0 -229
  142. data/vendor/lexbor/test/files/lexbor/css/syntax/tokenizer/whitespace.ton +0 -45
  143. data/vendor/lexbor/test/files/lexbor/encoding/big5_map_decode.txt +0 -14699
  144. data/vendor/lexbor/test/files/lexbor/encoding/euc_jp_map_decode.txt +0 -7737
  145. data/vendor/lexbor/test/files/lexbor/encoding/euc_kr_map_decode.txt +0 -17189
  146. data/vendor/lexbor/test/files/lexbor/encoding/gb18030_map_decode.txt +0 -27672
  147. data/vendor/lexbor/test/files/lexbor/encoding/iso_2022_jp_map_decode.txt +0 -7928
  148. data/vendor/lexbor/test/files/lexbor/encoding/shift_jis_map_decode.txt +0 -5138
  149. data/vendor/lexbor/test/files/lexbor/html/html5_test/README.md +0 -12
  150. data/vendor/lexbor/test/files/lexbor/html/html5_test/adoption01.ton +0 -442
  151. data/vendor/lexbor/test/files/lexbor/html/html5_test/adoption02.ton +0 -53
  152. data/vendor/lexbor/test/files/lexbor/html/html5_test/attributes.ton +0 -29
  153. data/vendor/lexbor/test/files/lexbor/html/html5_test/blocks.ton +0 -891
  154. data/vendor/lexbor/test/files/lexbor/html/html5_test/char_ref.ton +0 -51
  155. data/vendor/lexbor/test/files/lexbor/html/html5_test/comments01.ton +0 -290
  156. data/vendor/lexbor/test/files/lexbor/html/html5_test/doctype01.ton +0 -637
  157. data/vendor/lexbor/test/files/lexbor/html/html5_test/domjs-unsafe.ton +0 -822
  158. data/vendor/lexbor/test/files/lexbor/html/html5_test/entities01.ton +0 -1262
  159. data/vendor/lexbor/test/files/lexbor/html/html5_test/entities02.ton +0 -416
  160. data/vendor/lexbor/test/files/lexbor/html/html5_test/foreign-fragment.ton +0 -859
  161. data/vendor/lexbor/test/files/lexbor/html/html5_test/html5test-com.ton +0 -414
  162. data/vendor/lexbor/test/files/lexbor/html/html5_test/inbody01.ton +0 -78
  163. data/vendor/lexbor/test/files/lexbor/html/html5_test/isindex.ton +0 -67
  164. data/vendor/lexbor/test/files/lexbor/html/html5_test/main-element.ton +0 -63
  165. data/vendor/lexbor/test/files/lexbor/html/html5_test/math.ton +0 -140
  166. data/vendor/lexbor/test/files/lexbor/html/html5_test/menuitem-element.ton +0 -345
  167. data/vendor/lexbor/test/files/lexbor/html/html5_test/namespace-sensitivity.ton +0 -31
  168. data/vendor/lexbor/test/files/lexbor/html/html5_test/noscript01.ton +0 -344
  169. data/vendor/lexbor/test/files/lexbor/html/html5_test/pending-spec-changes-plain-text-unsafe.ton +0 -39
  170. data/vendor/lexbor/test/files/lexbor/html/html5_test/pending-spec-changes.ton +0 -65
  171. data/vendor/lexbor/test/files/lexbor/html/html5_test/plain-text-unsafe.ton +0 -657
  172. data/vendor/lexbor/test/files/lexbor/html/html5_test/quirks01.ton +0 -77
  173. data/vendor/lexbor/test/files/lexbor/html/html5_test/ruby.ton +0 -411
  174. data/vendor/lexbor/test/files/lexbor/html/html5_test/scriptdata01.ton +0 -499
  175. data/vendor/lexbor/test/files/lexbor/html/html5_test/search-element.ton +0 -63
  176. data/vendor/lexbor/test/files/lexbor/html/html5_test/svg.ton +0 -140
  177. data/vendor/lexbor/test/files/lexbor/html/html5_test/tables01.ton +0 -421
  178. data/vendor/lexbor/test/files/lexbor/html/html5_test/template.ton +0 -2199
  179. data/vendor/lexbor/test/files/lexbor/html/html5_test/tests1.ton +0 -2486
  180. data/vendor/lexbor/test/files/lexbor/html/html5_test/tests10.ton +0 -1090
  181. data/vendor/lexbor/test/files/lexbor/html/html5_test/tests11.ton +0 -317
  182. data/vendor/lexbor/test/files/lexbor/html/html5_test/tests12.ton +0 -72
  183. data/vendor/lexbor/test/files/lexbor/html/html5_test/tests14.ton +0 -100
  184. data/vendor/lexbor/test/files/lexbor/html/html5_test/tests15.ton +0 -290
  185. data/vendor/lexbor/test/files/lexbor/html/html5_test/tests16.ton +0 -3471
  186. data/vendor/lexbor/test/files/lexbor/html/html5_test/tests17.ton +0 -244
  187. data/vendor/lexbor/test/files/lexbor/html/html5_test/tests18.ton +0 -752
  188. data/vendor/lexbor/test/files/lexbor/html/html5_test/tests19.ton +0 -1889
  189. data/vendor/lexbor/test/files/lexbor/html/html5_test/tests2.ton +0 -1093
  190. data/vendor/lexbor/test/files/lexbor/html/html5_test/tests20.ton +0 -1158
  191. data/vendor/lexbor/test/files/lexbor/html/html5_test/tests21.ton +0 -416
  192. data/vendor/lexbor/test/files/lexbor/html/html5_test/tests22.ton +0 -192
  193. data/vendor/lexbor/test/files/lexbor/html/html5_test/tests23.ton +0 -148
  194. data/vendor/lexbor/test/files/lexbor/html/html5_test/tests24.ton +0 -107
  195. data/vendor/lexbor/test/files/lexbor/html/html5_test/tests25.ton +0 -390
  196. data/vendor/lexbor/test/files/lexbor/html/html5_test/tests26.ton +0 -546
  197. data/vendor/lexbor/test/files/lexbor/html/html5_test/tests3.ton +0 -407
  198. data/vendor/lexbor/test/files/lexbor/html/html5_test/tests4.ton +0 -96
  199. data/vendor/lexbor/test/files/lexbor/html/html5_test/tests5.ton +0 -299
  200. data/vendor/lexbor/test/files/lexbor/html/html5_test/tests6.ton +0 -908
  201. data/vendor/lexbor/test/files/lexbor/html/html5_test/tests7.ton +0 -597
  202. data/vendor/lexbor/test/files/lexbor/html/html5_test/tests8.ton +0 -219
  203. data/vendor/lexbor/test/files/lexbor/html/html5_test/tests9.ton +0 -585
  204. data/vendor/lexbor/test/files/lexbor/html/html5_test/tests_innerHTML_1.ton +0 -1164
  205. data/vendor/lexbor/test/files/lexbor/html/html5_test/tricky01.ton +0 -378
  206. data/vendor/lexbor/test/files/lexbor/html/html5_test/webkit01.ton +0 -1022
  207. data/vendor/lexbor/test/files/lexbor/html/html5_test/webkit02.ton +0 -996
  208. data/vendor/lexbor/test/files/lexbor/html/html5lib_encoding/README.md +0 -12
  209. data/vendor/lexbor/test/files/lexbor/html/html5lib_encoding/test-yahoo-jp.dat +0 -10
  210. data/vendor/lexbor/test/files/lexbor/html/html5lib_encoding/tests1.dat +0 -388
  211. data/vendor/lexbor/test/files/lexbor/html/html5lib_encoding/tests2.dat +0 -115
  212. data/vendor/lexbor/test/files/lexbor/html/html5lib_tokenizer/README.md +0 -12
  213. data/vendor/lexbor/test/files/lexbor/html/html5lib_tokenizer/contentModelFlags.test +0 -93
  214. data/vendor/lexbor/test/files/lexbor/html/html5lib_tokenizer/domjs.test +0 -335
  215. data/vendor/lexbor/test/files/lexbor/html/html5lib_tokenizer/entities.test +0 -542
  216. data/vendor/lexbor/test/files/lexbor/html/html5lib_tokenizer/escapeFlag.test +0 -36
  217. data/vendor/lexbor/test/files/lexbor/html/html5lib_tokenizer/namedEntities.test +0 -42422
  218. data/vendor/lexbor/test/files/lexbor/html/html5lib_tokenizer/numericEntities.test +0 -1677
  219. data/vendor/lexbor/test/files/lexbor/html/html5lib_tokenizer/pendingSpecChanges.test +0 -9
  220. data/vendor/lexbor/test/files/lexbor/html/html5lib_tokenizer/test1.test +0 -353
  221. data/vendor/lexbor/test/files/lexbor/html/html5lib_tokenizer/test2.test +0 -275
  222. data/vendor/lexbor/test/files/lexbor/html/html5lib_tokenizer/test3.test +0 -11233
  223. data/vendor/lexbor/test/files/lexbor/html/html5lib_tokenizer/test4.test +0 -532
  224. data/vendor/lexbor/test/files/lexbor/html/html5lib_tokenizer/unicodeChars.test +0 -1577
  225. data/vendor/lexbor/test/files/lexbor/html/html5lib_tokenizer/unicodeCharsProblematic.test +0 -41
  226. data/vendor/lexbor/test/files/lexbor/html/html5lib_tokenizer/xmlViolation.test +0 -20
  227. data/vendor/lexbor/test/files/lexbor/html/lexbor.html +0 -150
  228. data/vendor/lexbor/test/files/lexbor/html/serialize_ext/attributes.ton +0 -167
  229. data/vendor/lexbor/test/files/lexbor/html/serialize_ext/comment.ton +0 -218
  230. data/vendor/lexbor/test/files/lexbor/html/serialize_ext/document_type.ton +0 -180
  231. data/vendor/lexbor/test/files/lexbor/html/serialize_ext/element.ton +0 -392
  232. data/vendor/lexbor/test/files/lexbor/html/serialize_ext/processing_instruction.ton +0 -45
  233. data/vendor/lexbor/test/files/lexbor/html/serialize_ext/serialize_ext.ton +0 -277
  234. data/vendor/lexbor/test/files/lexbor/html/serialize_ext/text.ton +0 -308
  235. data/vendor/lexbor/test/files/lexbor/html/tokenizer/char_ref.ton +0 -563
  236. data/vendor/lexbor/test/files/lexbor/html/tokenizer/comment.ton +0 -28
  237. data/vendor/lexbor/test/files/lexbor/html/tokenizer/doctype.ton +0 -257
  238. data/vendor/lexbor/test/files/lexbor/html/tokenizer/tag_attr.ton +0 -107
  239. data/vendor/lexbor/test/files/lexbor/html/tokenizer/tag_name.ton +0 -51
  240. data/vendor/lexbor/test/files/lexbor/url/changes.ton +0 -1005
  241. data/vendor/lexbor/test/files/lexbor/url/domain.ton +0 -93
  242. data/vendor/lexbor/test/files/lexbor/url/file.ton +0 -29
  243. data/vendor/lexbor/test/files/lexbor/url/fragment.ton +0 -47
  244. data/vendor/lexbor/test/files/lexbor/url/ipv4.ton +0 -221
  245. data/vendor/lexbor/test/files/lexbor/url/ipv6.ton +0 -197
  246. data/vendor/lexbor/test/files/lexbor/url/path.ton +0 -510
  247. data/vendor/lexbor/test/files/lexbor/url/query.ton +0 -135
  248. data/vendor/lexbor/test/files/lexbor/url/scheme.ton +0 -139
  249. data/vendor/lexbor/test/files/lexbor/url/slow_path.ton +0 -460
  250. data/vendor/lexbor/test/files/lexbor/url/url.ton +0 -78
  251. data/vendor/lexbor/test/files/lexbor/url/username_password.ton +0 -127
  252. data/vendor/lexbor/test/fuzzers/lexbor/css/CMakeLists.txt +0 -16
  253. data/vendor/lexbor/test/fuzzers/lexbor/css/css.dict +0 -307
  254. data/vendor/lexbor/test/fuzzers/lexbor/css/stylesheet.c +0 -55
  255. data/vendor/lexbor/test/fuzzers/lexbor/css/syntax/syntax.dict +0 -41
  256. data/vendor/lexbor/test/fuzzers/lexbor/css/syntax/tokenizer.c +0 -99
  257. data/vendor/lexbor/test/fuzzers/lexbor/encoding/CMakeLists.txt +0 -16
  258. data/vendor/lexbor/test/fuzzers/lexbor/encoding/decode.c +0 -29
  259. data/vendor/lexbor/test/fuzzers/lexbor/html/CMakeLists.txt +0 -16
  260. data/vendor/lexbor/test/fuzzers/lexbor/html/document_parse.c +0 -23
  261. data/vendor/lexbor/test/fuzzers/lexbor/punycode/CMakeLists.txt +0 -16
  262. data/vendor/lexbor/test/fuzzers/lexbor/punycode/base.c +0 -89
  263. data/vendor/lexbor/test/fuzzers/lexbor/selectors/CMakeLists.txt +0 -16
  264. data/vendor/lexbor/test/fuzzers/lexbor/selectors/find.c +0 -146
  265. data/vendor/lexbor/test/fuzzers/lexbor/selectors/selectors.dict +0 -71
  266. data/vendor/lexbor/test/fuzzers/lexbor/unicode/CMakeLists.txt +0 -16
  267. data/vendor/lexbor/test/fuzzers/lexbor/unicode/idna_to_ascii.c +0 -40
  268. data/vendor/lexbor/test/fuzzers/lexbor/unicode/normalization_forms.c +0 -41
  269. data/vendor/lexbor/test/fuzzers/lexbor/url/CMakeLists.txt +0 -16
  270. data/vendor/lexbor/test/fuzzers/lexbor/url/modify.c +0 -117
  271. data/vendor/lexbor/test/fuzzers/lexbor/url/parser.c +0 -132
  272. data/vendor/lexbor/test/fuzzers/lexbor/url/url.dict +0 -13
  273. data/vendor/lexbor/test/lexbor/core/CMakeLists.txt +0 -17
  274. data/vendor/lexbor/test/lexbor/core/array.c +0 -443
  275. data/vendor/lexbor/test/lexbor/core/array_obj.c +0 -306
  276. data/vendor/lexbor/test/lexbor/core/avl.c +0 -1588
  277. data/vendor/lexbor/test/lexbor/core/bst.c +0 -388
  278. data/vendor/lexbor/test/lexbor/core/bst_map.c +0 -209
  279. data/vendor/lexbor/test/lexbor/core/dobject.c +0 -322
  280. data/vendor/lexbor/test/lexbor/core/hash.c +0 -171
  281. data/vendor/lexbor/test/lexbor/core/in.c +0 -356
  282. data/vendor/lexbor/test/lexbor/core/mem.c +0 -332
  283. data/vendor/lexbor/test/lexbor/core/mraw.c +0 -612
  284. data/vendor/lexbor/test/lexbor/core/str.c +0 -433
  285. data/vendor/lexbor/test/lexbor/css/CMakeLists.txt +0 -25
  286. data/vendor/lexbor/test/lexbor/css/declarations.c +0 -571
  287. data/vendor/lexbor/test/lexbor/css/selectors/selectors.c +0 -894
  288. data/vendor/lexbor/test/lexbor/css/selectors/specificity.c +0 -177
  289. data/vendor/lexbor/test/lexbor/css/stylesheet.c +0 -196
  290. data/vendor/lexbor/test/lexbor/css/syntax/an_plus_b.c +0 -233
  291. data/vendor/lexbor/test/lexbor/css/syntax/parser.c +0 -1134
  292. data/vendor/lexbor/test/lexbor/css/syntax/style.c +0 -67
  293. data/vendor/lexbor/test/lexbor/css/syntax/tokenizer.c +0 -485
  294. data/vendor/lexbor/test/lexbor/css/syntax/tokenizer_queue.c +0 -92
  295. data/vendor/lexbor/test/lexbor/dom/CMakeLists.txt +0 -17
  296. data/vendor/lexbor/test/lexbor/dom/exception.c +0 -210
  297. data/vendor/lexbor/test/lexbor/dom/node.c +0 -441
  298. data/vendor/lexbor/test/lexbor/encoding/CMakeLists.txt +0 -42
  299. data/vendor/lexbor/test/lexbor/encoding/buffer/big5.c +0 -210
  300. data/vendor/lexbor/test/lexbor/encoding/buffer/encoding.h +0 -243
  301. data/vendor/lexbor/test/lexbor/encoding/buffer/euc_jp.c +0 -228
  302. data/vendor/lexbor/test/lexbor/encoding/buffer/euc_kr.c +0 -172
  303. data/vendor/lexbor/test/lexbor/encoding/buffer/gb18030.c +0 -297
  304. data/vendor/lexbor/test/lexbor/encoding/buffer/ibm866.c +0 -123
  305. data/vendor/lexbor/test/lexbor/encoding/buffer/iso_2022_jp.c +0 -403
  306. data/vendor/lexbor/test/lexbor/encoding/buffer/iso_8859_10.c +0 -123
  307. data/vendor/lexbor/test/lexbor/encoding/buffer/iso_8859_13.c +0 -123
  308. data/vendor/lexbor/test/lexbor/encoding/buffer/iso_8859_14.c +0 -123
  309. data/vendor/lexbor/test/lexbor/encoding/buffer/iso_8859_15.c +0 -123
  310. data/vendor/lexbor/test/lexbor/encoding/buffer/iso_8859_16.c +0 -123
  311. data/vendor/lexbor/test/lexbor/encoding/buffer/iso_8859_2.c +0 -123
  312. data/vendor/lexbor/test/lexbor/encoding/buffer/iso_8859_3.c +0 -123
  313. data/vendor/lexbor/test/lexbor/encoding/buffer/iso_8859_4.c +0 -123
  314. data/vendor/lexbor/test/lexbor/encoding/buffer/iso_8859_5.c +0 -123
  315. data/vendor/lexbor/test/lexbor/encoding/buffer/iso_8859_6.c +0 -123
  316. data/vendor/lexbor/test/lexbor/encoding/buffer/iso_8859_7.c +0 -123
  317. data/vendor/lexbor/test/lexbor/encoding/buffer/iso_8859_8.c +0 -123
  318. data/vendor/lexbor/test/lexbor/encoding/buffer/koi8_r.c +0 -123
  319. data/vendor/lexbor/test/lexbor/encoding/buffer/koi8_u.c +0 -123
  320. data/vendor/lexbor/test/lexbor/encoding/buffer/macintosh.c +0 -123
  321. data/vendor/lexbor/test/lexbor/encoding/buffer/shift_jis.c +0 -230
  322. data/vendor/lexbor/test/lexbor/encoding/buffer/utf-16.c +0 -230
  323. data/vendor/lexbor/test/lexbor/encoding/buffer/utf-8.c +0 -282
  324. data/vendor/lexbor/test/lexbor/encoding/buffer/windows_1250.c +0 -123
  325. data/vendor/lexbor/test/lexbor/encoding/buffer/windows_1251.c +0 -123
  326. data/vendor/lexbor/test/lexbor/encoding/buffer/windows_1252.c +0 -123
  327. data/vendor/lexbor/test/lexbor/encoding/buffer/windows_1253.c +0 -123
  328. data/vendor/lexbor/test/lexbor/encoding/buffer/windows_1254.c +0 -123
  329. data/vendor/lexbor/test/lexbor/encoding/buffer/windows_1255.c +0 -123
  330. data/vendor/lexbor/test/lexbor/encoding/buffer/windows_1256.c +0 -123
  331. data/vendor/lexbor/test/lexbor/encoding/buffer/windows_1257.c +0 -123
  332. data/vendor/lexbor/test/lexbor/encoding/buffer/windows_1258.c +0 -123
  333. data/vendor/lexbor/test/lexbor/encoding/buffer/windows_874.c +0 -123
  334. data/vendor/lexbor/test/lexbor/encoding/buffer/x_mac_cyrillic.c +0 -123
  335. data/vendor/lexbor/test/lexbor/encoding/encoding.c +0 -97
  336. data/vendor/lexbor/test/lexbor/encoding/parser.h +0 -225
  337. data/vendor/lexbor/test/lexbor/encoding/single/big5.c +0 -203
  338. data/vendor/lexbor/test/lexbor/encoding/single/encoding.h +0 -227
  339. data/vendor/lexbor/test/lexbor/encoding/single/euc_jp.c +0 -220
  340. data/vendor/lexbor/test/lexbor/encoding/single/euc_kr.c +0 -162
  341. data/vendor/lexbor/test/lexbor/encoding/single/gb18030.c +0 -277
  342. data/vendor/lexbor/test/lexbor/encoding/single/ibm866.c +0 -114
  343. data/vendor/lexbor/test/lexbor/encoding/single/iso_2022_jp.c +0 -342
  344. data/vendor/lexbor/test/lexbor/encoding/single/iso_8859_10.c +0 -114
  345. data/vendor/lexbor/test/lexbor/encoding/single/iso_8859_13.c +0 -114
  346. data/vendor/lexbor/test/lexbor/encoding/single/iso_8859_14.c +0 -114
  347. data/vendor/lexbor/test/lexbor/encoding/single/iso_8859_15.c +0 -114
  348. data/vendor/lexbor/test/lexbor/encoding/single/iso_8859_16.c +0 -114
  349. data/vendor/lexbor/test/lexbor/encoding/single/iso_8859_2.c +0 -114
  350. data/vendor/lexbor/test/lexbor/encoding/single/iso_8859_3.c +0 -114
  351. data/vendor/lexbor/test/lexbor/encoding/single/iso_8859_4.c +0 -114
  352. data/vendor/lexbor/test/lexbor/encoding/single/iso_8859_5.c +0 -114
  353. data/vendor/lexbor/test/lexbor/encoding/single/iso_8859_6.c +0 -114
  354. data/vendor/lexbor/test/lexbor/encoding/single/iso_8859_7.c +0 -114
  355. data/vendor/lexbor/test/lexbor/encoding/single/iso_8859_8.c +0 -114
  356. data/vendor/lexbor/test/lexbor/encoding/single/koi8_r.c +0 -114
  357. data/vendor/lexbor/test/lexbor/encoding/single/koi8_u.c +0 -114
  358. data/vendor/lexbor/test/lexbor/encoding/single/macintosh.c +0 -114
  359. data/vendor/lexbor/test/lexbor/encoding/single/shift_jis.c +0 -203
  360. data/vendor/lexbor/test/lexbor/encoding/single/utf-16.c +0 -216
  361. data/vendor/lexbor/test/lexbor/encoding/single/utf-8.c +0 -227
  362. data/vendor/lexbor/test/lexbor/encoding/single/windows_1250.c +0 -114
  363. data/vendor/lexbor/test/lexbor/encoding/single/windows_1251.c +0 -114
  364. data/vendor/lexbor/test/lexbor/encoding/single/windows_1252.c +0 -114
  365. data/vendor/lexbor/test/lexbor/encoding/single/windows_1253.c +0 -114
  366. data/vendor/lexbor/test/lexbor/encoding/single/windows_1254.c +0 -114
  367. data/vendor/lexbor/test/lexbor/encoding/single/windows_1255.c +0 -114
  368. data/vendor/lexbor/test/lexbor/encoding/single/windows_1256.c +0 -114
  369. data/vendor/lexbor/test/lexbor/encoding/single/windows_1257.c +0 -114
  370. data/vendor/lexbor/test/lexbor/encoding/single/windows_1258.c +0 -114
  371. data/vendor/lexbor/test/lexbor/encoding/single/windows_874.c +0 -114
  372. data/vendor/lexbor/test/lexbor/encoding/single/x_mac_cyrillic.c +0 -114
  373. data/vendor/lexbor/test/lexbor/html/CMakeLists.txt +0 -35
  374. data/vendor/lexbor/test/lexbor/html/attributes.c +0 -105
  375. data/vendor/lexbor/test/lexbor/html/build-cpp.cpp +0 -68
  376. data/vendor/lexbor/test/lexbor/html/clone.c +0 -356
  377. data/vendor/lexbor/test/lexbor/html/dom/document_type.c +0 -125
  378. data/vendor/lexbor/test/lexbor/html/element_by.c +0 -147
  379. data/vendor/lexbor/test/lexbor/html/encoding.c +0 -228
  380. data/vendor/lexbor/test/lexbor/html/encoding_html5lib_tests.c +0 -308
  381. data/vendor/lexbor/test/lexbor/html/encoding_prescan.c +0 -1686
  382. data/vendor/lexbor/test/lexbor/html/inner.c +0 -103
  383. data/vendor/lexbor/test/lexbor/html/other.c +0 -139
  384. data/vendor/lexbor/test/lexbor/html/parse.c +0 -380
  385. data/vendor/lexbor/test/lexbor/html/perf.c +0 -161
  386. data/vendor/lexbor/test/lexbor/html/serialize.c +0 -56
  387. data/vendor/lexbor/test/lexbor/html/serialize_ext.c +0 -461
  388. data/vendor/lexbor/test/lexbor/html/tags.c +0 -140
  389. data/vendor/lexbor/test/lexbor/html/tokenizer/errors.c +0 -34
  390. data/vendor/lexbor/test/lexbor/html/tokenizer/html5lib_tests.c +0 -1168
  391. data/vendor/lexbor/test/lexbor/html/tokenizer_helper.h +0 -403
  392. data/vendor/lexbor/test/lexbor/html/tokenizer_tokens.c +0 -754
  393. data/vendor/lexbor/test/lexbor/html/tree/errors.c +0 -34
  394. data/vendor/lexbor/test/lexbor/html/tree/open_elements.c +0 -99
  395. data/vendor/lexbor/test/lexbor/html/tree_builder.c +0 -536
  396. data/vendor/lexbor/test/lexbor/ns/CMakeLists.txt +0 -17
  397. data/vendor/lexbor/test/lexbor/ns/res.c +0 -55
  398. data/vendor/lexbor/test/lexbor/punycode/CMakeLists.txt +0 -17
  399. data/vendor/lexbor/test/lexbor/punycode/base.c +0 -240
  400. data/vendor/lexbor/test/lexbor/selectors/CMakeLists.txt +0 -17
  401. data/vendor/lexbor/test/lexbor/selectors/selectors.c +0 -911
  402. data/vendor/lexbor/test/lexbor/style/CMakeLists.txt +0 -17
  403. data/vendor/lexbor/test/lexbor/style/element_events.c +0 -291
  404. data/vendor/lexbor/test/lexbor/style/element_style_steps.c +0 -5035
  405. data/vendor/lexbor/test/lexbor/style/not_html_namespace.c +0 -87
  406. data/vendor/lexbor/test/lexbor/style/style_tag.c +0 -184
  407. data/vendor/lexbor/test/lexbor/style/stylesheet.c +0 -51
  408. data/vendor/lexbor/test/lexbor/style/wo_events.c +0 -351
  409. data/vendor/lexbor/test/lexbor/tag/CMakeLists.txt +0 -17
  410. data/vendor/lexbor/test/lexbor/tag/res.c +0 -440
  411. data/vendor/lexbor/test/lexbor/unicode/CMakeLists.txt +0 -17
  412. data/vendor/lexbor/test/lexbor/unicode/composition_test.c +0 -1095
  413. data/vendor/lexbor/test/lexbor/unicode/edges_normalization_forms.c +0 -220
  414. data/vendor/lexbor/test/lexbor/unicode/idna.c +0 -98
  415. data/vendor/lexbor/test/lexbor/unicode/idna_codepoints.c +0 -110
  416. data/vendor/lexbor/test/lexbor/unicode/idna_type.c +0 -31
  417. data/vendor/lexbor/test/lexbor/unicode/normalization_forms.c +0 -205
  418. data/vendor/lexbor/test/lexbor/unicode/normalization_forms_code_points.c +0 -214
  419. data/vendor/lexbor/test/lexbor/unicode/unicode_idna_test_res.h +0 -6423
  420. data/vendor/lexbor/test/lexbor/unicode/unicode_normalization_test_res.h +0 -120229
  421. data/vendor/lexbor/test/lexbor/url/CMakeLists.txt +0 -22
  422. data/vendor/lexbor/test/lexbor/url/errors.c +0 -41
  423. data/vendor/lexbor/test/lexbor/url/other.c +0 -134
  424. data/vendor/lexbor/test/lexbor/url/parser.c +0 -872
  425. data/vendor/lexbor/test/lexbor/url/search_params.c +0 -616
  426. data/vendor/lexbor/test/lexbor/url/validation.c +0 -185
  427. data/vendor/lexbor/test/unit/CMakeLists.txt +0 -49
  428. data/vendor/lexbor/test/unit/kv.c +0 -538
  429. data/vendor/lexbor/test/unit/kv.h +0 -301
  430. data/vendor/lexbor/test/unit/kv_rules.c +0 -609
  431. data/vendor/lexbor/test/unit/kv_state.c +0 -1470
  432. data/vendor/lexbor/test/unit/test.c +0 -131
  433. data/vendor/lexbor/test/unit/test.h +0 -410
  434. data/vendor/lexbor/utils/CMakeLists.txt +0 -11
  435. data/vendor/lexbor/utils/lexbor/css/grammar.txt +0 -263
  436. data/vendor/lexbor/utils/lexbor/css/names.py +0 -768
  437. data/vendor/lexbor/utils/lexbor/css/selectors/pseudo.py +0 -234
  438. data/vendor/lexbor/utils/lexbor/css/selectors/tmp/const.h +0 -21
  439. data/vendor/lexbor/utils/lexbor/css/selectors/tmp/res.h +0 -26
  440. data/vendor/lexbor/utils/lexbor/css/syntax/definitions.py +0 -62
  441. data/vendor/lexbor/utils/lexbor/css/syntax/non_ascii.pl +0 -77
  442. data/vendor/lexbor/utils/lexbor/css/syntax/token_res.py +0 -55
  443. data/vendor/lexbor/utils/lexbor/css/syntax/tokenizer_code_map.py +0 -36
  444. data/vendor/lexbor/utils/lexbor/css/tmp/const.h +0 -24
  445. data/vendor/lexbor/utils/lexbor/css/tmp/res.h +0 -26
  446. data/vendor/lexbor/utils/lexbor/css/tmp/types.h +0 -21
  447. data/vendor/lexbor/utils/lexbor/css/tmp/value_const.h +0 -21
  448. data/vendor/lexbor/utils/lexbor/css/tmp/value_res.h +0 -25
  449. data/vendor/lexbor/utils/lexbor/dom/attr.py +0 -129
  450. data/vendor/lexbor/utils/lexbor/dom/tmp/const.h +0 -23
  451. data/vendor/lexbor/utils/lexbor/dom/tmp/res.h +0 -27
  452. data/vendor/lexbor/utils/lexbor/encoding/CMakeLists.txt +0 -32
  453. data/vendor/lexbor/utils/lexbor/encoding/big5_map_decode.c +0 -93
  454. data/vendor/lexbor/utils/lexbor/encoding/buffer-single-byte.py +0 -95
  455. data/vendor/lexbor/utils/lexbor/encoding/encodings.json +0 -456
  456. data/vendor/lexbor/utils/lexbor/encoding/euc_jp_map_decode.c +0 -83
  457. data/vendor/lexbor/utils/lexbor/encoding/euc_kr_map_decode.c +0 -89
  458. data/vendor/lexbor/utils/lexbor/encoding/gb18030_map_decode.c +0 -170
  459. data/vendor/lexbor/utils/lexbor/encoding/iso_2022_jp_map_decode.c +0 -120
  460. data/vendor/lexbor/utils/lexbor/encoding/multi-byte/index-big5.txt +0 -18596
  461. data/vendor/lexbor/utils/lexbor/encoding/multi-byte/index-euc-kr.txt +0 -17054
  462. data/vendor/lexbor/utils/lexbor/encoding/multi-byte/index-gb18030.txt +0 -23946
  463. data/vendor/lexbor/utils/lexbor/encoding/multi-byte/index-iso-2022-jp-katakana.txt +0 -69
  464. data/vendor/lexbor/utils/lexbor/encoding/multi-byte/index-jis0208.txt +0 -7730
  465. data/vendor/lexbor/utils/lexbor/encoding/multi-byte/index-jis0212.txt +0 -6073
  466. data/vendor/lexbor/utils/lexbor/encoding/multi-byte.pl +0 -424
  467. data/vendor/lexbor/utils/lexbor/encoding/range-byte.py +0 -118
  468. data/vendor/lexbor/utils/lexbor/encoding/ranges/index-gb18030-ranges.txt +0 -213
  469. data/vendor/lexbor/utils/lexbor/encoding/res.py +0 -231
  470. data/vendor/lexbor/utils/lexbor/encoding/shift_jis_map_decode.c +0 -102
  471. data/vendor/lexbor/utils/lexbor/encoding/single-byte/index-ibm866.txt +0 -134
  472. data/vendor/lexbor/utils/lexbor/encoding/single-byte/index-iso-8859-10.txt +0 -134
  473. data/vendor/lexbor/utils/lexbor/encoding/single-byte/index-iso-8859-13.txt +0 -134
  474. data/vendor/lexbor/utils/lexbor/encoding/single-byte/index-iso-8859-14.txt +0 -134
  475. data/vendor/lexbor/utils/lexbor/encoding/single-byte/index-iso-8859-15.txt +0 -134
  476. data/vendor/lexbor/utils/lexbor/encoding/single-byte/index-iso-8859-16.txt +0 -134
  477. data/vendor/lexbor/utils/lexbor/encoding/single-byte/index-iso-8859-2.txt +0 -134
  478. data/vendor/lexbor/utils/lexbor/encoding/single-byte/index-iso-8859-3.txt +0 -127
  479. data/vendor/lexbor/utils/lexbor/encoding/single-byte/index-iso-8859-4.txt +0 -134
  480. data/vendor/lexbor/utils/lexbor/encoding/single-byte/index-iso-8859-5.txt +0 -134
  481. data/vendor/lexbor/utils/lexbor/encoding/single-byte/index-iso-8859-6.txt +0 -89
  482. data/vendor/lexbor/utils/lexbor/encoding/single-byte/index-iso-8859-7.txt +0 -131
  483. data/vendor/lexbor/utils/lexbor/encoding/single-byte/index-iso-8859-8.txt +0 -98
  484. data/vendor/lexbor/utils/lexbor/encoding/single-byte/index-koi8-r.txt +0 -134
  485. data/vendor/lexbor/utils/lexbor/encoding/single-byte/index-koi8-u.txt +0 -134
  486. data/vendor/lexbor/utils/lexbor/encoding/single-byte/index-macintosh.txt +0 -134
  487. data/vendor/lexbor/utils/lexbor/encoding/single-byte/index-windows-1250.txt +0 -134
  488. data/vendor/lexbor/utils/lexbor/encoding/single-byte/index-windows-1251.txt +0 -134
  489. data/vendor/lexbor/utils/lexbor/encoding/single-byte/index-windows-1252.txt +0 -134
  490. data/vendor/lexbor/utils/lexbor/encoding/single-byte/index-windows-1253.txt +0 -131
  491. data/vendor/lexbor/utils/lexbor/encoding/single-byte/index-windows-1254.txt +0 -134
  492. data/vendor/lexbor/utils/lexbor/encoding/single-byte/index-windows-1255.txt +0 -124
  493. data/vendor/lexbor/utils/lexbor/encoding/single-byte/index-windows-1256.txt +0 -134
  494. data/vendor/lexbor/utils/lexbor/encoding/single-byte/index-windows-1257.txt +0 -132
  495. data/vendor/lexbor/utils/lexbor/encoding/single-byte/index-windows-1258.txt +0 -134
  496. data/vendor/lexbor/utils/lexbor/encoding/single-byte/index-windows-874.txt +0 -126
  497. data/vendor/lexbor/utils/lexbor/encoding/single-byte/index-x-mac-cyrillic.txt +0 -134
  498. data/vendor/lexbor/utils/lexbor/encoding/single-byte.py +0 -179
  499. data/vendor/lexbor/utils/lexbor/encoding/tmp/buffer_single_byte_test.c +0 -123
  500. data/vendor/lexbor/utils/lexbor/encoding/tmp/const.h +0 -19
  501. data/vendor/lexbor/utils/lexbor/encoding/tmp/multi.c +0 -20
  502. data/vendor/lexbor/utils/lexbor/encoding/tmp/multi.h +0 -37
  503. data/vendor/lexbor/utils/lexbor/encoding/tmp/range.c +0 -17
  504. data/vendor/lexbor/utils/lexbor/encoding/tmp/range.h +0 -35
  505. data/vendor/lexbor/utils/lexbor/encoding/tmp/res.c +0 -22
  506. data/vendor/lexbor/utils/lexbor/encoding/tmp/res.h +0 -34
  507. data/vendor/lexbor/utils/lexbor/encoding/tmp/single.c +0 -20
  508. data/vendor/lexbor/utils/lexbor/encoding/tmp/single.h +0 -37
  509. data/vendor/lexbor/utils/lexbor/encoding/tmp/single_byte_test.c +0 -114
  510. data/vendor/lexbor/utils/lexbor/grammar/CMakeLists.txt +0 -63
  511. data/vendor/lexbor/utils/lexbor/grammar/base.h +0 -89
  512. data/vendor/lexbor/utils/lexbor/grammar/document.h +0 -34
  513. data/vendor/lexbor/utils/lexbor/grammar/grammar.c +0 -243
  514. data/vendor/lexbor/utils/lexbor/grammar/json.c +0 -368
  515. data/vendor/lexbor/utils/lexbor/grammar/json.h +0 -48
  516. data/vendor/lexbor/utils/lexbor/grammar/node.c +0 -653
  517. data/vendor/lexbor/utils/lexbor/grammar/node.h +0 -120
  518. data/vendor/lexbor/utils/lexbor/grammar/parser.c +0 -724
  519. data/vendor/lexbor/utils/lexbor/grammar/parser.h +0 -75
  520. data/vendor/lexbor/utils/lexbor/grammar/test.c +0 -1762
  521. data/vendor/lexbor/utils/lexbor/grammar/test.h +0 -35
  522. data/vendor/lexbor/utils/lexbor/grammar/token.c +0 -258
  523. data/vendor/lexbor/utils/lexbor/grammar/token.h +0 -91
  524. data/vendor/lexbor/utils/lexbor/grammar/tokenizer.c +0 -706
  525. data/vendor/lexbor/utils/lexbor/grammar/tokenizer.h +0 -73
  526. data/vendor/lexbor/utils/lexbor/html/convert_html5_tests.py +0 -162
  527. data/vendor/lexbor/utils/lexbor/html/data/entities.json +0 -2233
  528. data/vendor/lexbor/utils/lexbor/html/insertion_mode.py +0 -61
  529. data/vendor/lexbor/utils/lexbor/html/reorder_html5_tests_tokenizer_errors.py +0 -137
  530. data/vendor/lexbor/utils/lexbor/html/tmp/insertion_mode.c +0 -53
  531. data/vendor/lexbor/utils/lexbor/html/tmp/insertion_mode.h +0 -18
  532. data/vendor/lexbor/utils/lexbor/html/tmp/tokenizer_res.h +0 -20
  533. data/vendor/lexbor/utils/lexbor/html/tokenizer_entities_bst.py +0 -209
  534. data/vendor/lexbor/utils/lexbor/html/tokenizer_entities_switch.py +0 -162
  535. data/vendor/lexbor/utils/lexbor/html/tokenizer_parse_error.pl +0 -97
  536. data/vendor/lexbor/utils/lexbor/lexbor/LXB.py +0 -498
  537. data/vendor/lexbor/utils/lexbor/lexbor/res.py +0 -130
  538. data/vendor/lexbor/utils/lexbor/tag_ns/data/interfaces.json +0 -98
  539. data/vendor/lexbor/utils/lexbor/tag_ns/data/tags.json +0 -371
  540. data/vendor/lexbor/utils/lexbor/tag_ns/interfaces.py +0 -175
  541. data/vendor/lexbor/utils/lexbor/tag_ns/tags.py +0 -808
  542. data/vendor/lexbor/utils/lexbor/tag_ns/tmp/html_attribute_steps_res.h +0 -21
  543. data/vendor/lexbor/utils/lexbor/tag_ns/tmp/html_element_steps_res.h +0 -21
  544. data/vendor/lexbor/utils/lexbor/tag_ns/tmp/html_interface_res.h +0 -29
  545. data/vendor/lexbor/utils/lexbor/tag_ns/tmp/html_open_elements_res.h +0 -21
  546. data/vendor/lexbor/utils/lexbor/tag_ns/tmp/html_tag_res.h +0 -25
  547. data/vendor/lexbor/utils/lexbor/tag_ns/tmp/interface.c +0 -36
  548. data/vendor/lexbor/utils/lexbor/tag_ns/tmp/interface.h +0 -33
  549. data/vendor/lexbor/utils/lexbor/tag_ns/tmp/ns_const.h +0 -26
  550. data/vendor/lexbor/utils/lexbor/tag_ns/tmp/ns_res.h +0 -29
  551. data/vendor/lexbor/utils/lexbor/tag_ns/tmp/open_elements_res.h +0 -21
  552. data/vendor/lexbor/utils/lexbor/tag_ns/tmp/steps_res.h +0 -23
  553. data/vendor/lexbor/utils/lexbor/tag_ns/tmp/tag_const.h +0 -26
  554. data/vendor/lexbor/utils/lexbor/tag_ns/tmp/tag_res.h +0 -26
  555. data/vendor/lexbor/utils/lexbor/tag_ns/tmp/test/ns_res.c +0 -44
  556. data/vendor/lexbor/utils/lexbor/tag_ns/tmp/test/tag_res.c +0 -45
  557. data/vendor/lexbor/utils/lexbor/unicode/build.pl +0 -1323
  558. data/vendor/lexbor/utils/lexbor/unicode/idna_test.pl +0 -398
  559. data/vendor/lexbor/utils/lexbor/unicode/normalization_test.pl +0 -157
  560. data/vendor/lexbor/utils/wasm/gen_constants.py +0 -186
  561. data/vendor/lexbor/wasm/CMakeLists.txt +0 -18
  562. data/vendor/lexbor/wasm/lexbor/engine/CMakeLists.txt +0 -21
  563. data/vendor/lexbor/wasm/lexbor/engine/index.html +0 -406
  564. data/vendor/lexbor/wasm/lexbor/engine/lexbor.c +0 -1340
  565. data/vendor/lexbor/wasm/lexbor/html/CMakeLists.txt +0 -11
  566. data/vendor/lexbor/wasm/lexbor/html/parse.c +0 -58
@@ -1,368 +0,0 @@
1
- /*
2
- * Copyright (C) 2020 Alexander Borisov
3
- *
4
- * Author: Alexander Borisov <borisov@lexbor.com>
5
- */
6
-
7
- #include "lexbor/grammar/json.h"
8
- #include "lexbor/grammar/node.h"
9
-
10
- #include "lexbor/core/conv.h"
11
-
12
- #include "lexbor/html/serialize.h"
13
-
14
-
15
- #define lxb_grammar_json_escape_cb_m(text, length) \
16
- do { \
17
- status = lxb_grammar_json_escape((const lxb_char_t *) (text), length, \
18
- func, ctx); \
19
- if (status != LXB_STATUS_OK) { \
20
- return status; \
21
- } \
22
- } \
23
- while (0)
24
-
25
-
26
- lxb_status_t
27
- lxb_grammar_json_init(lxb_grammar_json_t *json)
28
- {
29
- if (json == NULL) {
30
- return LXB_STATUS_ERROR_OBJECT_IS_NULL;
31
- }
32
-
33
- json->scope_root = NULL;
34
-
35
- return lexbor_avl_init(&json->avl, 32, sizeof(lexbor_avl_node_t));
36
- }
37
-
38
- lxb_grammar_json_t *
39
- lxb_grammar_json_destroy(lxb_grammar_json_t *json, bool self_destroy)
40
- {
41
- if (json == NULL) {
42
- return NULL;
43
- }
44
-
45
- lexbor_avl_destroy(&json->avl, false);
46
-
47
- if (self_destroy) {
48
- return lexbor_free(json);
49
- }
50
-
51
- return json;
52
- }
53
-
54
- lxb_inline lxb_status_t
55
- lxb_grammar_json_escape(const lxb_char_t *data, size_t length,
56
- lxb_grammar_serialize_cb_f func, void *ctx)
57
- {
58
- lxb_status_t status;
59
- const lxb_char_t *begin = data;
60
- const lxb_char_t *end = data + length;
61
-
62
- while (data < end) {
63
- switch (*data) {
64
- case '"':
65
- case '\\':
66
- lxb_grammar_cb_m(begin, (data - begin));
67
- lxb_grammar_cb_m("\\", 1);
68
-
69
- begin = data;
70
- break;
71
- }
72
-
73
- data++;
74
- }
75
-
76
- if (begin < data) {
77
- lxb_grammar_cb_m(begin, (end - begin));
78
- }
79
-
80
- return LXB_STATUS_OK;
81
- }
82
-
83
- lxb_inline lxb_status_t
84
- lxb_grammar_json_ast_combinator(const lxb_grammar_node_t *group,
85
- lxb_grammar_serialize_cb_f func, void *ctx)
86
- {
87
- lxb_status_t status;
88
-
89
- switch (group->combinator) {
90
- case LXB_GRAMMAR_COMBINATOR_AND:
91
- lxb_grammar_cb_m("&&", 2);
92
- break;
93
-
94
- case LXB_GRAMMAR_COMBINATOR_OR:
95
- lxb_grammar_cb_m("||", 2);
96
- break;
97
-
98
- case LXB_GRAMMAR_COMBINATOR_ONE_OF:
99
- lxb_grammar_cb_m("|", 1);
100
- break;
101
-
102
- default:
103
- lxb_grammar_cb_m(" ", 1);
104
- break;
105
- }
106
-
107
- return LXB_STATUS_OK;
108
- }
109
-
110
- lxb_status_t
111
- lxb_grammar_json_ast(const lxb_grammar_node_t *root, size_t indent,
112
- lxb_grammar_serialize_cb_f func, void *ctx)
113
- {
114
- lxb_status_t status;
115
- const lxb_grammar_node_t *node;
116
-
117
- node = root;
118
-
119
- if (node->type == LXB_GRAMMAR_NODE_ROOT) {
120
- node = node->first_child;
121
- }
122
-
123
- lxb_grammar_cb_m("[\n", 2);
124
-
125
- indent++;
126
-
127
- while (node != NULL) {
128
- lxb_grammar_indent_m(indent);
129
- lxb_grammar_cb_m("{\n", 2);
130
-
131
- status = lxb_grammar_json_ast_node_attributes(node, indent + 1,
132
- func, ctx);
133
- if (status != LXB_STATUS_OK) {
134
- return status;
135
- }
136
-
137
- if (node->type == LXB_GRAMMAR_NODE_DECLARATION
138
- || node->type == LXB_GRAMMAR_NODE_GROUP)
139
- {
140
- lxb_grammar_cb_m(",\n", 2);
141
- lxb_grammar_indent_m(indent + 1);
142
-
143
- if (node->first_child != NULL) {
144
- lxb_grammar_cb_m("\"nodes\": [\n", sizeof("\"nodes\": [\n") - 1);
145
-
146
- indent += 2;
147
-
148
- node = node->first_child;
149
- continue;
150
- }
151
-
152
- lxb_grammar_cb_m("\"nodes\": []\n", sizeof("\"nodes\": []\n") - 1);
153
- }
154
- else {
155
- lxb_grammar_cb_m("\n", 1);
156
- lxb_grammar_indent_m(indent);
157
-
158
- if (node->next == NULL) {
159
- lxb_grammar_cb_m("}\n", 2);
160
- }
161
- else {
162
- lxb_grammar_cb_m("},\n", 3);
163
- }
164
- }
165
-
166
- while (node->next == NULL) {
167
- node = node->parent;
168
-
169
- if (node == NULL) {
170
- return LXB_STATUS_ERROR;
171
- }
172
-
173
- if (node == root) {
174
- lxb_grammar_indent_m(indent - 1);
175
- lxb_grammar_cb_m("]", 1);
176
-
177
- return LXB_STATUS_OK;
178
- }
179
-
180
- lxb_grammar_indent_m(indent - 1);
181
- lxb_grammar_cb_m("]\n", 2);
182
-
183
- lxb_grammar_indent_m(indent - 2);
184
-
185
- if (node->next == NULL) {
186
- lxb_grammar_cb_m("}\n", 2);
187
- }
188
- else {
189
- lxb_grammar_cb_m("},\n", 3);
190
- }
191
-
192
- indent -= 2;
193
- }
194
-
195
- node = node->next;
196
- }
197
-
198
- lxb_grammar_cb_m("]", 1);
199
-
200
- return LXB_STATUS_OK;
201
- }
202
-
203
- lxb_status_t
204
- lxb_grammar_json_ast_node_attributes(const lxb_grammar_node_t *node, size_t indent,
205
- lxb_grammar_serialize_cb_f func, void *ctx)
206
- {
207
- lxb_status_t status;
208
-
209
- size_t len;
210
- lxb_char_t buf[32];
211
-
212
- /* id */
213
- lxb_grammar_indent_m(indent);
214
-
215
- if (node->type == LXB_GRAMMAR_NODE_DECLARATION) {
216
- lxb_grammar_cb_m("\"id\": ", sizeof("\"id\": ") - 1);
217
-
218
- status = lxb_grammar_json_ast_node_value(node, func, ctx);
219
- if (status != LXB_STATUS_OK) {
220
- return status;
221
- }
222
-
223
- lxb_grammar_cb_m(",\n", 2);
224
- }
225
- else {
226
- lxb_grammar_cb_m("\"id\": \"", sizeof("\"id\": \"") - 1);
227
-
228
- len = lexbor_conv_float_to_data((double) node->index, buf, sizeof(buf));
229
-
230
- lxb_grammar_cb_m(buf, len);
231
- lxb_grammar_cb_m("\",\n", 3);
232
- }
233
-
234
- /* title */
235
- if (node->type != LXB_GRAMMAR_NODE_GROUP) {
236
- lxb_grammar_indent_m(indent);
237
- lxb_grammar_cb_m("\"title\": ", 9);
238
-
239
- status = lxb_grammar_json_ast_node_value(node, func, ctx);
240
- if (status != LXB_STATUS_OK) {
241
- return status;
242
- }
243
-
244
- lxb_grammar_cb_m(",\n", 2);
245
- }
246
-
247
- /* type */
248
- lxb_grammar_indent_m(indent);
249
- lxb_grammar_cb_m("\"type\": ", sizeof("\"type\": ") - 1);
250
-
251
- len = lexbor_conv_float_to_data((double) (uintptr_t) node->type,
252
- buf, sizeof(buf));
253
- lxb_grammar_cb_m(buf, len);
254
- lxb_grammar_cb_m(",\n", 2);
255
-
256
- /* combinator */
257
- if (node->type == LXB_GRAMMAR_NODE_GROUP
258
- || node->type == LXB_GRAMMAR_NODE_DECLARATION)
259
- {
260
- lxb_grammar_indent_m(indent);
261
- lxb_grammar_cb_m("\"combinator\": \"",
262
- sizeof("\"combinator\": \"") - 1);
263
-
264
- status = lxb_grammar_json_ast_combinator(node, func, ctx);
265
- if (status != LXB_STATUS_OK) {
266
- return status;
267
- }
268
-
269
- lxb_grammar_cb_m("\",\n", 3);
270
- }
271
-
272
- /* multiplier */
273
- static const lxb_char_t lxb_multiplier_b[] = "\"multiplier\": {\"start\": ";
274
- static const lxb_char_t lxb_multiplier_m[] = ", \"stop\": ";
275
- static const lxb_char_t lxb_multiplier_e[] = "}";
276
-
277
- lxb_grammar_indent_m(indent);
278
-
279
- if (node->multiplier.start == 1 && node->multiplier.stop == 1) {
280
- lxb_grammar_cb_m("\"multiplier\": null",
281
- sizeof("\"multiplier\": null") - 1);
282
- }
283
- else {
284
- lxb_grammar_cb_m(lxb_multiplier_b, sizeof(lxb_multiplier_b) - 1);
285
-
286
- len = lexbor_conv_float_to_data((double) node->multiplier.start,
287
- buf, sizeof(buf));
288
- lxb_grammar_cb_m(buf, len);
289
-
290
- lxb_grammar_cb_m(lxb_multiplier_m, sizeof(lxb_multiplier_m) - 1);
291
-
292
- len = lexbor_conv_float_to_data((double) node->multiplier.stop,
293
- buf, sizeof(buf));
294
- lxb_grammar_cb_m(buf, len);
295
-
296
- lxb_grammar_cb_m(lxb_multiplier_e, sizeof(lxb_multiplier_e) - 1);
297
- }
298
-
299
- lxb_grammar_cb_m(",\n", 2);
300
-
301
- /* is_comma_separated */
302
- lxb_grammar_indent_m(indent);
303
- lxb_grammar_cb_m("\"is_comma_separated\": ",
304
- sizeof("\"is_comma_separated\": ") - 1);
305
-
306
- if (node->is_comma) {
307
- lxb_grammar_cb_m("true", 4);
308
- }
309
- else {
310
- lxb_grammar_cb_m("false", 5);
311
- }
312
-
313
- return LXB_STATUS_OK;
314
- }
315
-
316
- lxb_status_t
317
- lxb_grammar_json_ast_node_value(const lxb_grammar_node_t *node,
318
- lxb_grammar_serialize_cb_f func, void *ctx)
319
- {
320
- size_t len;
321
- lxb_char_t buf[128];
322
- lxb_status_t status;
323
- const lxb_tag_data_t *tag_data;
324
-
325
- switch (node->type) {
326
- case LXB_GRAMMAR_NODE_STRING:
327
- case LXB_GRAMMAR_NODE_WHITESPACE:
328
- case LXB_GRAMMAR_NODE_DELIM:
329
- case LXB_GRAMMAR_NODE_UNQUOTED:
330
- lxb_grammar_cb_m("\"", 1);
331
-
332
- lxb_grammar_json_escape_cb_m(node->u.str.data, node->u.str.length);
333
-
334
- return func((lxb_char_t *) "\"", 1, ctx);
335
-
336
- case LXB_GRAMMAR_NODE_DECLARATION:
337
- case LXB_GRAMMAR_NODE_ELEMENT: {
338
- tag_data = lxb_tag_data_by_id(node->u.node->local_name);
339
- if (tag_data == NULL) {
340
- return LXB_STATUS_ERROR;
341
- }
342
-
343
- lxb_grammar_cb_m("\"", 1);
344
-
345
- status = lxb_grammar_json_escape(lexbor_hash_entry_str(&tag_data->entry),
346
- tag_data->entry.length, func, ctx);
347
- if (status != LXB_STATUS_OK) {
348
- return status;
349
- }
350
-
351
- return func((lxb_char_t *) "\"", 1, ctx);
352
- }
353
-
354
- case LXB_GRAMMAR_NODE_NUMBER:
355
- len = lexbor_conv_float_to_data(node->u.num, buf,
356
- (sizeof(buf) / sizeof(lxb_char_t)));
357
- return func(buf, len, ctx);
358
-
359
- case LXB_GRAMMAR_NODE_LAST_ENTRY:
360
- lxb_grammar_cb_m("\"#end\"", 6);
361
- break;
362
-
363
- default:
364
- break;
365
- }
366
-
367
- return LXB_STATUS_OK;
368
- }
@@ -1,48 +0,0 @@
1
- /*
2
- * Copyright (C) 2020-2022 Alexander Borisov
3
- *
4
- * Author: Alexander Borisov <borisov@lexbor.com>
5
- */
6
-
7
- #ifndef LEXBOR_GRAMMAR_JSON_H
8
- #define LEXBOR_GRAMMAR_JSON_H
9
-
10
- #ifdef __cplusplus
11
- extern "C" {
12
- #endif
13
-
14
- #include "lexbor/grammar/base.h"
15
- #include "lexbor/core/avl.h"
16
-
17
-
18
- typedef struct {
19
- lexbor_avl_t avl;
20
- lexbor_avl_node_t *scope_root;
21
- }
22
- lxb_grammar_json_t;
23
-
24
-
25
- LXB_API lxb_status_t
26
- lxb_grammar_json_init(lxb_grammar_json_t *json);
27
-
28
- LXB_API lxb_grammar_json_t *
29
- lxb_grammar_json_destroy(lxb_grammar_json_t *json, bool self_destroy);
30
-
31
- LXB_API lxb_status_t
32
- lxb_grammar_json_ast(const lxb_grammar_node_t *root, size_t indent,
33
- lxb_grammar_serialize_cb_f func, void *ctx);
34
-
35
- LXB_API lxb_status_t
36
- lxb_grammar_json_ast_node_attributes(const lxb_grammar_node_t *node, size_t indent,
37
- lxb_grammar_serialize_cb_f func, void *ctx);
38
-
39
- LXB_API lxb_status_t
40
- lxb_grammar_json_ast_node_value(const lxb_grammar_node_t *node,
41
- lxb_grammar_serialize_cb_f func, void *ctx);
42
-
43
-
44
- #ifdef __cplusplus
45
- } /* extern "C" */
46
- #endif
47
-
48
- #endif /* LEXBOR_GRAMMAR_JSON_H */