@port-labs/jq-node-bindings 0.0.13 → 0.0.15-dev1

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 (453) hide show
  1. package/README.md +6 -1
  2. package/binding.gyp +41 -19
  3. package/configure +1 -1
  4. package/deps/jq/.gitattributes +12 -0
  5. package/deps/jq/AUTHORS +149 -43
  6. package/deps/jq/COPYING +75 -1
  7. package/deps/jq/ChangeLog +2 -2
  8. package/deps/jq/Makefile.am +106 -65
  9. package/deps/jq/NEWS.md +391 -0
  10. package/deps/jq/README.md +54 -52
  11. package/deps/jq/SECURITY.md +7 -0
  12. package/deps/jq/compile-ios.sh +106 -102
  13. package/deps/jq/configure.ac +72 -59
  14. package/deps/jq/docs/Pipfile +14 -0
  15. package/deps/jq/docs/Pipfile.lock +415 -0
  16. package/deps/jq/docs/README.md +15 -14
  17. package/deps/jq/docs/build_manpage.py +251 -0
  18. package/deps/jq/docs/build_mantests.py +21 -0
  19. package/deps/jq/docs/build_website.py +95 -0
  20. package/deps/jq/docs/content/download/default.yml +249 -0
  21. package/deps/jq/docs/content/index.yml +83 -0
  22. package/deps/jq/docs/content/{3.manual/v1.6 → manual/dev}/manual.yml +992 -452
  23. package/deps/jq/docs/content/{3.manual → manual}/v1.3/manual.yml +105 -116
  24. package/deps/jq/docs/content/{3.manual → manual}/v1.4/manual.yml +122 -129
  25. package/deps/jq/docs/content/{3.manual → manual}/v1.5/manual.yml +313 -262
  26. package/deps/jq/docs/content/{3.manual → manual/v1.6}/manual.yml +407 -332
  27. package/deps/jq/docs/content/manual/v1.7/manual.yml +3697 -0
  28. package/deps/jq/docs/content/tutorial/default.yml +337 -0
  29. package/deps/jq/docs/manual_schema.yml +60 -0
  30. package/deps/jq/docs/public/css/style.css +99 -0
  31. package/deps/jq/docs/public/icon.png +0 -0
  32. package/deps/jq/docs/public/icon.svg +1 -0
  33. package/deps/jq/docs/public/jq.svg +1 -0
  34. package/deps/jq/docs/public/js/manual-search.js +31 -49
  35. package/deps/jq/docs/templates/default.html.j2 +31 -0
  36. package/deps/jq/docs/templates/index.html.j2 +58 -0
  37. package/deps/jq/docs/templates/manual.html.j2 +120 -0
  38. package/deps/jq/docs/templates/shared/_footer.html.j2 +14 -0
  39. package/deps/jq/docs/templates/shared/_head.html.j2 +23 -0
  40. package/deps/jq/docs/templates/shared/_navbar.html.j2 +40 -0
  41. package/deps/jq/docs/validate_manual_schema.py +19 -0
  42. package/deps/jq/jq.1.prebuilt +1102 -294
  43. package/deps/jq/jq.spec +2 -3
  44. package/deps/jq/libjq.pc.in +11 -0
  45. package/deps/jq/m4/ax_pthread.m4 +522 -0
  46. package/deps/jq/modules/oniguruma/.travis.yml +17 -0
  47. package/deps/jq/modules/oniguruma/CMakeLists.txt +206 -41
  48. package/deps/jq/modules/oniguruma/COPYING +23 -25
  49. package/deps/jq/modules/oniguruma/HISTORY +368 -23
  50. package/deps/jq/modules/oniguruma/Makefile.am +61 -7
  51. package/deps/jq/modules/oniguruma/README +34 -20
  52. package/deps/jq/modules/oniguruma/README.md +106 -33
  53. package/deps/jq/modules/oniguruma/README_japanese +183 -0
  54. package/deps/jq/modules/oniguruma/autogen.sh +9 -0
  55. package/deps/jq/modules/oniguruma/cmake/Config.cmake.in +4 -0
  56. package/deps/jq/modules/oniguruma/configure.ac +66 -55
  57. package/deps/jq/modules/oniguruma/doc/API +485 -42
  58. package/deps/jq/modules/oniguruma/doc/API.ja +732 -293
  59. package/deps/jq/modules/oniguruma/doc/CALLOUTS.API +397 -0
  60. package/deps/jq/modules/oniguruma/doc/CALLOUTS.API.ja +393 -0
  61. package/deps/jq/modules/oniguruma/doc/CALLOUTS.BUILTIN +95 -0
  62. package/deps/jq/modules/oniguruma/doc/CALLOUTS.BUILTIN.ja +93 -0
  63. package/deps/jq/modules/oniguruma/doc/FAQ +3 -3
  64. package/deps/jq/modules/oniguruma/doc/FAQ.ja +8 -8
  65. package/deps/jq/modules/oniguruma/doc/RE +223 -63
  66. package/deps/jq/modules/oniguruma/doc/RE.ja +420 -265
  67. package/deps/jq/modules/oniguruma/doc/SYNTAX.md +1091 -0
  68. package/deps/jq/modules/oniguruma/doc/UNICODE_PROPERTIES +840 -697
  69. package/deps/jq/modules/oniguruma/harnesses/ascii_compatible.dict +113 -0
  70. package/deps/jq/modules/oniguruma/harnesses/base.c +749 -0
  71. package/deps/jq/modules/oniguruma/harnesses/deluxe.c +206 -0
  72. package/deps/jq/modules/oniguruma/harnesses/dict_conv.py +72 -0
  73. package/deps/jq/modules/oniguruma/harnesses/fuzzer.options +2 -0
  74. package/deps/jq/modules/oniguruma/harnesses/libfuzzer-onig.cpp +45 -0
  75. package/deps/jq/modules/oniguruma/harnesses/regset.c +392 -0
  76. package/deps/jq/modules/oniguruma/index.html +16 -5
  77. package/deps/jq/modules/oniguruma/index_ja.html +16 -5
  78. package/deps/jq/modules/oniguruma/make_win.bat +5 -0
  79. package/deps/jq/modules/oniguruma/make_win32.bat +5 -3
  80. package/deps/jq/modules/oniguruma/make_win64.bat +5 -3
  81. package/deps/jq/modules/oniguruma/onig-config.cmake.in +80 -0
  82. package/deps/jq/modules/oniguruma/onig-config.in +1 -1
  83. package/deps/jq/modules/oniguruma/oniguruma.pc.cmake.in +1 -1
  84. package/deps/jq/modules/oniguruma/oniguruma.pc.in +0 -1
  85. package/deps/jq/modules/oniguruma/sample/CMakeLists.txt +9 -2
  86. package/deps/jq/modules/oniguruma/sample/Makefile.am +24 -5
  87. package/deps/jq/modules/oniguruma/sample/bug_fix.c +13 -51
  88. package/deps/jq/modules/oniguruma/sample/callback_each_match.c +168 -0
  89. package/deps/jq/modules/oniguruma/sample/callout.c +268 -0
  90. package/deps/jq/modules/oniguruma/sample/count.c +125 -0
  91. package/deps/jq/modules/oniguruma/sample/crnl.c +6 -4
  92. package/deps/jq/modules/oniguruma/sample/echo.c +136 -0
  93. package/deps/jq/modules/oniguruma/sample/encode.c +53 -146
  94. package/deps/jq/modules/oniguruma/sample/listcap.c +18 -10
  95. package/deps/jq/modules/oniguruma/sample/names.c +10 -6
  96. package/deps/jq/modules/oniguruma/sample/posix.c +13 -2
  97. package/deps/jq/modules/oniguruma/sample/regset.c +95 -0
  98. package/deps/jq/modules/oniguruma/sample/scan.c +20 -6
  99. package/deps/jq/modules/oniguruma/sample/simple.c +8 -4
  100. package/deps/jq/modules/oniguruma/sample/sql.c +13 -8
  101. package/deps/jq/modules/oniguruma/sample/syntax.c +11 -10
  102. package/deps/jq/modules/oniguruma/sample/user_property.c +12 -7
  103. package/deps/jq/modules/oniguruma/src/Makefile.am +41 -15
  104. package/deps/jq/modules/oniguruma/src/Makefile.windows +196 -183
  105. package/deps/jq/modules/oniguruma/src/ascii.c +64 -7
  106. package/deps/jq/modules/oniguruma/src/big5.c +25 -15
  107. package/deps/jq/modules/oniguruma/src/config.h.cmake.in +7 -22
  108. package/deps/jq/modules/oniguruma/src/config.h.win32 +56 -84
  109. package/deps/jq/modules/oniguruma/src/config.h.win64 +56 -84
  110. package/deps/jq/modules/oniguruma/src/config.h.windows.in +62 -0
  111. package/deps/jq/modules/oniguruma/src/cp1251.c +14 -8
  112. package/deps/jq/modules/oniguruma/src/euc_jp.c +28 -30
  113. package/deps/jq/modules/oniguruma/src/euc_jp_prop.c +25 -32
  114. package/deps/jq/modules/oniguruma/src/euc_jp_prop.gperf +1 -2
  115. package/deps/jq/modules/oniguruma/src/euc_kr.c +27 -15
  116. package/deps/jq/modules/oniguruma/src/euc_tw.c +40 -17
  117. package/deps/jq/modules/oniguruma/src/gb18030.c +177 -119
  118. package/deps/jq/modules/oniguruma/src/gperf_fold_key_conv.py +12 -8
  119. package/deps/jq/modules/oniguruma/src/gperf_unfold_key_conv.py +8 -6
  120. package/deps/jq/modules/oniguruma/src/iso8859_1.c +92 -91
  121. package/deps/jq/modules/oniguruma/src/iso8859_10.c +13 -29
  122. package/deps/jq/modules/oniguruma/src/iso8859_11.c +4 -2
  123. package/deps/jq/modules/oniguruma/src/iso8859_13.c +13 -33
  124. package/deps/jq/modules/oniguruma/src/iso8859_14.c +13 -30
  125. package/deps/jq/modules/oniguruma/src/iso8859_15.c +13 -34
  126. package/deps/jq/modules/oniguruma/src/iso8859_16.c +13 -29
  127. package/deps/jq/modules/oniguruma/src/iso8859_2.c +13 -29
  128. package/deps/jq/modules/oniguruma/src/iso8859_3.c +13 -33
  129. package/deps/jq/modules/oniguruma/src/iso8859_4.c +13 -32
  130. package/deps/jq/modules/oniguruma/src/iso8859_5.c +16 -23
  131. package/deps/jq/modules/oniguruma/src/iso8859_6.c +4 -2
  132. package/deps/jq/modules/oniguruma/src/iso8859_7.c +14 -29
  133. package/deps/jq/modules/oniguruma/src/iso8859_8.c +4 -2
  134. package/deps/jq/modules/oniguruma/src/iso8859_9.c +13 -33
  135. package/deps/jq/modules/oniguruma/src/koi8.c +14 -27
  136. package/deps/jq/modules/oniguruma/src/koi8_r.c +12 -19
  137. package/deps/jq/modules/oniguruma/src/make_property.sh +21 -0
  138. package/deps/jq/modules/oniguruma/src/make_unicode_egcb.sh +7 -0
  139. package/deps/jq/modules/oniguruma/src/make_unicode_egcb_data.py +267 -0
  140. package/deps/jq/modules/oniguruma/src/make_unicode_fold.sh +25 -11
  141. package/deps/jq/modules/oniguruma/src/make_unicode_fold_data.py +206 -26
  142. package/deps/jq/modules/oniguruma/src/make_unicode_property.sh +19 -10
  143. package/deps/jq/modules/oniguruma/src/make_unicode_property_data.py +474 -375
  144. package/deps/jq/modules/oniguruma/src/make_unicode_wb.sh +7 -0
  145. package/deps/jq/modules/oniguruma/src/make_unicode_wb_data.py +267 -0
  146. package/deps/jq/modules/oniguruma/src/mktable.c +28 -24
  147. package/deps/jq/modules/oniguruma/src/onig_init.c +2 -2
  148. package/deps/jq/modules/oniguruma/src/oniggnu.h +7 -5
  149. package/deps/jq/modules/oniguruma/src/onigposix.h +40 -16
  150. package/deps/jq/modules/oniguruma/src/oniguruma.h +357 -107
  151. package/deps/jq/modules/oniguruma/src/regcomp.c +6214 -3933
  152. package/deps/jq/modules/oniguruma/src/regenc.c +197 -120
  153. package/deps/jq/modules/oniguruma/src/regenc.h +106 -63
  154. package/deps/jq/modules/oniguruma/src/regerror.c +112 -91
  155. package/deps/jq/modules/oniguruma/src/regexec.c +4876 -2010
  156. package/deps/jq/modules/oniguruma/src/regext.c +8 -8
  157. package/deps/jq/modules/oniguruma/src/reggnu.c +13 -17
  158. package/deps/jq/modules/oniguruma/src/regint.h +757 -491
  159. package/deps/jq/modules/oniguruma/src/regparse.c +7204 -3240
  160. package/deps/jq/modules/oniguruma/src/regparse.h +361 -218
  161. package/deps/jq/modules/oniguruma/src/regposerr.c +49 -9
  162. package/deps/jq/modules/oniguruma/src/regposix.c +106 -24
  163. package/deps/jq/modules/oniguruma/src/regsyntax.c +66 -13
  164. package/deps/jq/modules/oniguruma/src/regtrav.c +1 -1
  165. package/deps/jq/modules/oniguruma/src/regversion.c +6 -4
  166. package/deps/jq/modules/oniguruma/src/sjis.c +23 -52
  167. package/deps/jq/modules/oniguruma/src/sjis_prop.c +25 -32
  168. package/deps/jq/modules/oniguruma/src/sjis_prop.gperf +1 -2
  169. package/deps/jq/modules/oniguruma/src/st.c +248 -249
  170. package/deps/jq/modules/oniguruma/src/st.h +4 -5
  171. package/deps/jq/modules/oniguruma/src/unicode.c +869 -294
  172. package/deps/jq/modules/oniguruma/src/unicode_egcb_data.c +1419 -0
  173. package/deps/jq/modules/oniguruma/src/unicode_fold1_key.c +1829 -1300
  174. package/deps/jq/modules/oniguruma/src/unicode_fold2_key.c +32 -9
  175. package/deps/jq/modules/oniguruma/src/unicode_fold3_key.c +32 -9
  176. package/deps/jq/modules/oniguruma/src/unicode_fold_data.c +1210 -984
  177. package/deps/jq/modules/oniguruma/src/unicode_property_data.c +22480 -15198
  178. package/deps/jq/modules/oniguruma/src/unicode_property_data_posix.c +1463 -591
  179. package/deps/jq/modules/oniguruma/src/unicode_unfold_key.c +1958 -1418
  180. package/deps/jq/modules/oniguruma/src/unicode_wb_data.c +1106 -0
  181. package/deps/jq/modules/oniguruma/src/utf16_be.c +90 -49
  182. package/deps/jq/modules/oniguruma/src/utf16_le.c +80 -49
  183. package/deps/jq/modules/oniguruma/src/utf32_be.c +14 -42
  184. package/deps/jq/modules/oniguruma/src/utf32_le.c +13 -40
  185. package/deps/jq/modules/oniguruma/src/utf8.c +33 -78
  186. package/deps/jq/modules/oniguruma/test/CMakeLists.txt +55 -0
  187. package/deps/jq/modules/oniguruma/test/Makefile.am +65 -10
  188. package/deps/jq/modules/oniguruma/test/test.sh +17 -0
  189. package/deps/jq/modules/oniguruma/test/test_back.c +1450 -0
  190. package/deps/jq/modules/oniguruma/test/test_options.c +228 -0
  191. package/deps/jq/modules/oniguruma/test/test_regset.c +466 -0
  192. package/deps/jq/modules/oniguruma/test/test_syntax.c +365 -0
  193. package/deps/jq/modules/oniguruma/test/test_utf8.c +1761 -0
  194. package/deps/jq/modules/oniguruma/test/testc.c +128 -88
  195. package/deps/jq/modules/oniguruma/test/testp.c +613 -0
  196. package/deps/jq/modules/oniguruma/test/testu.c +75 -28
  197. package/deps/jq/modules/oniguruma/tis-ci/stub.c +3 -0
  198. package/deps/jq/modules/oniguruma/tis-ci/test_back.config +26 -0
  199. package/deps/jq/modules/oniguruma/tis-ci/test_regset.config +20 -0
  200. package/deps/jq/modules/oniguruma/tis-ci/test_syntax.config +26 -0
  201. package/deps/jq/modules/oniguruma/tis-ci/test_utf8.config +25 -0
  202. package/deps/jq/modules/oniguruma/tis-ci/testc.config +26 -0
  203. package/deps/jq/modules/oniguruma/tis-ci/testu.config +24 -0
  204. package/deps/jq/modules/oniguruma/tis.config +1336 -0
  205. package/deps/jq/modules/oniguruma/windows/CMakeLists.txt +8 -0
  206. package/deps/jq/modules/oniguruma/windows/testc.c +865 -869
  207. package/deps/jq/scripts/update-website +6 -5
  208. package/deps/jq/scripts/version +10 -7
  209. package/deps/jq/sig/jq-release-new.key +29 -0
  210. package/deps/jq/sig/v1.4/sha256sum.txt +1 -0
  211. package/deps/jq/sig/v1.5/sha256sum.txt +2 -0
  212. package/deps/jq/sig/v1.5rc1/sha256sum.txt +1 -0
  213. package/deps/jq/sig/v1.5rc2/sha256sum.txt +2 -0
  214. package/deps/jq/sig/v1.6/sha256sum.txt +2 -0
  215. package/deps/jq/sig/v1.7/jq-1.7.tar.gz.asc +16 -0
  216. package/deps/jq/sig/v1.7/jq-1.7.zip.asc +16 -0
  217. package/deps/jq/sig/v1.7/jq-linux-amd64.asc +16 -0
  218. package/deps/jq/sig/v1.7/jq-linux-arm64.asc +16 -0
  219. package/deps/jq/sig/v1.7/jq-linux-armel.asc +16 -0
  220. package/deps/jq/sig/v1.7/jq-linux-armhf.asc +16 -0
  221. package/deps/jq/sig/v1.7/jq-linux-i386.asc +16 -0
  222. package/deps/jq/sig/v1.7/jq-linux-mips.asc +16 -0
  223. package/deps/jq/sig/v1.7/jq-linux-mips64.asc +16 -0
  224. package/deps/jq/sig/v1.7/jq-linux-mips64el.asc +16 -0
  225. package/deps/jq/sig/v1.7/jq-linux-mips64r6.asc +16 -0
  226. package/deps/jq/sig/v1.7/jq-linux-mips64r6el.asc +16 -0
  227. package/deps/jq/sig/v1.7/jq-linux-mipsel.asc +16 -0
  228. package/deps/jq/sig/v1.7/jq-linux-mipsr6.asc +16 -0
  229. package/deps/jq/sig/v1.7/jq-linux-mipsr6el.asc +16 -0
  230. package/deps/jq/sig/v1.7/jq-linux-powerpc.asc +16 -0
  231. package/deps/jq/sig/v1.7/jq-linux-ppc64el.asc +16 -0
  232. package/deps/jq/sig/v1.7/jq-linux-riscv64.asc +16 -0
  233. package/deps/jq/sig/v1.7/jq-linux-s390x.asc +16 -0
  234. package/deps/jq/sig/v1.7/jq-macos-amd64.asc +16 -0
  235. package/deps/jq/sig/v1.7/jq-macos-arm64.asc +16 -0
  236. package/deps/jq/sig/v1.7/jq-windows-amd64.exe.asc +16 -0
  237. package/deps/jq/sig/v1.7/jq-windows-i386.exe.asc +16 -0
  238. package/deps/jq/sig/v1.7/sha256sum.txt +23 -0
  239. package/deps/jq/sig/v1.7.1/jq-1.7.1.tar.gz.asc +16 -0
  240. package/deps/jq/sig/v1.7.1/jq-1.7.1.zip.asc +16 -0
  241. package/deps/jq/sig/v1.7.1/jq-linux-amd64.asc +16 -0
  242. package/deps/jq/sig/v1.7.1/jq-linux-arm64.asc +16 -0
  243. package/deps/jq/sig/v1.7.1/jq-linux-armel.asc +16 -0
  244. package/deps/jq/sig/v1.7.1/jq-linux-armhf.asc +16 -0
  245. package/deps/jq/sig/v1.7.1/jq-linux-i386.asc +16 -0
  246. package/deps/jq/sig/v1.7.1/jq-linux-mips.asc +16 -0
  247. package/deps/jq/sig/v1.7.1/jq-linux-mips64.asc +16 -0
  248. package/deps/jq/sig/v1.7.1/jq-linux-mips64el.asc +16 -0
  249. package/deps/jq/sig/v1.7.1/jq-linux-mips64r6.asc +16 -0
  250. package/deps/jq/sig/v1.7.1/jq-linux-mips64r6el.asc +16 -0
  251. package/deps/jq/sig/v1.7.1/jq-linux-mipsel.asc +16 -0
  252. package/deps/jq/sig/v1.7.1/jq-linux-mipsr6.asc +16 -0
  253. package/deps/jq/sig/v1.7.1/jq-linux-mipsr6el.asc +16 -0
  254. package/deps/jq/sig/v1.7.1/jq-linux-powerpc.asc +16 -0
  255. package/deps/jq/sig/v1.7.1/jq-linux-ppc64el.asc +16 -0
  256. package/deps/jq/sig/v1.7.1/jq-linux-riscv64.asc +16 -0
  257. package/deps/jq/sig/v1.7.1/jq-linux-s390x.asc +16 -0
  258. package/deps/jq/sig/v1.7.1/jq-linux64.asc +16 -0
  259. package/deps/jq/sig/v1.7.1/jq-macos-amd64.asc +16 -0
  260. package/deps/jq/sig/v1.7.1/jq-macos-arm64.asc +16 -0
  261. package/deps/jq/sig/v1.7.1/jq-osx-amd64.asc +16 -0
  262. package/deps/jq/sig/v1.7.1/jq-win64.exe.asc +16 -0
  263. package/deps/jq/sig/v1.7.1/jq-windows-amd64.exe.asc +16 -0
  264. package/deps/jq/sig/v1.7.1/jq-windows-i386.exe.asc +16 -0
  265. package/deps/jq/sig/v1.7.1/sha256sum.txt +26 -0
  266. package/deps/jq/sig/v1.7rc1/jq-1.7rc1.tar.gz.asc +16 -0
  267. package/deps/jq/sig/v1.7rc1/jq-1.7rc1.zip.asc +16 -0
  268. package/deps/jq/sig/v1.7rc1/jq-linux-amd64.asc +16 -0
  269. package/deps/jq/sig/v1.7rc1/jq-linux-arm64.asc +16 -0
  270. package/deps/jq/sig/v1.7rc1/jq-linux-armel.asc +16 -0
  271. package/deps/jq/sig/v1.7rc1/jq-linux-armhf.asc +16 -0
  272. package/deps/jq/sig/v1.7rc1/jq-linux-i386.asc +16 -0
  273. package/deps/jq/sig/v1.7rc1/jq-linux-mips.asc +16 -0
  274. package/deps/jq/sig/v1.7rc1/jq-linux-mips64.asc +16 -0
  275. package/deps/jq/sig/v1.7rc1/jq-linux-mips64el.asc +16 -0
  276. package/deps/jq/sig/v1.7rc1/jq-linux-mips64r6.asc +16 -0
  277. package/deps/jq/sig/v1.7rc1/jq-linux-mips64r6el.asc +16 -0
  278. package/deps/jq/sig/v1.7rc1/jq-linux-mipsel.asc +16 -0
  279. package/deps/jq/sig/v1.7rc1/jq-linux-mipsr6.asc +16 -0
  280. package/deps/jq/sig/v1.7rc1/jq-linux-mipsr6el.asc +16 -0
  281. package/deps/jq/sig/v1.7rc1/jq-linux-powerpc.asc +16 -0
  282. package/deps/jq/sig/v1.7rc1/jq-linux-ppc64el.asc +16 -0
  283. package/deps/jq/sig/v1.7rc1/jq-linux-riscv64.asc +16 -0
  284. package/deps/jq/sig/v1.7rc1/jq-linux-s390x.asc +16 -0
  285. package/deps/jq/sig/v1.7rc1/jq-macos-amd64.asc +16 -0
  286. package/deps/jq/sig/v1.7rc1/jq-macos-arm64.asc +16 -0
  287. package/deps/jq/sig/v1.7rc1/jq-windows-amd64.exe.asc +16 -0
  288. package/deps/jq/sig/v1.7rc1/jq-windows-i386.exe.asc +16 -0
  289. package/deps/jq/sig/v1.7rc1/sha256sum.txt +23 -0
  290. package/deps/jq/sig/v1.7rc2/jq-1.7rc2.tar.gz.asc +16 -0
  291. package/deps/jq/sig/v1.7rc2/jq-1.7rc2.zip.asc +16 -0
  292. package/deps/jq/sig/v1.7rc2/jq-linux-amd64.asc +16 -0
  293. package/deps/jq/sig/v1.7rc2/jq-linux-arm64.asc +16 -0
  294. package/deps/jq/sig/v1.7rc2/jq-linux-armel.asc +16 -0
  295. package/deps/jq/sig/v1.7rc2/jq-linux-armhf.asc +16 -0
  296. package/deps/jq/sig/v1.7rc2/jq-linux-i386.asc +16 -0
  297. package/deps/jq/sig/v1.7rc2/jq-linux-mips.asc +16 -0
  298. package/deps/jq/sig/v1.7rc2/jq-linux-mips64.asc +16 -0
  299. package/deps/jq/sig/v1.7rc2/jq-linux-mips64el.asc +16 -0
  300. package/deps/jq/sig/v1.7rc2/jq-linux-mips64r6.asc +16 -0
  301. package/deps/jq/sig/v1.7rc2/jq-linux-mips64r6el.asc +16 -0
  302. package/deps/jq/sig/v1.7rc2/jq-linux-mipsel.asc +16 -0
  303. package/deps/jq/sig/v1.7rc2/jq-linux-mipsr6.asc +16 -0
  304. package/deps/jq/sig/v1.7rc2/jq-linux-mipsr6el.asc +16 -0
  305. package/deps/jq/sig/v1.7rc2/jq-linux-powerpc.asc +16 -0
  306. package/deps/jq/sig/v1.7rc2/jq-linux-ppc64el.asc +16 -0
  307. package/deps/jq/sig/v1.7rc2/jq-linux-riscv64.asc +16 -0
  308. package/deps/jq/sig/v1.7rc2/jq-linux-s390x.asc +16 -0
  309. package/deps/jq/sig/v1.7rc2/jq-macos-amd64.asc +16 -0
  310. package/deps/jq/sig/v1.7rc2/jq-macos-arm64.asc +16 -0
  311. package/deps/jq/sig/v1.7rc2/jq-windows-amd64.exe.asc +16 -0
  312. package/deps/jq/sig/v1.7rc2/jq-windows-i386.exe.asc +16 -0
  313. package/deps/jq/sig/v1.7rc2/sha256sum.txt +23 -0
  314. package/deps/jq/src/builtin.c +537 -343
  315. package/deps/jq/src/builtin.h +18 -0
  316. package/deps/jq/src/builtin.jq +116 -143
  317. package/deps/jq/src/bytecode.h +8 -4
  318. package/deps/jq/src/compile.c +157 -143
  319. package/deps/jq/src/compile.h +3 -4
  320. package/deps/jq/src/decNumber/ICU-license.html +45 -0
  321. package/deps/jq/src/decNumber/decBasic.c +3908 -0
  322. package/deps/jq/src/decNumber/decCommon.c +1835 -0
  323. package/deps/jq/src/decNumber/decContext.c +437 -0
  324. package/deps/jq/src/decNumber/decContext.h +254 -0
  325. package/deps/jq/src/decNumber/decDPD.h +1185 -0
  326. package/deps/jq/src/decNumber/decDouble.c +140 -0
  327. package/deps/jq/src/decNumber/decDouble.h +155 -0
  328. package/deps/jq/src/decNumber/decNumber.c +8143 -0
  329. package/deps/jq/src/decNumber/decNumber.h +182 -0
  330. package/deps/jq/src/decNumber/decNumberLocal.h +757 -0
  331. package/deps/jq/src/decNumber/decPacked.c +220 -0
  332. package/deps/jq/src/decNumber/decPacked.h +52 -0
  333. package/deps/jq/src/decNumber/decQuad.c +135 -0
  334. package/deps/jq/src/decNumber/decQuad.h +177 -0
  335. package/deps/jq/src/decNumber/decSingle.c +71 -0
  336. package/deps/jq/src/decNumber/decSingle.h +86 -0
  337. package/deps/jq/src/decNumber/decimal128.c +553 -0
  338. package/deps/jq/src/decNumber/decimal128.h +81 -0
  339. package/deps/jq/src/decNumber/decimal32.c +476 -0
  340. package/deps/jq/src/decNumber/decimal32.h +81 -0
  341. package/deps/jq/src/decNumber/decimal64.c +839 -0
  342. package/deps/jq/src/decNumber/decimal64.h +83 -0
  343. package/deps/jq/src/decNumber/decnumber.pdf +0 -0
  344. package/deps/jq/src/decNumber/example1.c +38 -0
  345. package/deps/jq/src/decNumber/example2.c +52 -0
  346. package/deps/jq/src/decNumber/example3.c +64 -0
  347. package/deps/jq/src/decNumber/example4.c +61 -0
  348. package/deps/jq/src/decNumber/example5.c +36 -0
  349. package/deps/jq/src/decNumber/example6.c +61 -0
  350. package/deps/jq/src/decNumber/example7.c +35 -0
  351. package/deps/jq/src/decNumber/example8.c +39 -0
  352. package/deps/jq/src/decNumber/readme.txt +81 -0
  353. package/deps/jq/src/exec_stack.h +5 -3
  354. package/deps/jq/src/execute.c +126 -44
  355. package/deps/jq/src/inject_errors.c +0 -2
  356. package/deps/jq/src/jq.h +10 -1
  357. package/deps/jq/src/jq_test.c +222 -11
  358. package/deps/jq/src/jv.c +807 -176
  359. package/deps/jq/src/jv.h +22 -1
  360. package/deps/jq/src/jv_alloc.c +33 -26
  361. package/deps/jq/src/jv_alloc.h +0 -11
  362. package/deps/jq/src/jv_aux.c +153 -67
  363. package/deps/jq/src/jv_dtoa.c +12 -2
  364. package/deps/jq/src/jv_dtoa_tsd.c +51 -0
  365. package/deps/jq/src/jv_dtoa_tsd.h +4 -0
  366. package/deps/jq/src/jv_parse.c +70 -15
  367. package/deps/jq/src/jv_print.c +56 -60
  368. package/deps/jq/src/jv_private.h +7 -0
  369. package/deps/jq/src/jv_thread.h +76 -0
  370. package/deps/jq/src/jv_unicode.c +18 -0
  371. package/deps/jq/src/jv_unicode.h +2 -0
  372. package/deps/jq/src/lexer.c +782 -543
  373. package/deps/jq/src/lexer.h +438 -64
  374. package/deps/jq/src/lexer.l +10 -3
  375. package/deps/jq/src/libm.h +16 -6
  376. package/deps/jq/src/linker.c +97 -40
  377. package/deps/jq/src/locfile.c +2 -1
  378. package/deps/jq/src/main.c +384 -336
  379. package/deps/jq/src/opcode_list.h +5 -2
  380. package/deps/jq/src/parser.c +2260 -1898
  381. package/deps/jq/src/parser.h +115 -98
  382. package/deps/jq/src/parser.y +124 -89
  383. package/deps/jq/src/util.c +854 -55
  384. package/deps/jq/src/util.h +6 -4
  385. package/deps/jq/tests/jq.test +762 -26
  386. package/deps/jq/tests/jq_fuzz_compile.c +27 -0
  387. package/deps/jq/tests/jq_fuzz_execute.cpp +42 -0
  388. package/deps/jq/tests/jq_fuzz_fixed.cpp +297 -0
  389. package/deps/jq/tests/jq_fuzz_load_file.c +28 -0
  390. package/deps/jq/tests/jq_fuzz_parse.c +21 -0
  391. package/deps/jq/tests/jq_fuzz_parse_extended.c +36 -0
  392. package/deps/jq/tests/jq_fuzz_parse_stream.c +21 -0
  393. package/deps/jq/tests/local.supp +14 -0
  394. package/deps/jq/tests/man.test +979 -0
  395. package/deps/jq/tests/manonig.test +76 -0
  396. package/deps/jq/tests/manonigtest +5 -0
  397. package/deps/jq/tests/mantest +1 -2
  398. package/deps/jq/tests/modules/home2/.jq/g.jq +1 -0
  399. package/deps/jq/tests/modules/shadow1.jq +2 -0
  400. package/deps/jq/tests/modules/shadow2.jq +1 -0
  401. package/deps/jq/tests/modules/test_bind_order0.jq +1 -0
  402. package/deps/jq/tests/modules/test_bind_order1.jq +1 -1
  403. package/deps/jq/tests/modules/test_bind_order2.jq +0 -1
  404. package/deps/jq/tests/no-main-program.jq +1 -0
  405. package/deps/jq/tests/onig.test +77 -2
  406. package/deps/jq/tests/setup +7 -2
  407. package/deps/jq/tests/shtest +478 -59
  408. package/deps/jq/tests/uri.test +38 -0
  409. package/deps/jq/tests/uritest +5 -0
  410. package/deps/jq/tests/yes-main-program.jq +2 -0
  411. package/lib/index.js +3 -0
  412. package/lib/jq.js +15 -1
  413. package/lib/templateAsync.js +137 -0
  414. package/package.json +7 -7
  415. package/src/binding.cc +623 -146
  416. package/src/binding.h +3 -4
  417. package/test/santiy-async.test.js +171 -0
  418. package/test/santiy.test.js +2 -2
  419. package/test/template-async.test.js +182 -0
  420. package/test/template.test.js +3 -3
  421. package/deps/jq/.travis.yml +0 -202
  422. package/deps/jq/NEWS +0 -89
  423. package/deps/jq/appveyor.yml +0 -53
  424. package/deps/jq/docs/Gemfile +0 -7
  425. package/deps/jq/docs/Gemfile.lock +0 -63
  426. package/deps/jq/docs/Rakefile +0 -24
  427. package/deps/jq/docs/Rakefile.manual +0 -49
  428. package/deps/jq/docs/Rakefile.website +0 -76
  429. package/deps/jq/docs/content/1.tutorial/default.yml +0 -327
  430. package/deps/jq/docs/content/2.download/default.yml +0 -193
  431. package/deps/jq/docs/content/index/index.yml +0 -73
  432. package/deps/jq/docs/public/css/base.scss +0 -181
  433. package/deps/jq/docs/public/jq.png +0 -0
  434. package/deps/jq/docs/site.yml +0 -9
  435. package/deps/jq/docs/templates/default.liquid +0 -34
  436. package/deps/jq/docs/templates/index.liquid +0 -73
  437. package/deps/jq/docs/templates/manual.liquid +0 -99
  438. package/deps/jq/docs/templates/shared/_footer.liquid +0 -10
  439. package/deps/jq/docs/templates/shared/_head.liquid +0 -17
  440. package/deps/jq/docs/templates/shared/_navbar.liquid +0 -27
  441. package/deps/jq/modules/oniguruma/README.ja +0 -195
  442. package/deps/jq/modules/oniguruma/cmake/dist.cmake +0 -321
  443. package/deps/jq/modules/oniguruma/contributed/libfuzzer-onig.cpp +0 -31
  444. package/deps/jq/modules/oniguruma/dist.info +0 -10
  445. package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_fold1_key.c +0 -2250
  446. package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_fold2_key.c +0 -203
  447. package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_fold3_key.c +0 -113
  448. package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_fold_data.c +0 -1225
  449. package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_property_data.c +0 -24742
  450. package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_property_data_posix.c +0 -4846
  451. package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_unfold_key.c +0 -2571
  452. /package/deps/jq/sig/{jq-release.key → jq-release-old.key} +0 -0
  453. /package/deps/jq/tests/modules/{.jq → home1/.jq} +0 -0
@@ -1,6 +1,6 @@
1
- #line 2 "src/lexer.c"
1
+ #line 1 "src/lexer.c"
2
2
 
3
- #line 4 "src/lexer.c"
3
+ #line 3 "src/lexer.c"
4
4
 
5
5
  #define YY_INT_ALIGNED short int
6
6
 
@@ -9,11 +9,245 @@
9
9
  #define FLEX_SCANNER
10
10
  #define YY_FLEX_MAJOR_VERSION 2
11
11
  #define YY_FLEX_MINOR_VERSION 6
12
- #define YY_FLEX_SUBMINOR_VERSION 0
12
+ #define YY_FLEX_SUBMINOR_VERSION 4
13
13
  #if YY_FLEX_SUBMINOR_VERSION > 0
14
14
  #define FLEX_BETA
15
15
  #endif
16
16
 
17
+ #ifdef yy_create_buffer
18
+ #define jq_yy_create_buffer_ALREADY_DEFINED
19
+ #else
20
+ #define yy_create_buffer jq_yy_create_buffer
21
+ #endif
22
+
23
+ #ifdef yy_delete_buffer
24
+ #define jq_yy_delete_buffer_ALREADY_DEFINED
25
+ #else
26
+ #define yy_delete_buffer jq_yy_delete_buffer
27
+ #endif
28
+
29
+ #ifdef yy_scan_buffer
30
+ #define jq_yy_scan_buffer_ALREADY_DEFINED
31
+ #else
32
+ #define yy_scan_buffer jq_yy_scan_buffer
33
+ #endif
34
+
35
+ #ifdef yy_scan_string
36
+ #define jq_yy_scan_string_ALREADY_DEFINED
37
+ #else
38
+ #define yy_scan_string jq_yy_scan_string
39
+ #endif
40
+
41
+ #ifdef yy_scan_bytes
42
+ #define jq_yy_scan_bytes_ALREADY_DEFINED
43
+ #else
44
+ #define yy_scan_bytes jq_yy_scan_bytes
45
+ #endif
46
+
47
+ #ifdef yy_init_buffer
48
+ #define jq_yy_init_buffer_ALREADY_DEFINED
49
+ #else
50
+ #define yy_init_buffer jq_yy_init_buffer
51
+ #endif
52
+
53
+ #ifdef yy_flush_buffer
54
+ #define jq_yy_flush_buffer_ALREADY_DEFINED
55
+ #else
56
+ #define yy_flush_buffer jq_yy_flush_buffer
57
+ #endif
58
+
59
+ #ifdef yy_load_buffer_state
60
+ #define jq_yy_load_buffer_state_ALREADY_DEFINED
61
+ #else
62
+ #define yy_load_buffer_state jq_yy_load_buffer_state
63
+ #endif
64
+
65
+ #ifdef yy_switch_to_buffer
66
+ #define jq_yy_switch_to_buffer_ALREADY_DEFINED
67
+ #else
68
+ #define yy_switch_to_buffer jq_yy_switch_to_buffer
69
+ #endif
70
+
71
+ #ifdef yypush_buffer_state
72
+ #define jq_yypush_buffer_state_ALREADY_DEFINED
73
+ #else
74
+ #define yypush_buffer_state jq_yypush_buffer_state
75
+ #endif
76
+
77
+ #ifdef yypop_buffer_state
78
+ #define jq_yypop_buffer_state_ALREADY_DEFINED
79
+ #else
80
+ #define yypop_buffer_state jq_yypop_buffer_state
81
+ #endif
82
+
83
+ #ifdef yyensure_buffer_stack
84
+ #define jq_yyensure_buffer_stack_ALREADY_DEFINED
85
+ #else
86
+ #define yyensure_buffer_stack jq_yyensure_buffer_stack
87
+ #endif
88
+
89
+ #ifdef yylex
90
+ #define jq_yylex_ALREADY_DEFINED
91
+ #else
92
+ #define yylex jq_yylex
93
+ #endif
94
+
95
+ #ifdef yyrestart
96
+ #define jq_yyrestart_ALREADY_DEFINED
97
+ #else
98
+ #define yyrestart jq_yyrestart
99
+ #endif
100
+
101
+ #ifdef yylex_init
102
+ #define jq_yylex_init_ALREADY_DEFINED
103
+ #else
104
+ #define yylex_init jq_yylex_init
105
+ #endif
106
+
107
+ #ifdef yylex_init_extra
108
+ #define jq_yylex_init_extra_ALREADY_DEFINED
109
+ #else
110
+ #define yylex_init_extra jq_yylex_init_extra
111
+ #endif
112
+
113
+ #ifdef yylex_destroy
114
+ #define jq_yylex_destroy_ALREADY_DEFINED
115
+ #else
116
+ #define yylex_destroy jq_yylex_destroy
117
+ #endif
118
+
119
+ #ifdef yyget_debug
120
+ #define jq_yyget_debug_ALREADY_DEFINED
121
+ #else
122
+ #define yyget_debug jq_yyget_debug
123
+ #endif
124
+
125
+ #ifdef yyset_debug
126
+ #define jq_yyset_debug_ALREADY_DEFINED
127
+ #else
128
+ #define yyset_debug jq_yyset_debug
129
+ #endif
130
+
131
+ #ifdef yyget_extra
132
+ #define jq_yyget_extra_ALREADY_DEFINED
133
+ #else
134
+ #define yyget_extra jq_yyget_extra
135
+ #endif
136
+
137
+ #ifdef yyset_extra
138
+ #define jq_yyset_extra_ALREADY_DEFINED
139
+ #else
140
+ #define yyset_extra jq_yyset_extra
141
+ #endif
142
+
143
+ #ifdef yyget_in
144
+ #define jq_yyget_in_ALREADY_DEFINED
145
+ #else
146
+ #define yyget_in jq_yyget_in
147
+ #endif
148
+
149
+ #ifdef yyset_in
150
+ #define jq_yyset_in_ALREADY_DEFINED
151
+ #else
152
+ #define yyset_in jq_yyset_in
153
+ #endif
154
+
155
+ #ifdef yyget_out
156
+ #define jq_yyget_out_ALREADY_DEFINED
157
+ #else
158
+ #define yyget_out jq_yyget_out
159
+ #endif
160
+
161
+ #ifdef yyset_out
162
+ #define jq_yyset_out_ALREADY_DEFINED
163
+ #else
164
+ #define yyset_out jq_yyset_out
165
+ #endif
166
+
167
+ #ifdef yyget_leng
168
+ #define jq_yyget_leng_ALREADY_DEFINED
169
+ #else
170
+ #define yyget_leng jq_yyget_leng
171
+ #endif
172
+
173
+ #ifdef yyget_text
174
+ #define jq_yyget_text_ALREADY_DEFINED
175
+ #else
176
+ #define yyget_text jq_yyget_text
177
+ #endif
178
+
179
+ #ifdef yyget_lineno
180
+ #define jq_yyget_lineno_ALREADY_DEFINED
181
+ #else
182
+ #define yyget_lineno jq_yyget_lineno
183
+ #endif
184
+
185
+ #ifdef yyset_lineno
186
+ #define jq_yyset_lineno_ALREADY_DEFINED
187
+ #else
188
+ #define yyset_lineno jq_yyset_lineno
189
+ #endif
190
+
191
+ #ifdef yyget_column
192
+ #define jq_yyget_column_ALREADY_DEFINED
193
+ #else
194
+ #define yyget_column jq_yyget_column
195
+ #endif
196
+
197
+ #ifdef yyset_column
198
+ #define jq_yyset_column_ALREADY_DEFINED
199
+ #else
200
+ #define yyset_column jq_yyset_column
201
+ #endif
202
+
203
+ #ifdef yywrap
204
+ #define jq_yywrap_ALREADY_DEFINED
205
+ #else
206
+ #define yywrap jq_yywrap
207
+ #endif
208
+
209
+ #ifdef yyget_lval
210
+ #define jq_yyget_lval_ALREADY_DEFINED
211
+ #else
212
+ #define yyget_lval jq_yyget_lval
213
+ #endif
214
+
215
+ #ifdef yyset_lval
216
+ #define jq_yyset_lval_ALREADY_DEFINED
217
+ #else
218
+ #define yyset_lval jq_yyset_lval
219
+ #endif
220
+
221
+ #ifdef yyget_lloc
222
+ #define jq_yyget_lloc_ALREADY_DEFINED
223
+ #else
224
+ #define yyget_lloc jq_yyget_lloc
225
+ #endif
226
+
227
+ #ifdef yyset_lloc
228
+ #define jq_yyset_lloc_ALREADY_DEFINED
229
+ #else
230
+ #define yyset_lloc jq_yyset_lloc
231
+ #endif
232
+
233
+ #ifdef yyalloc
234
+ #define jq_yyalloc_ALREADY_DEFINED
235
+ #else
236
+ #define yyalloc jq_yyalloc
237
+ #endif
238
+
239
+ #ifdef yyrealloc
240
+ #define jq_yyrealloc_ALREADY_DEFINED
241
+ #else
242
+ #define yyrealloc jq_yyrealloc
243
+ #endif
244
+
245
+ #ifdef yyfree
246
+ #define jq_yyfree_ALREADY_DEFINED
247
+ #else
248
+ #define yyfree jq_yyfree
249
+ #endif
250
+
17
251
  /* First, we deal with platform-specific or compiler-specific issues. */
18
252
 
19
253
  /* begin standard C headers. */
@@ -84,40 +318,32 @@ typedef unsigned int flex_uint32_t;
84
318
  #define UINT32_MAX (4294967295U)
85
319
  #endif
86
320
 
321
+ #ifndef SIZE_MAX
322
+ #define SIZE_MAX (~(size_t)0)
323
+ #endif
324
+
87
325
  #endif /* ! C99 */
88
326
 
89
327
  #endif /* ! FLEXINT_H */
90
328
 
91
- #ifdef __cplusplus
92
-
93
- /* The "const" storage-class-modifier is valid. */
94
- #define YY_USE_CONST
329
+ /* begin standard C++ headers. */
95
330
 
96
- #else /* ! __cplusplus */
97
-
98
- /* C99 requires __STDC__ to be defined as 1. */
99
- #if defined (__STDC__)
100
-
101
- #define YY_USE_CONST
102
-
103
- #endif /* defined (__STDC__) */
104
- #endif /* ! __cplusplus */
105
-
106
- #ifdef YY_USE_CONST
331
+ /* TODO: this is always defined, so inline it */
107
332
  #define yyconst const
333
+
334
+ #if defined(__GNUC__) && __GNUC__ >= 3
335
+ #define yynoreturn __attribute__((__noreturn__))
108
336
  #else
109
- #define yyconst
337
+ #define yynoreturn
110
338
  #endif
111
339
 
112
340
  /* Returned upon end-of-file. */
113
341
  #define YY_NULL 0
114
342
 
115
- /* Promotes a possibly negative, possibly signed char to an unsigned
116
- * integer for use as an array index. If the signed char is negative,
117
- * we want to instead treat it as an 8-bit unsigned char, hence the
118
- * double cast.
343
+ /* Promotes a possibly negative, possibly signed char to an
344
+ * integer in range [0..255] for use as an array index.
119
345
  */
120
- #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
346
+ #define YY_SC_TO_UI(c) ((YY_CHAR) (c))
121
347
 
122
348
  /* An opaque pointer. */
123
349
  #ifndef YY_TYPEDEF_YY_SCANNER_T
@@ -141,20 +367,16 @@ typedef void* yyscan_t;
141
367
  * definition of BEGIN.
142
368
  */
143
369
  #define BEGIN yyg->yy_start = 1 + 2 *
144
-
145
370
  /* Translate the current start state into a value that can be later handed
146
371
  * to BEGIN to return to the state. The YYSTATE alias is for lex
147
372
  * compatibility.
148
373
  */
149
374
  #define YY_START ((yyg->yy_start - 1) / 2)
150
375
  #define YYSTATE YY_START
151
-
152
376
  /* Action number for EOF rule of a given start state. */
153
377
  #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
154
-
155
378
  /* Special action meaning "start processing a new file". */
156
- #define YY_NEW_FILE jq_yyrestart(yyin ,yyscanner )
157
-
379
+ #define YY_NEW_FILE yyrestart( yyin , yyscanner )
158
380
  #define YY_END_OF_BUFFER_CHAR 0
159
381
 
160
382
  /* Size of default input buffer. */
@@ -187,7 +409,7 @@ typedef size_t yy_size_t;
187
409
  #define EOB_ACT_CONTINUE_SCAN 0
188
410
  #define EOB_ACT_END_OF_FILE 1
189
411
  #define EOB_ACT_LAST_MATCH 2
190
-
412
+
191
413
  #define YY_LESS_LINENO(n)
192
414
  #define YY_LINENO_REWIND_TO(ptr)
193
415
 
@@ -204,7 +426,6 @@ typedef size_t yy_size_t;
204
426
  YY_DO_BEFORE_ACTION; /* set up yytext again */ \
205
427
  } \
206
428
  while ( 0 )
207
-
208
429
  #define unput(c) yyunput( c, yyg->yytext_ptr , yyscanner )
209
430
 
210
431
  #ifndef YY_STRUCT_YY_BUFFER_STATE
@@ -219,7 +440,7 @@ struct yy_buffer_state
219
440
  /* Size of input buffer in bytes, not including room for EOB
220
441
  * characters.
221
442
  */
222
- yy_size_t yy_buf_size;
443
+ int yy_buf_size;
223
444
 
224
445
  /* Number of characters read into yy_ch_buf, not including EOB
225
446
  * characters.
@@ -247,7 +468,7 @@ struct yy_buffer_state
247
468
 
248
469
  int yy_bs_lineno; /**< The line count. */
249
470
  int yy_bs_column; /**< The column count. */
250
-
471
+
251
472
  /* Whether to try to fill the input buffer when we reach the
252
473
  * end of it.
253
474
  */
@@ -264,7 +485,7 @@ struct yy_buffer_state
264
485
  * possible backing-up.
265
486
  *
266
487
  * When we actually see the EOF, we change the status to "new"
267
- * (via jq_yyrestart()), so that the user can continue scanning by
488
+ * (via yyrestart()), so that the user can continue scanning by
268
489
  * just pointing yyin at a new input file.
269
490
  */
270
491
  #define YY_BUFFER_EOF_PENDING 2
@@ -281,89 +502,79 @@ struct yy_buffer_state
281
502
  #define YY_CURRENT_BUFFER ( yyg->yy_buffer_stack \
282
503
  ? yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] \
283
504
  : NULL)
284
-
285
505
  /* Same as previous macro, but useful when we know that the buffer stack is not
286
506
  * NULL or when we need an lvalue. For internal use only.
287
507
  */
288
508
  #define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
289
509
 
290
- void jq_yyrestart (FILE *input_file ,yyscan_t yyscanner );
291
- void jq_yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
292
- YY_BUFFER_STATE jq_yy_create_buffer (FILE *file,int size ,yyscan_t yyscanner );
293
- void jq_yy_delete_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
294
- void jq_yy_flush_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
295
- void jq_yypush_buffer_state (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
296
- void jq_yypop_buffer_state (yyscan_t yyscanner );
297
-
298
- static void jq_yyensure_buffer_stack (yyscan_t yyscanner );
299
- static void jq_yy_load_buffer_state (yyscan_t yyscanner );
300
- static void jq_yy_init_buffer (YY_BUFFER_STATE b,FILE *file ,yyscan_t yyscanner );
510
+ void yyrestart ( FILE *input_file , yyscan_t yyscanner );
511
+ void yy_switch_to_buffer ( YY_BUFFER_STATE new_buffer , yyscan_t yyscanner );
512
+ YY_BUFFER_STATE yy_create_buffer ( FILE *file, int size , yyscan_t yyscanner );
513
+ void yy_delete_buffer ( YY_BUFFER_STATE b , yyscan_t yyscanner );
514
+ void yy_flush_buffer ( YY_BUFFER_STATE b , yyscan_t yyscanner );
515
+ void yypush_buffer_state ( YY_BUFFER_STATE new_buffer , yyscan_t yyscanner );
516
+ void yypop_buffer_state ( yyscan_t yyscanner );
301
517
 
302
- #define YY_FLUSH_BUFFER jq_yy_flush_buffer(YY_CURRENT_BUFFER ,yyscanner)
518
+ static void yyensure_buffer_stack ( yyscan_t yyscanner );
519
+ static void yy_load_buffer_state ( yyscan_t yyscanner );
520
+ static void yy_init_buffer ( YY_BUFFER_STATE b, FILE *file , yyscan_t yyscanner );
521
+ #define YY_FLUSH_BUFFER yy_flush_buffer( YY_CURRENT_BUFFER , yyscanner)
303
522
 
304
- YY_BUFFER_STATE jq_yy_scan_buffer (char *base,yy_size_t size ,yyscan_t yyscanner );
305
- YY_BUFFER_STATE jq_yy_scan_string (yyconst char *yy_str ,yyscan_t yyscanner );
306
- YY_BUFFER_STATE jq_yy_scan_bytes (yyconst char *bytes,yy_size_t len ,yyscan_t yyscanner );
523
+ YY_BUFFER_STATE yy_scan_buffer ( char *base, yy_size_t size , yyscan_t yyscanner );
524
+ YY_BUFFER_STATE yy_scan_string ( const char *yy_str , yyscan_t yyscanner );
525
+ YY_BUFFER_STATE yy_scan_bytes ( const char *bytes, int len , yyscan_t yyscanner );
307
526
 
308
- void *jq_yyalloc (yy_size_t ,yyscan_t yyscanner );
309
- void *jq_yyrealloc (void *,yy_size_t ,yyscan_t yyscanner );
310
- void jq_yyfree (void * ,yyscan_t yyscanner );
311
-
312
- #define yy_new_buffer jq_yy_create_buffer
527
+ void *yyalloc ( yy_size_t , yyscan_t yyscanner );
528
+ void *yyrealloc ( void *, yy_size_t , yyscan_t yyscanner );
529
+ void yyfree ( void * , yyscan_t yyscanner );
313
530
 
531
+ #define yy_new_buffer yy_create_buffer
314
532
  #define yy_set_interactive(is_interactive) \
315
533
  { \
316
534
  if ( ! YY_CURRENT_BUFFER ){ \
317
- jq_yyensure_buffer_stack (yyscanner); \
535
+ yyensure_buffer_stack (yyscanner); \
318
536
  YY_CURRENT_BUFFER_LVALUE = \
319
- jq_yy_create_buffer(yyin,YY_BUF_SIZE ,yyscanner); \
537
+ yy_create_buffer( yyin, YY_BUF_SIZE , yyscanner); \
320
538
  } \
321
539
  YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
322
540
  }
323
-
324
541
  #define yy_set_bol(at_bol) \
325
542
  { \
326
543
  if ( ! YY_CURRENT_BUFFER ){\
327
- jq_yyensure_buffer_stack (yyscanner); \
544
+ yyensure_buffer_stack (yyscanner); \
328
545
  YY_CURRENT_BUFFER_LVALUE = \
329
- jq_yy_create_buffer(yyin,YY_BUF_SIZE ,yyscanner); \
546
+ yy_create_buffer( yyin, YY_BUF_SIZE , yyscanner); \
330
547
  } \
331
548
  YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
332
549
  }
333
-
334
550
  #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
335
551
 
336
552
  /* Begin user sect3 */
337
553
 
338
554
  #define jq_yywrap(yyscanner) (/*CONSTCOND*/1)
339
555
  #define YY_SKIP_YYWRAP
340
-
341
- typedef unsigned char YY_CHAR;
556
+ typedef flex_uint8_t YY_CHAR;
342
557
 
343
558
  typedef int yy_state_type;
344
559
 
345
560
  #define yytext_ptr yytext_r
346
561
 
347
- static yy_state_type yy_get_previous_state (yyscan_t yyscanner );
348
- static yy_state_type yy_try_NUL_trans (yy_state_type current_state ,yyscan_t yyscanner);
349
- static int yy_get_next_buffer (yyscan_t yyscanner );
350
- #if defined(__GNUC__) && __GNUC__ >= 3
351
- __attribute__((__noreturn__))
352
- #endif
353
- static void yy_fatal_error (yyconst char msg[] ,yyscan_t yyscanner );
562
+ static yy_state_type yy_get_previous_state ( yyscan_t yyscanner );
563
+ static yy_state_type yy_try_NUL_trans ( yy_state_type current_state , yyscan_t yyscanner);
564
+ static int yy_get_next_buffer ( yyscan_t yyscanner );
565
+ static void yynoreturn yy_fatal_error ( const char* msg , yyscan_t yyscanner );
354
566
 
355
567
  /* Done after the current pattern has been matched and before the
356
568
  * corresponding action - sets up yytext.
357
569
  */
358
570
  #define YY_DO_BEFORE_ACTION \
359
571
  yyg->yytext_ptr = yy_bp; \
360
- yyleng = (size_t) (yy_cp - yy_bp); \
572
+ yyleng = (int) (yy_cp - yy_bp); \
361
573
  yyg->yy_hold_char = *yy_cp; \
362
574
  *yy_cp = '\0'; \
363
575
  yyg->yy_c_buf_p = yy_cp;
364
-
365
- #define YY_NUM_RULES 50
366
- #define YY_END_OF_BUFFER 51
576
+ #define YY_NUM_RULES 53
577
+ #define YY_END_OF_BUFFER 54
367
578
  /* This struct is not used in this scanner,
368
579
  but its presence is necessary. */
369
580
  struct yy_trans_info
@@ -371,43 +582,44 @@ struct yy_trans_info
371
582
  flex_int32_t yy_verify;
372
583
  flex_int32_t yy_nxt;
373
584
  };
374
- static yyconst flex_int16_t yy_accept[157] =
585
+ static const flex_int16_t yy_accept[168] =
375
586
  { 0,
376
587
  0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
377
- 0, 0, 51, 49, 48, 48, 49, 40, 1, 35,
378
- 35, 36, 37, 35, 35, 35, 35, 35, 39, 35,
379
- 35, 35, 35, 49, 46, 46, 46, 46, 46, 46,
380
- 46, 46, 46, 46, 46, 46, 46, 46, 35, 44,
381
- 44, 42, 45, 48, 2, 1, 29, 27, 25, 26,
382
- 33, 39, 47, 47, 18, 28, 0, 31, 3, 32,
383
- 0, 38, 46, 0, 46, 46, 4, 46, 46, 46,
384
- 46, 46, 46, 9, 46, 46, 46, 46, 14, 46,
385
- 46, 46, 24, 44, 43, 41, 43, 47, 0, 39,
386
-
387
- 30, 39, 34, 0, 46, 13, 46, 46, 8, 46,
388
- 46, 15, 46, 46, 46, 46, 46, 46, 46, 19,
389
- 0, 43, 46, 46, 46, 46, 12, 11, 46, 46,
390
- 46, 46, 46, 46, 10, 43, 46, 22, 20, 46,
391
- 46, 46, 21, 46, 46, 43, 46, 46, 5, 46,
392
- 7, 16, 23, 17, 6, 0
588
+ 0, 0, 0, 0, 54, 52, 51, 51, 52, 42,
589
+ 1, 37, 37, 38, 39, 37, 37, 37, 37, 37,
590
+ 37, 41, 37, 37, 37, 37, 52, 48, 48, 48,
591
+ 48, 48, 48, 48, 48, 48, 48, 48, 48, 48,
592
+ 37, 46, 46, 44, 47, 2, 3, 2, 51, 4,
593
+ 50, 50, 31, 29, 27, 28, 35, 41, 49, 20,
594
+ 30, 41, 41, 0, 33, 5, 34, 0, 40, 48,
595
+ 0, 48, 6, 48, 48, 48, 48, 48, 48, 11,
596
+ 48, 48, 48, 48, 16, 48, 48, 48, 26, 46,
597
+
598
+ 45, 43, 45, 2, 50, 0, 50, 49, 32, 41,
599
+ 0, 41, 36, 0, 15, 48, 48, 10, 48, 48,
600
+ 17, 48, 48, 48, 48, 48, 48, 48, 21, 0,
601
+ 45, 0, 50, 48, 48, 48, 14, 13, 48, 48,
602
+ 48, 48, 48, 48, 12, 45, 50, 24, 22, 48,
603
+ 48, 48, 23, 48, 48, 45, 50, 48, 7, 48,
604
+ 9, 18, 50, 19, 8, 25, 0
393
605
  } ;
394
606
 
395
- static yyconst YY_CHAR yy_ec[256] =
607
+ static const YY_CHAR yy_ec[256] =
396
608
  { 0,
397
609
  1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
398
- 1, 1, 4, 1, 1, 1, 1, 1, 1, 1,
399
610
  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
400
- 1, 2, 5, 6, 7, 8, 9, 1, 1, 10,
401
- 11, 12, 13, 14, 15, 16, 17, 18, 18, 18,
402
- 18, 18, 18, 18, 18, 18, 18, 19, 20, 21,
403
- 22, 23, 24, 25, 26, 26, 26, 26, 27, 26,
404
- 26, 26, 26, 26, 26, 26, 26, 26, 26, 26,
405
- 26, 26, 26, 26, 26, 26, 26, 26, 26, 26,
406
- 28, 29, 30, 1, 31, 1, 32, 33, 34, 35,
407
-
408
- 36, 37, 26, 38, 39, 26, 40, 41, 42, 43,
409
- 44, 45, 26, 46, 47, 48, 49, 26, 26, 26,
410
- 50, 26, 51, 52, 53, 1, 1, 1, 1, 1,
611
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
612
+ 1, 2, 4, 5, 6, 7, 8, 1, 1, 9,
613
+ 10, 11, 12, 13, 14, 15, 16, 17, 17, 17,
614
+ 17, 17, 17, 17, 17, 17, 17, 18, 19, 20,
615
+ 21, 22, 23, 24, 25, 25, 25, 25, 26, 25,
616
+ 25, 25, 25, 25, 25, 25, 25, 25, 25, 25,
617
+ 25, 25, 25, 25, 25, 25, 25, 25, 25, 25,
618
+ 27, 28, 29, 1, 30, 1, 31, 32, 33, 34,
619
+
620
+ 35, 36, 25, 37, 38, 25, 39, 40, 41, 42,
621
+ 43, 44, 25, 45, 46, 47, 48, 25, 25, 25,
622
+ 49, 25, 50, 51, 52, 1, 1, 1, 1, 1,
411
623
  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
412
624
  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
413
625
  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
@@ -424,148 +636,154 @@ static yyconst YY_CHAR yy_ec[256] =
424
636
  1, 1, 1, 1, 1
425
637
  } ;
426
638
 
427
- static yyconst YY_CHAR yy_meta[54] =
639
+ static const YY_CHAR yy_meta[53] =
428
640
  { 0,
429
- 1, 1, 2, 2, 1, 3, 1, 1, 1, 1,
430
- 1, 1, 1, 1, 1, 4, 1, 5, 6, 1,
431
- 1, 1, 1, 1, 1, 7, 7, 1, 8, 1,
432
- 9, 7, 7, 7, 7, 7, 7, 7, 7, 7,
433
- 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
434
- 1, 1, 1
641
+ 1, 1, 1, 1, 2, 1, 1, 1, 1, 1,
642
+ 1, 1, 1, 1, 3, 1, 4, 5, 1, 1,
643
+ 1, 1, 1, 1, 6, 6, 1, 7, 1, 8,
644
+ 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
645
+ 6, 6, 6, 6, 6, 6, 6, 6, 6, 1,
646
+ 1, 1
435
647
  } ;
436
648
 
437
- static yyconst flex_uint16_t yy_base[170] =
649
+ static const flex_int16_t yy_base[183] =
438
650
  { 0,
439
651
  0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
440
- 51, 52, 320, 321, 57, 59, 297, 321, 0, 321,
441
- 296, 321, 321, 295, 294, 293, 47, 47, 50, 292,
442
- 291, 290, 294, 0, 291, 48, 51, 53, 52, 37,
443
- 59, 57, 66, 56, 63, 68, 70, 72, 287, 0,
444
- 0, 321, 80, 90, 321, 0, 321, 321, 321, 321,
445
- 95, 99, 0, 106, 286, 321, 110, 321, 321, 321,
446
- 290, 0, 285, 281, 86, 77, 277, 97, 101, 111,
447
- 113, 115, 117, 274, 119, 120, 118, 121, 270, 122,
448
- 123, 124, 321, 0, 257, 321, 255, 0, 254, 249,
449
-
450
- 321, 245, 321, 0, 125, 239, 126, 127, 237, 128,
451
- 134, 234, 136, 143, 147, 148, 149, 152, 154, 232,
452
- 165, 212, 210, 157, 159, 158, 209, 208, 160, 161,
453
- 162, 163, 164, 166, 207, 196, 171, 205, 204, 174,
454
- 167, 175, 201, 170, 176, 190, 190, 184, 199, 194,
455
- 198, 197, 85, 78, 76, 321, 230, 239, 245, 250,
456
- 255, 264, 273, 278, 283, 285, 290, 294, 298
652
+ 50, 51, 54, 55, 331, 332, 57, 59, 309, 332,
653
+ 332, 299, 307, 332, 332, 306, 305, 332, 304, 48,
654
+ 48, 51, 303, 302, 301, 305, 0, 302, 49, 52,
655
+ 53, 54, 56, 57, 63, 62, 58, 67, 55, 69,
656
+ 298, 0, 0, 332, 79, 332, 332, 89, 100, 332,
657
+ 300, 89, 332, 332, 332, 332, 332, 94, 0, 296,
658
+ 332, 96, 106, 116, 332, 332, 332, 300, 0, 297,
659
+ 296, 76, 295, 90, 91, 98, 97, 106, 100, 294,
660
+ 108, 118, 121, 124, 293, 126, 119, 128, 332, 0,
661
+
662
+ 282, 332, 281, 332, 288, 284, 129, 0, 332, 131,
663
+ 281, 278, 332, 0, 273, 131, 132, 270, 137, 141,
664
+ 268, 143, 138, 145, 149, 146, 150, 153, 265, 161,
665
+ 242, 0, 154, 247, 157, 156, 244, 239, 161, 162,
666
+ 164, 165, 168, 169, 237, 224, 170, 232, 228, 171,
667
+ 172, 181, 209, 182, 183, 196, 192, 188, 205, 193,
668
+ 203, 202, 196, 198, 195, 173, 332, 228, 236, 239,
669
+ 245, 250, 255, 263, 271, 276, 281, 286, 288, 293,
670
+ 297, 301
457
671
  } ;
458
672
 
459
- static yyconst flex_int16_t yy_def[170] =
673
+ static const flex_int16_t yy_def[183] =
460
674
  { 0,
461
- 156, 1, 1, 1, 1, 1, 1, 1, 1, 1,
462
- 157, 157, 156, 156, 156, 156, 156, 156, 158, 156,
463
- 156, 156, 156, 156, 156, 156, 159, 156, 156, 156,
464
- 156, 156, 156, 160, 161, 161, 161, 161, 161, 161,
465
- 161, 161, 161, 161, 161, 161, 161, 161, 156, 162,
466
- 162, 156, 163, 156, 156, 158, 156, 156, 156, 156,
467
- 156, 156, 164, 164, 156, 156, 156, 156, 156, 156,
468
- 156, 160, 161, 156, 161, 161, 161, 161, 161, 161,
469
- 161, 161, 161, 161, 161, 161, 161, 161, 161, 161,
470
- 161, 161, 156, 162, 156, 156, 165, 164, 156, 164,
471
-
472
- 156, 156, 156, 166, 161, 161, 161, 161, 161, 161,
473
- 161, 161, 161, 161, 161, 161, 161, 161, 161, 161,
474
- 163, 167, 161, 161, 161, 161, 161, 161, 161, 161,
475
- 161, 161, 161, 161, 161, 168, 161, 161, 161, 161,
476
- 161, 161, 161, 161, 161, 169, 161, 161, 161, 161,
477
- 161, 161, 161, 161, 161, 0, 156, 156, 156, 156,
478
- 156, 156, 156, 156, 156, 156, 156, 156, 156
675
+ 167, 1, 1, 1, 1, 1, 1, 1, 1, 1,
676
+ 168, 168, 169, 169, 167, 167, 167, 167, 167, 167,
677
+ 167, 170, 167, 167, 167, 167, 167, 167, 167, 171,
678
+ 167, 167, 167, 167, 167, 167, 172, 173, 173, 173,
679
+ 173, 173, 173, 173, 173, 173, 173, 173, 173, 173,
680
+ 167, 174, 174, 167, 175, 167, 167, 167, 167, 167,
681
+ 176, 176, 167, 167, 167, 167, 167, 167, 177, 167,
682
+ 167, 167, 167, 167, 167, 167, 167, 167, 172, 173,
683
+ 167, 173, 173, 173, 173, 173, 173, 173, 173, 173,
684
+ 173, 173, 173, 173, 173, 173, 173, 173, 167, 174,
685
+
686
+ 167, 167, 178, 167, 176, 167, 176, 177, 167, 167,
687
+ 167, 167, 167, 179, 173, 173, 173, 173, 173, 173,
688
+ 173, 173, 173, 173, 173, 173, 173, 173, 173, 175,
689
+ 180, 170, 176, 173, 173, 173, 173, 173, 173, 173,
690
+ 173, 173, 173, 173, 173, 181, 176, 173, 173, 173,
691
+ 173, 173, 173, 173, 173, 182, 176, 173, 173, 173,
692
+ 173, 173, 176, 173, 173, 176, 0, 167, 167, 167,
693
+ 167, 167, 167, 167, 167, 167, 167, 167, 167, 167,
694
+ 167, 167
479
695
  } ;
480
696
 
481
- static yyconst flex_uint16_t yy_nxt[375] =
697
+ static const flex_int16_t yy_nxt[385] =
482
698
  { 0,
483
- 14, 15, 16, 14, 17, 18, 19, 20, 21, 22,
484
- 23, 24, 25, 20, 26, 27, 28, 29, 20, 20,
485
- 30, 31, 32, 33, 34, 35, 35, 22, 14, 23,
486
- 36, 37, 38, 39, 40, 41, 42, 35, 43, 35,
487
- 44, 45, 35, 46, 35, 47, 35, 48, 35, 35,
488
- 22, 49, 23, 51, 51, 74, 52, 52, 54, 54,
489
- 54, 54, 61, 65, 62, 62, 74, 62, 66, 74,
490
- 74, 74, 80, 64, 74, 74, 67, 74, 75, 53,
491
- 53, 74, 64, 79, 74, 67, 74, 87, 74, 96,
492
- 74, 54, 54, 76, 74, 74, 74, 77, 78, 81,
493
-
494
- 83, 82, 84, 74, 74, 90, 88, 85, 86, 91,
495
- 62, 106, 62, 89, 62, 74, 62, 92, 99, 74,
496
- 99, 67, 99, 100, 99, 67, 105, 102, 97, 74,
497
- 67, 74, 107, 74, 67, 74, 74, 74, 74, 74,
498
- 74, 74, 74, 74, 74, 74, 74, 109, 108, 112,
499
- 116, 110, 74, 115, 74, 117, 118, 125, 119, 111,
500
- 126, 74, 113, 114, 127, 74, 74, 74, 124, 128,
501
- 74, 129, 74, 120, 156, 74, 74, 74, 74, 74,
502
- 74, 74, 74, 132, 74, 74, 130, 131, 74, 74,
503
- 137, 140, 74, 74, 74, 139, 135, 133, 138, 145,
504
-
505
- 134, 147, 74, 143, 144, 151, 141, 148, 74, 150,
506
- 142, 152, 74, 97, 149, 74, 74, 74, 121, 74,
507
- 153, 154, 74, 74, 121, 74, 74, 74, 74, 155,
508
- 50, 50, 50, 50, 50, 50, 50, 50, 50, 56,
509
- 121, 56, 56, 56, 56, 56, 56, 56, 63, 63,
510
- 74, 63, 74, 63, 72, 74, 72, 74, 72, 73,
511
- 73, 73, 102, 73, 94, 94, 100, 94, 94, 94,
512
- 94, 102, 94, 95, 95, 95, 95, 95, 95, 95,
513
- 95, 95, 98, 121, 98, 121, 98, 122, 74, 122,
514
- 122, 123, 74, 123, 136, 74, 136, 136, 146, 104,
515
-
516
- 146, 146, 95, 74, 95, 95, 103, 101, 93, 74,
517
- 71, 70, 69, 68, 60, 59, 58, 57, 55, 156,
518
- 13, 156, 156, 156, 156, 156, 156, 156, 156, 156,
519
- 156, 156, 156, 156, 156, 156, 156, 156, 156, 156,
520
- 156, 156, 156, 156, 156, 156, 156, 156, 156, 156,
521
- 156, 156, 156, 156, 156, 156, 156, 156, 156, 156,
522
- 156, 156, 156, 156, 156, 156, 156, 156, 156, 156,
523
- 156, 156, 156, 156
699
+ 16, 17, 18, 19, 20, 21, 22, 23, 24, 25,
700
+ 26, 27, 28, 29, 30, 31, 32, 28, 28, 33,
701
+ 34, 35, 36, 37, 38, 38, 24, 16, 25, 38,
702
+ 39, 40, 41, 42, 43, 44, 38, 45, 38, 46,
703
+ 47, 38, 48, 38, 49, 38, 50, 38, 38, 24,
704
+ 51, 25, 53, 53, 54, 54, 57, 57, 59, 59,
705
+ 59, 59, 67, 70, 68, 72, 81, 73, 71, 81,
706
+ 81, 81, 81, 81, 81, 81, 74, 55, 55, 81,
707
+ 81, 58, 58, 85, 81, 74, 81, 102, 86, 96,
708
+ 82, 104, 93, 81, 83, 87, 84, 88, 90, 89,
709
+
710
+ 94, 59, 59, 91, 92, 97, 106, 81, 81, 115,
711
+ 68, 95, 110, 98, 81, 81, 104, 81, 107, 74,
712
+ 72, 74, 73, 81, 116, 81, 103, 111, 74, 111,
713
+ 74, 74, 112, 118, 119, 81, 81, 117, 81, 121,
714
+ 74, 81, 120, 81, 122, 81, 106, 110, 81, 81,
715
+ 124, 123, 125, 128, 81, 81, 74, 126, 81, 127,
716
+ 81, 135, 81, 81, 136, 74, 81, 81, 133, 167,
717
+ 81, 106, 137, 81, 81, 138, 129, 139, 81, 81,
718
+ 140, 81, 81, 142, 141, 81, 81, 106, 81, 81,
719
+ 106, 150, 149, 143, 145, 148, 147, 144, 81, 81,
720
+
721
+ 81, 155, 157, 158, 153, 81, 151, 154, 103, 106,
722
+ 81, 152, 81, 106, 160, 81, 161, 162, 159, 81,
723
+ 81, 163, 81, 130, 164, 166, 81, 165, 52, 52,
724
+ 52, 52, 52, 52, 52, 52, 56, 56, 56, 56,
725
+ 56, 56, 56, 56, 61, 81, 61, 69, 69, 81,
726
+ 69, 130, 69, 79, 81, 79, 81, 79, 80, 80,
727
+ 80, 81, 80, 100, 81, 100, 100, 100, 100, 130,
728
+ 100, 101, 101, 101, 101, 101, 101, 101, 101, 105,
729
+ 105, 105, 81, 105, 108, 81, 108, 81, 108, 131,
730
+ 81, 131, 131, 134, 112, 134, 146, 112, 146, 146,
731
+
732
+ 156, 132, 156, 156, 101, 106, 101, 101, 130, 130,
733
+ 81, 81, 81, 114, 81, 113, 109, 106, 99, 81,
734
+ 78, 77, 76, 75, 66, 65, 64, 63, 62, 60,
735
+ 167, 15, 167, 167, 167, 167, 167, 167, 167, 167,
736
+ 167, 167, 167, 167, 167, 167, 167, 167, 167, 167,
737
+ 167, 167, 167, 167, 167, 167, 167, 167, 167, 167,
738
+ 167, 167, 167, 167, 167, 167, 167, 167, 167, 167,
739
+ 167, 167, 167, 167, 167, 167, 167, 167, 167, 167,
740
+ 167, 167, 167, 167
524
741
  } ;
525
742
 
526
- static yyconst flex_int16_t yy_chk[375] =
743
+ static const flex_int16_t yy_chk[385] =
527
744
  { 0,
528
745
  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
529
746
  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
530
747
  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
531
748
  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
532
749
  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
533
- 1, 1, 1, 11, 12, 40, 11, 12, 15, 15,
534
- 16, 16, 27, 28, 27, 29, 36, 29, 28, 37,
535
- 39, 38, 40, 27, 44, 42, 29, 41, 36, 11,
536
- 12, 45, 27, 39, 43, 29, 46, 44, 47, 53,
537
- 48, 54, 54, 37, 155, 76, 154, 37, 38, 41,
538
-
539
- 42, 41, 43, 153, 75, 47, 45, 43, 43, 48,
540
- 61, 76, 61, 46, 62, 78, 62, 48, 64, 79,
541
- 64, 61, 67, 64, 67, 62, 75, 67, 53, 80,
542
- 61, 81, 78, 82, 62, 83, 87, 85, 86, 88,
543
- 90, 91, 92, 105, 107, 108, 110, 80, 79, 82,
544
- 87, 81, 111, 86, 113, 88, 90, 107, 91, 81,
545
- 108, 114, 83, 85, 110, 115, 116, 117, 105, 111,
546
- 118, 113, 119, 92, 121, 124, 126, 125, 129, 130,
547
- 131, 132, 133, 116, 134, 141, 114, 115, 144, 137,
548
- 124, 129, 140, 142, 145, 126, 119, 117, 125, 134,
549
-
550
- 118, 137, 148, 132, 133, 144, 130, 140, 147, 142,
551
- 131, 145, 150, 121, 141, 152, 151, 149, 146, 143,
552
- 147, 148, 139, 138, 136, 135, 128, 127, 123, 150,
553
- 157, 157, 157, 157, 157, 157, 157, 157, 157, 158,
554
- 122, 158, 158, 158, 158, 158, 158, 158, 159, 159,
555
- 120, 159, 112, 159, 160, 109, 160, 106, 160, 161,
556
- 161, 161, 102, 161, 162, 162, 100, 162, 162, 162,
557
- 162, 99, 162, 163, 163, 163, 163, 163, 163, 163,
558
- 163, 163, 164, 97, 164, 95, 164, 165, 89, 165,
559
- 165, 166, 84, 166, 167, 77, 167, 167, 168, 74,
560
-
561
- 168, 168, 169, 73, 169, 169, 71, 65, 49, 35,
562
- 33, 32, 31, 30, 26, 25, 24, 21, 17, 13,
563
- 156, 156, 156, 156, 156, 156, 156, 156, 156, 156,
564
- 156, 156, 156, 156, 156, 156, 156, 156, 156, 156,
565
- 156, 156, 156, 156, 156, 156, 156, 156, 156, 156,
566
- 156, 156, 156, 156, 156, 156, 156, 156, 156, 156,
567
- 156, 156, 156, 156, 156, 156, 156, 156, 156, 156,
568
- 156, 156, 156, 156
750
+ 1, 1, 11, 12, 11, 12, 13, 14, 17, 17,
751
+ 18, 18, 30, 31, 30, 32, 39, 32, 31, 40,
752
+ 41, 42, 49, 43, 44, 47, 32, 11, 12, 46,
753
+ 45, 13, 14, 41, 48, 32, 50, 55, 42, 49,
754
+ 39, 58, 46, 82, 39, 43, 40, 43, 45, 44,
755
+
756
+ 47, 59, 59, 45, 45, 50, 62, 84, 85, 82,
757
+ 68, 48, 72, 50, 87, 86, 58, 89, 62, 68,
758
+ 73, 72, 73, 88, 84, 91, 55, 74, 68, 74,
759
+ 72, 73, 74, 86, 87, 92, 97, 85, 93, 88,
760
+ 73, 94, 87, 96, 89, 98, 107, 110, 116, 117,
761
+ 92, 91, 93, 97, 119, 123, 110, 94, 120, 96,
762
+ 122, 116, 124, 126, 117, 110, 125, 127, 107, 130,
763
+ 128, 133, 119, 136, 135, 120, 98, 122, 139, 140,
764
+ 123, 141, 142, 125, 124, 143, 144, 147, 150, 151,
765
+ 166, 139, 136, 126, 128, 135, 133, 127, 152, 154,
766
+
767
+ 155, 144, 147, 150, 142, 158, 140, 143, 130, 157,
768
+ 160, 141, 165, 163, 152, 164, 154, 155, 151, 162,
769
+ 161, 157, 159, 156, 158, 163, 153, 160, 168, 168,
770
+ 168, 168, 168, 168, 168, 168, 169, 169, 169, 169,
771
+ 169, 169, 169, 169, 170, 149, 170, 171, 171, 148,
772
+ 171, 146, 171, 172, 145, 172, 138, 172, 173, 173,
773
+ 173, 137, 173, 174, 134, 174, 174, 174, 174, 131,
774
+ 174, 175, 175, 175, 175, 175, 175, 175, 175, 176,
775
+ 176, 176, 129, 176, 177, 121, 177, 118, 177, 178,
776
+ 115, 178, 178, 179, 112, 179, 180, 111, 180, 180,
777
+
778
+ 181, 106, 181, 181, 182, 105, 182, 182, 103, 101,
779
+ 95, 90, 83, 81, 80, 78, 70, 61, 51, 38,
780
+ 36, 35, 34, 33, 29, 27, 26, 23, 22, 19,
781
+ 15, 167, 167, 167, 167, 167, 167, 167, 167, 167,
782
+ 167, 167, 167, 167, 167, 167, 167, 167, 167, 167,
783
+ 167, 167, 167, 167, 167, 167, 167, 167, 167, 167,
784
+ 167, 167, 167, 167, 167, 167, 167, 167, 167, 167,
785
+ 167, 167, 167, 167, 167, 167, 167, 167, 167, 167,
786
+ 167, 167, 167, 167
569
787
  } ;
570
788
 
571
789
  /* The intent behind this definition is that it'll catch
@@ -587,21 +805,19 @@ struct lexer_param;
587
805
 
588
806
  #define YY_USER_ACTION \
589
807
  do { \
590
- yylloc->start = jq_yyget_extra(yyscanner); \
808
+ yylloc->start = yyget_extra(yyscanner); \
591
809
  yylloc->end = yylloc->start + yyleng; \
592
- jq_yyset_extra(yylloc->end,yyscanner); \
810
+ yyset_extra(yylloc->end, yyscanner); \
593
811
  } while (0);
594
812
 
813
+ #line 813 "src/lexer.c"
595
814
 
596
-
597
-
598
-
599
-
600
- #line 25 "src/lexer.l"
815
+ #line 26 "src/lexer.l"
601
816
  static int enter(int opening, int state, yyscan_t yyscanner);
602
817
  static int try_exit(int closing, int state, yyscan_t yyscanner);
818
+ #line 818 "src/lexer.c"
603
819
  #define YY_NO_INPUT 1
604
- #line 605 "src/lexer.c"
820
+ #line 820 "src/lexer.c"
605
821
 
606
822
  #define INITIAL 0
607
823
  #define IN_PAREN 1
@@ -609,6 +825,7 @@ struct lexer_param;
609
825
  #define IN_BRACE 3
610
826
  #define IN_QQINTERP 4
611
827
  #define IN_QQSTRING 5
828
+ #define IN_COMMENT 6
612
829
 
613
830
  #ifndef YY_NO_UNISTD_H
614
831
  /* Special case for "unistd.h", since it is non-ANSI. We include it way
@@ -634,7 +851,7 @@ struct yyguts_t
634
851
  YY_BUFFER_STATE * yy_buffer_stack; /**< Stack as an array. */
635
852
  char yy_hold_char;
636
853
  int yy_n_chars;
637
- yy_size_t yyleng_r;
854
+ int yyleng_r;
638
855
  char *yy_c_buf_p;
639
856
  int yy_init;
640
857
  int yy_start;
@@ -658,7 +875,7 @@ struct yyguts_t
658
875
 
659
876
  }; /* end struct yyguts_t */
660
877
 
661
- static int yy_init_globals (yyscan_t yyscanner );
878
+ static int yy_init_globals ( yyscan_t yyscanner );
662
879
 
663
880
  /* This must go here because YYSTYPE and YYLTYPE are included
664
881
  * from bison output in section 1.*/
@@ -666,50 +883,50 @@ static int yy_init_globals (yyscan_t yyscanner );
666
883
 
667
884
  # define yylloc yyg->yylloc_r
668
885
 
669
- int jq_yylex_init (yyscan_t* scanner);
886
+ int yylex_init (yyscan_t* scanner);
670
887
 
671
- int jq_yylex_init_extra (YY_EXTRA_TYPE user_defined,yyscan_t* scanner);
888
+ int yylex_init_extra ( YY_EXTRA_TYPE user_defined, yyscan_t* scanner);
672
889
 
673
890
  /* Accessor methods to globals.
674
891
  These are made visible to non-reentrant scanners for convenience. */
675
892
 
676
- int jq_yylex_destroy (yyscan_t yyscanner );
893
+ int yylex_destroy ( yyscan_t yyscanner );
677
894
 
678
- int jq_yyget_debug (yyscan_t yyscanner );
895
+ int yyget_debug ( yyscan_t yyscanner );
679
896
 
680
- void jq_yyset_debug (int debug_flag ,yyscan_t yyscanner );
897
+ void yyset_debug ( int debug_flag , yyscan_t yyscanner );
681
898
 
682
- YY_EXTRA_TYPE jq_yyget_extra (yyscan_t yyscanner );
899
+ YY_EXTRA_TYPE yyget_extra ( yyscan_t yyscanner );
683
900
 
684
- void jq_yyset_extra (YY_EXTRA_TYPE user_defined ,yyscan_t yyscanner );
901
+ void yyset_extra ( YY_EXTRA_TYPE user_defined , yyscan_t yyscanner );
685
902
 
686
- FILE *jq_yyget_in (yyscan_t yyscanner );
903
+ FILE *yyget_in ( yyscan_t yyscanner );
687
904
 
688
- void jq_yyset_in (FILE * _in_str ,yyscan_t yyscanner );
905
+ void yyset_in ( FILE * _in_str , yyscan_t yyscanner );
689
906
 
690
- FILE *jq_yyget_out (yyscan_t yyscanner );
907
+ FILE *yyget_out ( yyscan_t yyscanner );
691
908
 
692
- void jq_yyset_out (FILE * _out_str ,yyscan_t yyscanner );
909
+ void yyset_out ( FILE * _out_str , yyscan_t yyscanner );
693
910
 
694
- yy_size_t jq_yyget_leng (yyscan_t yyscanner );
911
+ int yyget_leng ( yyscan_t yyscanner );
695
912
 
696
- char *jq_yyget_text (yyscan_t yyscanner );
913
+ char *yyget_text ( yyscan_t yyscanner );
697
914
 
698
- int jq_yyget_lineno (yyscan_t yyscanner );
915
+ int yyget_lineno ( yyscan_t yyscanner );
699
916
 
700
- void jq_yyset_lineno (int _line_number ,yyscan_t yyscanner );
917
+ void yyset_lineno ( int _line_number , yyscan_t yyscanner );
701
918
 
702
- int jq_yyget_column (yyscan_t yyscanner );
919
+ int yyget_column ( yyscan_t yyscanner );
703
920
 
704
- void jq_yyset_column (int _column_no ,yyscan_t yyscanner );
921
+ void yyset_column ( int _column_no , yyscan_t yyscanner );
705
922
 
706
- YYSTYPE * jq_yyget_lval (yyscan_t yyscanner );
923
+ YYSTYPE * yyget_lval ( yyscan_t yyscanner );
707
924
 
708
- void jq_yyset_lval (YYSTYPE * yylval_param ,yyscan_t yyscanner );
925
+ void yyset_lval ( YYSTYPE * yylval_param , yyscan_t yyscanner );
709
926
 
710
- YYLTYPE *jq_yyget_lloc (yyscan_t yyscanner );
927
+ YYLTYPE *yyget_lloc ( yyscan_t yyscanner );
711
928
 
712
- void jq_yyset_lloc (YYLTYPE * yylloc_param ,yyscan_t yyscanner );
929
+ void yyset_lloc ( YYLTYPE * yylloc_param , yyscan_t yyscanner );
713
930
 
714
931
  /* Macros after this point can all be overridden by user definitions in
715
932
  * section 1.
@@ -717,9 +934,9 @@ void jq_yyset_lval (YYSTYPE * yylval_param ,yyscan_t yyscanner );
717
934
 
718
935
  #ifndef YY_SKIP_YYWRAP
719
936
  #ifdef __cplusplus
720
- extern "C" int jq_yywrap (yyscan_t yyscanner );
937
+ extern "C" int yywrap ( yyscan_t yyscanner );
721
938
  #else
722
- extern int jq_yywrap (yyscan_t yyscanner );
939
+ extern int yywrap ( yyscan_t yyscanner );
723
940
  #endif
724
941
  #endif
725
942
 
@@ -728,28 +945,27 @@ extern int jq_yywrap (yyscan_t yyscanner );
728
945
  #endif
729
946
 
730
947
  #ifndef yytext_ptr
731
- static void yy_flex_strncpy (char *,yyconst char *,int ,yyscan_t yyscanner);
948
+ static void yy_flex_strncpy ( char *, const char *, int , yyscan_t yyscanner);
732
949
  #endif
733
950
 
734
951
  #ifdef YY_NEED_STRLEN
735
- static int yy_flex_strlen (yyconst char * ,yyscan_t yyscanner);
952
+ static int yy_flex_strlen ( const char * , yyscan_t yyscanner);
736
953
  #endif
737
954
 
738
955
  #ifndef YY_NO_INPUT
739
-
740
956
  #ifdef __cplusplus
741
- static int yyinput (yyscan_t yyscanner );
957
+ static int yyinput ( yyscan_t yyscanner );
742
958
  #else
743
- static int input (yyscan_t yyscanner );
959
+ static int input ( yyscan_t yyscanner );
744
960
  #endif
745
961
 
746
962
  #endif
747
963
 
748
- static void yy_push_state (int _new_state ,yyscan_t yyscanner);
964
+ static void yy_push_state ( int _new_state , yyscan_t yyscanner);
749
965
 
750
- static void yy_pop_state (yyscan_t yyscanner );
966
+ static void yy_pop_state ( yyscan_t yyscanner );
751
967
 
752
- static int yy_top_state (yyscan_t yyscanner );
968
+ static int yy_top_state ( yyscan_t yyscanner );
753
969
 
754
970
  /* Amount of stuff to slurp up with each read. */
755
971
  #ifndef YY_READ_BUF_SIZE
@@ -766,7 +982,7 @@ static int input (yyscan_t yyscanner );
766
982
  /* This used to be an fputs(), but since the string might contain NUL's,
767
983
  * we now use fwrite().
768
984
  */
769
- #define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0)
985
+ #define ECHO do { if (fwrite( yytext, (size_t) yyleng, 1, yyout )) {} } while (0)
770
986
  #endif
771
987
 
772
988
  /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
@@ -777,7 +993,7 @@ static int input (yyscan_t yyscanner );
777
993
  if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
778
994
  { \
779
995
  int c = '*'; \
780
- size_t n; \
996
+ int n; \
781
997
  for ( n = 0; n < max_size && \
782
998
  (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
783
999
  buf[n] = (char) c; \
@@ -790,7 +1006,7 @@ static int input (yyscan_t yyscanner );
790
1006
  else \
791
1007
  { \
792
1008
  errno=0; \
793
- while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \
1009
+ while ( (result = (int) fread(buf, 1, (yy_size_t) max_size, yyin)) == 0 && ferror(yyin)) \
794
1010
  { \
795
1011
  if( errno != EINTR) \
796
1012
  { \
@@ -831,10 +1047,10 @@ static int input (yyscan_t yyscanner );
831
1047
  #ifndef YY_DECL
832
1048
  #define YY_DECL_IS_OURS 1
833
1049
 
834
- extern int jq_yylex \
835
- (YYSTYPE * yylval_param,YYLTYPE * yylloc_param ,yyscan_t yyscanner);
1050
+ extern int yylex \
1051
+ (YYSTYPE * yylval_param, YYLTYPE * yylloc_param , yyscan_t yyscanner);
836
1052
 
837
- #define YY_DECL int jq_yylex \
1053
+ #define YY_DECL int yylex \
838
1054
  (YYSTYPE * yylval_param, YYLTYPE * yylloc_param , yyscan_t yyscanner)
839
1055
  #endif /* !YY_DECL */
840
1056
 
@@ -884,19 +1100,19 @@ YY_DECL
884
1100
  yyout = stdout;
885
1101
 
886
1102
  if ( ! YY_CURRENT_BUFFER ) {
887
- jq_yyensure_buffer_stack (yyscanner);
1103
+ yyensure_buffer_stack (yyscanner);
888
1104
  YY_CURRENT_BUFFER_LVALUE =
889
- jq_yy_create_buffer(yyin,YY_BUF_SIZE ,yyscanner);
1105
+ yy_create_buffer( yyin, YY_BUF_SIZE , yyscanner);
890
1106
  }
891
1107
 
892
- jq_yy_load_buffer_state(yyscanner );
1108
+ yy_load_buffer_state( yyscanner );
893
1109
  }
894
1110
 
895
1111
  {
896
- #line 38 "src/lexer.l"
1112
+ #line 39 "src/lexer.l"
897
1113
 
898
1114
 
899
- #line 900 "src/lexer.c"
1115
+ #line 1115 "src/lexer.c"
900
1116
 
901
1117
  while ( /*CONSTCOND*/1 ) /* loops until end-of-file is reached */
902
1118
  {
@@ -923,13 +1139,13 @@ yy_match:
923
1139
  while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
924
1140
  {
925
1141
  yy_current_state = (int) yy_def[yy_current_state];
926
- if ( yy_current_state >= 157 )
927
- yy_c = yy_meta[(unsigned int) yy_c];
1142
+ if ( yy_current_state >= 168 )
1143
+ yy_c = yy_meta[yy_c];
928
1144
  }
929
- yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
1145
+ yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
930
1146
  ++yy_cp;
931
1147
  }
932
- while ( yy_base[yy_current_state] != 321 );
1148
+ while ( yy_base[yy_current_state] != 332 );
933
1149
 
934
1150
  yy_find_action:
935
1151
  yy_act = yy_accept[yy_current_state];
@@ -955,235 +1171,253 @@ do_action: /* This label is used only to access EOF actions. */
955
1171
 
956
1172
  case 1:
957
1173
  YY_RULE_SETUP
958
- #line 40 "src/lexer.l"
959
- { /* comments */ }
1174
+ #line 41 "src/lexer.l"
1175
+ { yy_push_state(IN_COMMENT, yyscanner); }
960
1176
  YY_BREAK
1177
+
961
1178
  case 2:
1179
+ /* rule 2 can match eol */
962
1180
  YY_RULE_SETUP
963
- #line 42 "src/lexer.l"
964
- { return NEQ; }
1181
+ #line 43 "src/lexer.l"
1182
+ { }
965
1183
  YY_BREAK
966
1184
  case 3:
1185
+ /* rule 3 can match eol */
967
1186
  YY_RULE_SETUP
968
- #line 43 "src/lexer.l"
969
- { return EQ; }
1187
+ #line 44 "src/lexer.l"
1188
+ { yy_pop_state(yyscanner); }
1189
+ YY_BREAK
1190
+
1191
+ case YY_STATE_EOF(IN_COMMENT):
1192
+ #line 46 "src/lexer.l"
1193
+ { yy_pop_state(yyscanner); }
970
1194
  YY_BREAK
971
1195
  case 4:
972
1196
  YY_RULE_SETUP
973
- #line 44 "src/lexer.l"
974
- { return AS; }
1197
+ #line 48 "src/lexer.l"
1198
+ { return NEQ; }
975
1199
  YY_BREAK
976
1200
  case 5:
977
1201
  YY_RULE_SETUP
978
- #line 45 "src/lexer.l"
979
- { return IMPORT; }
1202
+ #line 49 "src/lexer.l"
1203
+ { return EQ; }
980
1204
  YY_BREAK
981
1205
  case 6:
982
1206
  YY_RULE_SETUP
983
- #line 46 "src/lexer.l"
984
- { return INCLUDE; }
1207
+ #line 50 "src/lexer.l"
1208
+ { return AS; }
985
1209
  YY_BREAK
986
1210
  case 7:
987
1211
  YY_RULE_SETUP
988
- #line 47 "src/lexer.l"
989
- { return MODULE; }
1212
+ #line 51 "src/lexer.l"
1213
+ { return IMPORT; }
990
1214
  YY_BREAK
991
1215
  case 8:
992
1216
  YY_RULE_SETUP
993
- #line 48 "src/lexer.l"
994
- { return DEF; }
1217
+ #line 52 "src/lexer.l"
1218
+ { return INCLUDE; }
995
1219
  YY_BREAK
996
1220
  case 9:
997
1221
  YY_RULE_SETUP
998
- #line 49 "src/lexer.l"
999
- { return IF; }
1222
+ #line 53 "src/lexer.l"
1223
+ { return MODULE; }
1000
1224
  YY_BREAK
1001
1225
  case 10:
1002
1226
  YY_RULE_SETUP
1003
- #line 50 "src/lexer.l"
1004
- { return THEN; }
1227
+ #line 54 "src/lexer.l"
1228
+ { return DEF; }
1005
1229
  YY_BREAK
1006
1230
  case 11:
1007
1231
  YY_RULE_SETUP
1008
- #line 51 "src/lexer.l"
1009
- { return ELSE; }
1232
+ #line 55 "src/lexer.l"
1233
+ { return IF; }
1010
1234
  YY_BREAK
1011
1235
  case 12:
1012
1236
  YY_RULE_SETUP
1013
- #line 52 "src/lexer.l"
1014
- { return ELSE_IF; }
1237
+ #line 56 "src/lexer.l"
1238
+ { return THEN; }
1015
1239
  YY_BREAK
1016
1240
  case 13:
1017
1241
  YY_RULE_SETUP
1018
- #line 53 "src/lexer.l"
1019
- { return AND; }
1242
+ #line 57 "src/lexer.l"
1243
+ { return ELSE; }
1020
1244
  YY_BREAK
1021
1245
  case 14:
1022
1246
  YY_RULE_SETUP
1023
- #line 54 "src/lexer.l"
1024
- { return OR; }
1247
+ #line 58 "src/lexer.l"
1248
+ { return ELSE_IF; }
1025
1249
  YY_BREAK
1026
1250
  case 15:
1027
1251
  YY_RULE_SETUP
1028
- #line 55 "src/lexer.l"
1029
- { return END; }
1252
+ #line 59 "src/lexer.l"
1253
+ { return AND; }
1030
1254
  YY_BREAK
1031
1255
  case 16:
1032
1256
  YY_RULE_SETUP
1033
- #line 56 "src/lexer.l"
1034
- { return REDUCE; }
1257
+ #line 60 "src/lexer.l"
1258
+ { return OR; }
1035
1259
  YY_BREAK
1036
1260
  case 17:
1037
1261
  YY_RULE_SETUP
1038
- #line 57 "src/lexer.l"
1039
- { return FOREACH; }
1262
+ #line 61 "src/lexer.l"
1263
+ { return END; }
1040
1264
  YY_BREAK
1041
1265
  case 18:
1042
1266
  YY_RULE_SETUP
1043
- #line 58 "src/lexer.l"
1044
- { return DEFINEDOR; }
1267
+ #line 62 "src/lexer.l"
1268
+ { return REDUCE; }
1045
1269
  YY_BREAK
1046
1270
  case 19:
1047
1271
  YY_RULE_SETUP
1048
- #line 59 "src/lexer.l"
1049
- { return TRY; }
1272
+ #line 63 "src/lexer.l"
1273
+ { return FOREACH; }
1050
1274
  YY_BREAK
1051
1275
  case 20:
1052
1276
  YY_RULE_SETUP
1053
- #line 60 "src/lexer.l"
1054
- { return CATCH; }
1277
+ #line 64 "src/lexer.l"
1278
+ { return DEFINEDOR; }
1055
1279
  YY_BREAK
1056
1280
  case 21:
1057
1281
  YY_RULE_SETUP
1058
- #line 61 "src/lexer.l"
1059
- { return LABEL; }
1282
+ #line 65 "src/lexer.l"
1283
+ { return TRY; }
1060
1284
  YY_BREAK
1061
1285
  case 22:
1062
1286
  YY_RULE_SETUP
1063
- #line 62 "src/lexer.l"
1064
- { return BREAK; }
1287
+ #line 66 "src/lexer.l"
1288
+ { return CATCH; }
1065
1289
  YY_BREAK
1066
1290
  case 23:
1067
1291
  YY_RULE_SETUP
1068
- #line 63 "src/lexer.l"
1069
- { return LOC; }
1292
+ #line 67 "src/lexer.l"
1293
+ { return LABEL; }
1070
1294
  YY_BREAK
1071
1295
  case 24:
1072
1296
  YY_RULE_SETUP
1073
- #line 64 "src/lexer.l"
1074
- { return SETPIPE; }
1297
+ #line 68 "src/lexer.l"
1298
+ { return BREAK; }
1075
1299
  YY_BREAK
1076
1300
  case 25:
1077
1301
  YY_RULE_SETUP
1078
- #line 65 "src/lexer.l"
1079
- { return SETPLUS; }
1302
+ #line 69 "src/lexer.l"
1303
+ { return LOC; }
1080
1304
  YY_BREAK
1081
1305
  case 26:
1082
1306
  YY_RULE_SETUP
1083
- #line 66 "src/lexer.l"
1084
- { return SETMINUS; }
1307
+ #line 70 "src/lexer.l"
1308
+ { return SETPIPE; }
1085
1309
  YY_BREAK
1086
1310
  case 27:
1087
1311
  YY_RULE_SETUP
1088
- #line 67 "src/lexer.l"
1089
- { return SETMULT; }
1312
+ #line 71 "src/lexer.l"
1313
+ { return SETPLUS; }
1090
1314
  YY_BREAK
1091
1315
  case 28:
1092
1316
  YY_RULE_SETUP
1093
- #line 68 "src/lexer.l"
1094
- { return SETDIV; }
1317
+ #line 72 "src/lexer.l"
1318
+ { return SETMINUS; }
1095
1319
  YY_BREAK
1096
1320
  case 29:
1097
1321
  YY_RULE_SETUP
1098
- #line 69 "src/lexer.l"
1099
- { return SETMOD; }
1322
+ #line 73 "src/lexer.l"
1323
+ { return SETMULT; }
1100
1324
  YY_BREAK
1101
1325
  case 30:
1102
1326
  YY_RULE_SETUP
1103
- #line 70 "src/lexer.l"
1104
- { return SETDEFINEDOR; }
1327
+ #line 74 "src/lexer.l"
1328
+ { return SETDIV; }
1105
1329
  YY_BREAK
1106
1330
  case 31:
1107
1331
  YY_RULE_SETUP
1108
- #line 71 "src/lexer.l"
1109
- { return LESSEQ; }
1332
+ #line 75 "src/lexer.l"
1333
+ { return SETMOD; }
1110
1334
  YY_BREAK
1111
1335
  case 32:
1112
1336
  YY_RULE_SETUP
1113
- #line 72 "src/lexer.l"
1114
- { return GREATEREQ; }
1337
+ #line 76 "src/lexer.l"
1338
+ { return SETDEFINEDOR; }
1115
1339
  YY_BREAK
1116
1340
  case 33:
1117
1341
  YY_RULE_SETUP
1118
- #line 73 "src/lexer.l"
1119
- { return REC; }
1342
+ #line 77 "src/lexer.l"
1343
+ { return LESSEQ; }
1120
1344
  YY_BREAK
1121
1345
  case 34:
1122
1346
  YY_RULE_SETUP
1123
- #line 74 "src/lexer.l"
1124
- { return ALTERNATION; }
1347
+ #line 78 "src/lexer.l"
1348
+ { return GREATEREQ; }
1125
1349
  YY_BREAK
1126
1350
  case 35:
1127
1351
  YY_RULE_SETUP
1128
- #line 75 "src/lexer.l"
1129
- { return yytext[0];}
1352
+ #line 79 "src/lexer.l"
1353
+ { return REC; }
1130
1354
  YY_BREAK
1131
1355
  case 36:
1132
1356
  YY_RULE_SETUP
1133
- #line 77 "src/lexer.l"
1357
+ #line 80 "src/lexer.l"
1358
+ { return ALTERNATION; }
1359
+ YY_BREAK
1360
+ case 37:
1361
+ YY_RULE_SETUP
1362
+ #line 81 "src/lexer.l"
1363
+ { return yytext[0];}
1364
+ YY_BREAK
1365
+ case 38:
1366
+ YY_RULE_SETUP
1367
+ #line 83 "src/lexer.l"
1134
1368
  {
1135
1369
  return enter(yytext[0], YY_START, yyscanner);
1136
1370
  }
1137
1371
  YY_BREAK
1138
- case 37:
1372
+ case 39:
1139
1373
  YY_RULE_SETUP
1140
- #line 81 "src/lexer.l"
1374
+ #line 87 "src/lexer.l"
1141
1375
  {
1142
1376
  return try_exit(yytext[0], YY_START, yyscanner);
1143
1377
  }
1144
1378
  YY_BREAK
1145
- case 38:
1379
+ case 40:
1146
1380
  YY_RULE_SETUP
1147
- #line 85 "src/lexer.l"
1381
+ #line 91 "src/lexer.l"
1148
1382
  {
1149
1383
  yylval->literal = jv_string_sized(yytext + 1, yyleng - 1); return FORMAT;
1150
1384
  }
1151
1385
  YY_BREAK
1152
- case 39:
1386
+ case 41:
1153
1387
  YY_RULE_SETUP
1154
- #line 89 "src/lexer.l"
1388
+ #line 95 "src/lexer.l"
1155
1389
  {
1156
1390
  yylval->literal = jv_parse_sized(yytext, yyleng); return LITERAL;
1157
1391
  }
1158
1392
  YY_BREAK
1159
- case 40:
1393
+ case 42:
1160
1394
  YY_RULE_SETUP
1161
- #line 93 "src/lexer.l"
1395
+ #line 99 "src/lexer.l"
1162
1396
  {
1163
1397
  yy_push_state(IN_QQSTRING, yyscanner);
1164
1398
  return QQSTRING_START;
1165
1399
  }
1166
1400
  YY_BREAK
1167
1401
 
1168
- case 41:
1402
+ case 43:
1169
1403
  YY_RULE_SETUP
1170
- #line 99 "src/lexer.l"
1404
+ #line 105 "src/lexer.l"
1171
1405
  {
1172
1406
  return enter(QQSTRING_INTERP_START, YY_START, yyscanner);
1173
1407
  }
1174
1408
  YY_BREAK
1175
- case 42:
1409
+ case 44:
1176
1410
  YY_RULE_SETUP
1177
- #line 102 "src/lexer.l"
1411
+ #line 108 "src/lexer.l"
1178
1412
  {
1179
1413
  yy_pop_state(yyscanner);
1180
1414
  return QQSTRING_END;
1181
1415
  }
1182
1416
  YY_BREAK
1183
- case 43:
1184
- /* rule 43 can match eol */
1417
+ case 45:
1418
+ /* rule 45 can match eol */
1185
1419
  YY_RULE_SETUP
1186
- #line 106 "src/lexer.l"
1420
+ #line 112 "src/lexer.l"
1187
1421
  {
1188
1422
  /* pass escapes to the json parser */
1189
1423
  jv escapes = jv_string_fmt("\"%.*s\"", (int)yyleng, yytext);
@@ -1192,50 +1426,55 @@ YY_RULE_SETUP
1192
1426
  return QQSTRING_TEXT;
1193
1427
  }
1194
1428
  YY_BREAK
1195
- case 44:
1196
- /* rule 44 can match eol */
1429
+ case 46:
1430
+ /* rule 46 can match eol */
1197
1431
  YY_RULE_SETUP
1198
- #line 113 "src/lexer.l"
1432
+ #line 119 "src/lexer.l"
1199
1433
  {
1200
1434
  yylval->literal = jv_string_sized(yytext, yyleng);
1201
1435
  return QQSTRING_TEXT;
1202
1436
  }
1203
1437
  YY_BREAK
1204
- case 45:
1438
+ case 47:
1205
1439
  YY_RULE_SETUP
1206
- #line 117 "src/lexer.l"
1440
+ #line 123 "src/lexer.l"
1207
1441
  {
1208
1442
  return INVALID_CHARACTER;
1209
1443
  }
1210
1444
  YY_BREAK
1211
1445
 
1212
- case 46:
1446
+ case 48:
1213
1447
  YY_RULE_SETUP
1214
- #line 123 "src/lexer.l"
1448
+ #line 129 "src/lexer.l"
1215
1449
  { yylval->literal = jv_string(yytext); return IDENT;}
1216
1450
  YY_BREAK
1217
- case 47:
1451
+ case 49:
1218
1452
  YY_RULE_SETUP
1219
- #line 124 "src/lexer.l"
1453
+ #line 130 "src/lexer.l"
1220
1454
  { yylval->literal = jv_string(yytext+1); return FIELD;}
1221
1455
  YY_BREAK
1222
- case 48:
1223
- /* rule 48 can match eol */
1456
+ case 50:
1224
1457
  YY_RULE_SETUP
1225
- #line 126 "src/lexer.l"
1458
+ #line 131 "src/lexer.l"
1459
+ { yylval->literal = jv_string(yytext+1); return BINDING;}
1460
+ YY_BREAK
1461
+ case 51:
1462
+ /* rule 51 can match eol */
1463
+ YY_RULE_SETUP
1464
+ #line 133 "src/lexer.l"
1226
1465
  {}
1227
1466
  YY_BREAK
1228
- case 49:
1467
+ case 52:
1229
1468
  YY_RULE_SETUP
1230
- #line 128 "src/lexer.l"
1469
+ #line 135 "src/lexer.l"
1231
1470
  { return INVALID_CHARACTER; }
1232
1471
  YY_BREAK
1233
- case 50:
1472
+ case 53:
1234
1473
  YY_RULE_SETUP
1235
- #line 130 "src/lexer.l"
1474
+ #line 137 "src/lexer.l"
1236
1475
  YY_FATAL_ERROR( "flex scanner jammed" );
1237
1476
  YY_BREAK
1238
- #line 1239 "src/lexer.c"
1477
+ #line 1477 "src/lexer.c"
1239
1478
  case YY_STATE_EOF(INITIAL):
1240
1479
  case YY_STATE_EOF(IN_PAREN):
1241
1480
  case YY_STATE_EOF(IN_BRACKET):
@@ -1258,7 +1497,7 @@ case YY_STATE_EOF(IN_QQSTRING):
1258
1497
  /* We're scanning a new file or input source. It's
1259
1498
  * possible that this happened because the user
1260
1499
  * just pointed yyin at a new source and called
1261
- * jq_yylex(). If so, then we have to assure
1500
+ * yylex(). If so, then we have to assure
1262
1501
  * consistency between YY_CURRENT_BUFFER and our
1263
1502
  * globals. Here is the right place to do so, because
1264
1503
  * this is the first action (other than possibly a
@@ -1318,7 +1557,7 @@ case YY_STATE_EOF(IN_QQSTRING):
1318
1557
  {
1319
1558
  yyg->yy_did_buffer_switch_on_eof = 0;
1320
1559
 
1321
- if ( jq_yywrap(yyscanner ) )
1560
+ if ( yywrap( yyscanner ) )
1322
1561
  {
1323
1562
  /* Note: because we've taken care in
1324
1563
  * yy_get_next_buffer() to have set up
@@ -1372,7 +1611,7 @@ case YY_STATE_EOF(IN_QQSTRING):
1372
1611
  } /* end of action switch */
1373
1612
  } /* end of scanning one token */
1374
1613
  } /* end of user's declarations */
1375
- } /* end of jq_yylex */
1614
+ } /* end of yylex */
1376
1615
 
1377
1616
  /* yy_get_next_buffer - try to read in a new buffer
1378
1617
  *
@@ -1386,7 +1625,7 @@ static int yy_get_next_buffer (yyscan_t yyscanner)
1386
1625
  struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
1387
1626
  char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
1388
1627
  char *source = yyg->yytext_ptr;
1389
- yy_size_t number_to_move, i;
1628
+ int number_to_move, i;
1390
1629
  int ret_val;
1391
1630
 
1392
1631
  if ( yyg->yy_c_buf_p > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] )
@@ -1415,7 +1654,7 @@ static int yy_get_next_buffer (yyscan_t yyscanner)
1415
1654
  /* Try to read more data. */
1416
1655
 
1417
1656
  /* First move last chars to start of buffer. */
1418
- number_to_move = (yy_size_t) (yyg->yy_c_buf_p - yyg->yytext_ptr) - 1;
1657
+ number_to_move = (int) (yyg->yy_c_buf_p - yyg->yytext_ptr - 1);
1419
1658
 
1420
1659
  for ( i = 0; i < number_to_move; ++i )
1421
1660
  *(dest++) = *(source++);
@@ -1428,7 +1667,7 @@ static int yy_get_next_buffer (yyscan_t yyscanner)
1428
1667
 
1429
1668
  else
1430
1669
  {
1431
- yy_size_t num_to_read =
1670
+ int num_to_read =
1432
1671
  YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
1433
1672
 
1434
1673
  while ( num_to_read <= 0 )
@@ -1442,7 +1681,7 @@ static int yy_get_next_buffer (yyscan_t yyscanner)
1442
1681
 
1443
1682
  if ( b->yy_is_our_buffer )
1444
1683
  {
1445
- yy_size_t new_size = b->yy_buf_size * 2;
1684
+ int new_size = b->yy_buf_size * 2;
1446
1685
 
1447
1686
  if ( new_size <= 0 )
1448
1687
  b->yy_buf_size += b->yy_buf_size / 8;
@@ -1451,11 +1690,12 @@ static int yy_get_next_buffer (yyscan_t yyscanner)
1451
1690
 
1452
1691
  b->yy_ch_buf = (char *)
1453
1692
  /* Include room in for 2 EOB chars. */
1454
- jq_yyrealloc((void *) b->yy_ch_buf,b->yy_buf_size + 2 ,yyscanner );
1693
+ yyrealloc( (void *) b->yy_ch_buf,
1694
+ (yy_size_t) (b->yy_buf_size + 2) , yyscanner );
1455
1695
  }
1456
1696
  else
1457
1697
  /* Can't grow it, we don't own it. */
1458
- b->yy_ch_buf = 0;
1698
+ b->yy_ch_buf = NULL;
1459
1699
 
1460
1700
  if ( ! b->yy_ch_buf )
1461
1701
  YY_FATAL_ERROR(
@@ -1483,7 +1723,7 @@ static int yy_get_next_buffer (yyscan_t yyscanner)
1483
1723
  if ( number_to_move == YY_MORE_ADJ )
1484
1724
  {
1485
1725
  ret_val = EOB_ACT_END_OF_FILE;
1486
- jq_yyrestart(yyin ,yyscanner);
1726
+ yyrestart( yyin , yyscanner);
1487
1727
  }
1488
1728
 
1489
1729
  else
@@ -1497,12 +1737,15 @@ static int yy_get_next_buffer (yyscan_t yyscanner)
1497
1737
  else
1498
1738
  ret_val = EOB_ACT_CONTINUE_SCAN;
1499
1739
 
1500
- if ((int) (yyg->yy_n_chars + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
1740
+ if ((yyg->yy_n_chars + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
1501
1741
  /* Extend the array by 50%, plus the number we really need. */
1502
1742
  int new_size = yyg->yy_n_chars + number_to_move + (yyg->yy_n_chars >> 1);
1503
- YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) jq_yyrealloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size ,yyscanner );
1743
+ YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc(
1744
+ (void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf, (yy_size_t) new_size , yyscanner );
1504
1745
  if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
1505
1746
  YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
1747
+ /* "- 2" to take care of EOB's */
1748
+ YY_CURRENT_BUFFER_LVALUE->yy_buf_size = (int) (new_size - 2);
1506
1749
  }
1507
1750
 
1508
1751
  yyg->yy_n_chars += number_to_move;
@@ -1535,10 +1778,10 @@ static int yy_get_next_buffer (yyscan_t yyscanner)
1535
1778
  while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1536
1779
  {
1537
1780
  yy_current_state = (int) yy_def[yy_current_state];
1538
- if ( yy_current_state >= 157 )
1539
- yy_c = yy_meta[(unsigned int) yy_c];
1781
+ if ( yy_current_state >= 168 )
1782
+ yy_c = yy_meta[yy_c];
1540
1783
  }
1541
- yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
1784
+ yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
1542
1785
  }
1543
1786
 
1544
1787
  return yy_current_state;
@@ -1564,11 +1807,11 @@ static int yy_get_next_buffer (yyscan_t yyscanner)
1564
1807
  while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1565
1808
  {
1566
1809
  yy_current_state = (int) yy_def[yy_current_state];
1567
- if ( yy_current_state >= 157 )
1568
- yy_c = yy_meta[(unsigned int) yy_c];
1810
+ if ( yy_current_state >= 168 )
1811
+ yy_c = yy_meta[yy_c];
1569
1812
  }
1570
- yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
1571
- yy_is_jam = (yy_current_state == 156);
1813
+ yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
1814
+ yy_is_jam = (yy_current_state == 167);
1572
1815
 
1573
1816
  (void)yyg;
1574
1817
  return yy_is_jam ? 0 : yy_current_state;
@@ -1603,7 +1846,7 @@ static int yy_get_next_buffer (yyscan_t yyscanner)
1603
1846
 
1604
1847
  else
1605
1848
  { /* need more input */
1606
- yy_size_t offset = yyg->yy_c_buf_p - yyg->yytext_ptr;
1849
+ int offset = (int) (yyg->yy_c_buf_p - yyg->yytext_ptr);
1607
1850
  ++yyg->yy_c_buf_p;
1608
1851
 
1609
1852
  switch ( yy_get_next_buffer( yyscanner ) )
@@ -1620,14 +1863,14 @@ static int yy_get_next_buffer (yyscan_t yyscanner)
1620
1863
  */
1621
1864
 
1622
1865
  /* Reset buffer status. */
1623
- jq_yyrestart(yyin ,yyscanner);
1866
+ yyrestart( yyin , yyscanner);
1624
1867
 
1625
1868
  /*FALLTHROUGH*/
1626
1869
 
1627
1870
  case EOB_ACT_END_OF_FILE:
1628
1871
  {
1629
- if ( jq_yywrap(yyscanner ) )
1630
- return EOF;
1872
+ if ( yywrap( yyscanner ) )
1873
+ return 0;
1631
1874
 
1632
1875
  if ( ! yyg->yy_did_buffer_switch_on_eof )
1633
1876
  YY_NEW_FILE;
@@ -1658,34 +1901,34 @@ static int yy_get_next_buffer (yyscan_t yyscanner)
1658
1901
  * @param yyscanner The scanner object.
1659
1902
  * @note This function does not reset the start condition to @c INITIAL .
1660
1903
  */
1661
- void jq_yyrestart (FILE * input_file , yyscan_t yyscanner)
1904
+ void yyrestart (FILE * input_file , yyscan_t yyscanner)
1662
1905
  {
1663
1906
  struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
1664
1907
 
1665
1908
  if ( ! YY_CURRENT_BUFFER ){
1666
- jq_yyensure_buffer_stack (yyscanner);
1909
+ yyensure_buffer_stack (yyscanner);
1667
1910
  YY_CURRENT_BUFFER_LVALUE =
1668
- jq_yy_create_buffer(yyin,YY_BUF_SIZE ,yyscanner);
1911
+ yy_create_buffer( yyin, YY_BUF_SIZE , yyscanner);
1669
1912
  }
1670
1913
 
1671
- jq_yy_init_buffer(YY_CURRENT_BUFFER,input_file ,yyscanner);
1672
- jq_yy_load_buffer_state(yyscanner );
1914
+ yy_init_buffer( YY_CURRENT_BUFFER, input_file , yyscanner);
1915
+ yy_load_buffer_state( yyscanner );
1673
1916
  }
1674
1917
 
1675
1918
  /** Switch to a different input buffer.
1676
1919
  * @param new_buffer The new input buffer.
1677
1920
  * @param yyscanner The scanner object.
1678
1921
  */
1679
- void jq_yy_switch_to_buffer (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner)
1922
+ void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner)
1680
1923
  {
1681
1924
  struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
1682
1925
 
1683
1926
  /* TODO. We should be able to replace this entire function body
1684
1927
  * with
1685
- * jq_yypop_buffer_state();
1686
- * jq_yypush_buffer_state(new_buffer);
1928
+ * yypop_buffer_state();
1929
+ * yypush_buffer_state(new_buffer);
1687
1930
  */
1688
- jq_yyensure_buffer_stack (yyscanner);
1931
+ yyensure_buffer_stack (yyscanner);
1689
1932
  if ( YY_CURRENT_BUFFER == new_buffer )
1690
1933
  return;
1691
1934
 
@@ -1698,17 +1941,17 @@ static int yy_get_next_buffer (yyscan_t yyscanner)
1698
1941
  }
1699
1942
 
1700
1943
  YY_CURRENT_BUFFER_LVALUE = new_buffer;
1701
- jq_yy_load_buffer_state(yyscanner );
1944
+ yy_load_buffer_state( yyscanner );
1702
1945
 
1703
1946
  /* We don't actually know whether we did this switch during
1704
- * EOF (jq_yywrap()) processing, but the only time this flag
1705
- * is looked at is after jq_yywrap() is called, so it's safe
1947
+ * EOF (yywrap()) processing, but the only time this flag
1948
+ * is looked at is after yywrap() is called, so it's safe
1706
1949
  * to go ahead and always set it.
1707
1950
  */
1708
1951
  yyg->yy_did_buffer_switch_on_eof = 1;
1709
1952
  }
1710
1953
 
1711
- static void jq_yy_load_buffer_state (yyscan_t yyscanner)
1954
+ static void yy_load_buffer_state (yyscan_t yyscanner)
1712
1955
  {
1713
1956
  struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
1714
1957
  yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
@@ -1723,35 +1966,35 @@ static void jq_yy_load_buffer_state (yyscan_t yyscanner)
1723
1966
  * @param yyscanner The scanner object.
1724
1967
  * @return the allocated buffer state.
1725
1968
  */
1726
- YY_BUFFER_STATE jq_yy_create_buffer (FILE * file, int size , yyscan_t yyscanner)
1969
+ YY_BUFFER_STATE yy_create_buffer (FILE * file, int size , yyscan_t yyscanner)
1727
1970
  {
1728
1971
  YY_BUFFER_STATE b;
1729
1972
 
1730
- b = (YY_BUFFER_STATE) jq_yyalloc(sizeof( struct yy_buffer_state ) ,yyscanner );
1973
+ b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state ) , yyscanner );
1731
1974
  if ( ! b )
1732
- YY_FATAL_ERROR( "out of dynamic memory in jq_yy_create_buffer()" );
1975
+ YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
1733
1976
 
1734
- b->yy_buf_size = (yy_size_t)size;
1977
+ b->yy_buf_size = size;
1735
1978
 
1736
1979
  /* yy_ch_buf has to be 2 characters longer than the size given because
1737
1980
  * we need to put in 2 end-of-buffer characters.
1738
1981
  */
1739
- b->yy_ch_buf = (char *) jq_yyalloc(b->yy_buf_size + 2 ,yyscanner );
1982
+ b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2) , yyscanner );
1740
1983
  if ( ! b->yy_ch_buf )
1741
- YY_FATAL_ERROR( "out of dynamic memory in jq_yy_create_buffer()" );
1984
+ YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
1742
1985
 
1743
1986
  b->yy_is_our_buffer = 1;
1744
1987
 
1745
- jq_yy_init_buffer(b,file ,yyscanner);
1988
+ yy_init_buffer( b, file , yyscanner);
1746
1989
 
1747
1990
  return b;
1748
1991
  }
1749
1992
 
1750
1993
  /** Destroy the buffer.
1751
- * @param b a buffer created with jq_yy_create_buffer()
1994
+ * @param b a buffer created with yy_create_buffer()
1752
1995
  * @param yyscanner The scanner object.
1753
1996
  */
1754
- void jq_yy_delete_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner)
1997
+ void yy_delete_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner)
1755
1998
  {
1756
1999
  struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
1757
2000
 
@@ -1762,28 +2005,28 @@ static void jq_yy_load_buffer_state (yyscan_t yyscanner)
1762
2005
  YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;
1763
2006
 
1764
2007
  if ( b->yy_is_our_buffer )
1765
- jq_yyfree((void *) b->yy_ch_buf ,yyscanner );
2008
+ yyfree( (void *) b->yy_ch_buf , yyscanner );
1766
2009
 
1767
- jq_yyfree((void *) b ,yyscanner );
2010
+ yyfree( (void *) b , yyscanner );
1768
2011
  }
1769
2012
 
1770
2013
  /* Initializes or reinitializes a buffer.
1771
2014
  * This function is sometimes called more than once on the same buffer,
1772
- * such as during a jq_yyrestart() or at EOF.
2015
+ * such as during a yyrestart() or at EOF.
1773
2016
  */
1774
- static void jq_yy_init_buffer (YY_BUFFER_STATE b, FILE * file , yyscan_t yyscanner)
2017
+ static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file , yyscan_t yyscanner)
1775
2018
 
1776
2019
  {
1777
2020
  int oerrno = errno;
1778
2021
  struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
1779
2022
 
1780
- jq_yy_flush_buffer(b ,yyscanner);
2023
+ yy_flush_buffer( b , yyscanner);
1781
2024
 
1782
2025
  b->yy_input_file = file;
1783
2026
  b->yy_fill_buffer = 1;
1784
2027
 
1785
- /* If b is the current buffer, then jq_yy_init_buffer was _probably_
1786
- * called from jq_yyrestart() or through yy_get_next_buffer.
2028
+ /* If b is the current buffer, then yy_init_buffer was _probably_
2029
+ * called from yyrestart() or through yy_get_next_buffer.
1787
2030
  * In that case, we don't want to reset the lineno or column.
1788
2031
  */
1789
2032
  if (b != YY_CURRENT_BUFFER){
@@ -1800,7 +2043,7 @@ static void jq_yy_load_buffer_state (yyscan_t yyscanner)
1800
2043
  * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER.
1801
2044
  * @param yyscanner The scanner object.
1802
2045
  */
1803
- void jq_yy_flush_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner)
2046
+ void yy_flush_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner)
1804
2047
  {
1805
2048
  struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
1806
2049
  if ( ! b )
@@ -1821,7 +2064,7 @@ static void jq_yy_load_buffer_state (yyscan_t yyscanner)
1821
2064
  b->yy_buffer_status = YY_BUFFER_NEW;
1822
2065
 
1823
2066
  if ( b == YY_CURRENT_BUFFER )
1824
- jq_yy_load_buffer_state(yyscanner );
2067
+ yy_load_buffer_state( yyscanner );
1825
2068
  }
1826
2069
 
1827
2070
  /** Pushes the new state onto the stack. The new state becomes
@@ -1830,15 +2073,15 @@ static void jq_yy_load_buffer_state (yyscan_t yyscanner)
1830
2073
  * @param new_buffer The new state.
1831
2074
  * @param yyscanner The scanner object.
1832
2075
  */
1833
- void jq_yypush_buffer_state (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner)
2076
+ void yypush_buffer_state (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner)
1834
2077
  {
1835
2078
  struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
1836
2079
  if (new_buffer == NULL)
1837
2080
  return;
1838
2081
 
1839
- jq_yyensure_buffer_stack(yyscanner);
2082
+ yyensure_buffer_stack(yyscanner);
1840
2083
 
1841
- /* This block is copied from jq_yy_switch_to_buffer. */
2084
+ /* This block is copied from yy_switch_to_buffer. */
1842
2085
  if ( YY_CURRENT_BUFFER )
1843
2086
  {
1844
2087
  /* Flush out information for old buffer. */
@@ -1852,8 +2095,8 @@ void jq_yypush_buffer_state (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner)
1852
2095
  yyg->yy_buffer_stack_top++;
1853
2096
  YY_CURRENT_BUFFER_LVALUE = new_buffer;
1854
2097
 
1855
- /* copied from jq_yy_switch_to_buffer. */
1856
- jq_yy_load_buffer_state(yyscanner );
2098
+ /* copied from yy_switch_to_buffer. */
2099
+ yy_load_buffer_state( yyscanner );
1857
2100
  yyg->yy_did_buffer_switch_on_eof = 1;
1858
2101
  }
1859
2102
 
@@ -1861,19 +2104,19 @@ void jq_yypush_buffer_state (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner)
1861
2104
  * The next element becomes the new top.
1862
2105
  * @param yyscanner The scanner object.
1863
2106
  */
1864
- void jq_yypop_buffer_state (yyscan_t yyscanner)
2107
+ void yypop_buffer_state (yyscan_t yyscanner)
1865
2108
  {
1866
2109
  struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
1867
2110
  if (!YY_CURRENT_BUFFER)
1868
2111
  return;
1869
2112
 
1870
- jq_yy_delete_buffer(YY_CURRENT_BUFFER ,yyscanner);
2113
+ yy_delete_buffer(YY_CURRENT_BUFFER , yyscanner);
1871
2114
  YY_CURRENT_BUFFER_LVALUE = NULL;
1872
2115
  if (yyg->yy_buffer_stack_top > 0)
1873
2116
  --yyg->yy_buffer_stack_top;
1874
2117
 
1875
2118
  if (YY_CURRENT_BUFFER) {
1876
- jq_yy_load_buffer_state(yyscanner );
2119
+ yy_load_buffer_state( yyscanner );
1877
2120
  yyg->yy_did_buffer_switch_on_eof = 1;
1878
2121
  }
1879
2122
  }
@@ -1881,7 +2124,7 @@ void jq_yypop_buffer_state (yyscan_t yyscanner)
1881
2124
  /* Allocates the stack if it does not exist.
1882
2125
  * Guarantees space for at least one push.
1883
2126
  */
1884
- static void jq_yyensure_buffer_stack (yyscan_t yyscanner)
2127
+ static void yyensure_buffer_stack (yyscan_t yyscanner)
1885
2128
  {
1886
2129
  yy_size_t num_to_alloc;
1887
2130
  struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
@@ -1892,15 +2135,15 @@ static void jq_yyensure_buffer_stack (yyscan_t yyscanner)
1892
2135
  * scanner will even need a stack. We use 2 instead of 1 to avoid an
1893
2136
  * immediate realloc on the next call.
1894
2137
  */
1895
- num_to_alloc = 1; /* After all that talk, this was set to 1 anyways... */
1896
- yyg->yy_buffer_stack = (struct yy_buffer_state**)jq_yyalloc
2138
+ num_to_alloc = 1; /* After all that talk, this was set to 1 anyways... */
2139
+ yyg->yy_buffer_stack = (struct yy_buffer_state**)yyalloc
1897
2140
  (num_to_alloc * sizeof(struct yy_buffer_state*)
1898
2141
  , yyscanner);
1899
2142
  if ( ! yyg->yy_buffer_stack )
1900
- YY_FATAL_ERROR( "out of dynamic memory in jq_yyensure_buffer_stack()" );
1901
-
2143
+ YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
2144
+
1902
2145
  memset(yyg->yy_buffer_stack, 0, num_to_alloc * sizeof(struct yy_buffer_state*));
1903
-
2146
+
1904
2147
  yyg->yy_buffer_stack_max = num_to_alloc;
1905
2148
  yyg->yy_buffer_stack_top = 0;
1906
2149
  return;
@@ -1912,12 +2155,12 @@ static void jq_yyensure_buffer_stack (yyscan_t yyscanner)
1912
2155
  yy_size_t grow_size = 8 /* arbitrary grow size */;
1913
2156
 
1914
2157
  num_to_alloc = yyg->yy_buffer_stack_max + grow_size;
1915
- yyg->yy_buffer_stack = (struct yy_buffer_state**)jq_yyrealloc
2158
+ yyg->yy_buffer_stack = (struct yy_buffer_state**)yyrealloc
1916
2159
  (yyg->yy_buffer_stack,
1917
2160
  num_to_alloc * sizeof(struct yy_buffer_state*)
1918
2161
  , yyscanner);
1919
2162
  if ( ! yyg->yy_buffer_stack )
1920
- YY_FATAL_ERROR( "out of dynamic memory in jq_yyensure_buffer_stack()" );
2163
+ YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
1921
2164
 
1922
2165
  /* zero only the new slots.*/
1923
2166
  memset(yyg->yy_buffer_stack + yyg->yy_buffer_stack_max, 0, grow_size * sizeof(struct yy_buffer_state*));
@@ -1929,9 +2172,9 @@ static void jq_yyensure_buffer_stack (yyscan_t yyscanner)
1929
2172
  * @param base the character buffer
1930
2173
  * @param size the size in bytes of the character buffer
1931
2174
  * @param yyscanner The scanner object.
1932
- * @return the newly allocated buffer state object.
2175
+ * @return the newly allocated buffer state object.
1933
2176
  */
1934
- YY_BUFFER_STATE jq_yy_scan_buffer (char * base, yy_size_t size , yyscan_t yyscanner)
2177
+ YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size , yyscan_t yyscanner)
1935
2178
  {
1936
2179
  YY_BUFFER_STATE b;
1937
2180
 
@@ -1939,69 +2182,69 @@ YY_BUFFER_STATE jq_yy_scan_buffer (char * base, yy_size_t size , yyscan_t yysc
1939
2182
  base[size-2] != YY_END_OF_BUFFER_CHAR ||
1940
2183
  base[size-1] != YY_END_OF_BUFFER_CHAR )
1941
2184
  /* They forgot to leave room for the EOB's. */
1942
- return 0;
2185
+ return NULL;
1943
2186
 
1944
- b = (YY_BUFFER_STATE) jq_yyalloc(sizeof( struct yy_buffer_state ) ,yyscanner );
2187
+ b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state ) , yyscanner );
1945
2188
  if ( ! b )
1946
- YY_FATAL_ERROR( "out of dynamic memory in jq_yy_scan_buffer()" );
2189
+ YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
1947
2190
 
1948
- b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
2191
+ b->yy_buf_size = (int) (size - 2); /* "- 2" to take care of EOB's */
1949
2192
  b->yy_buf_pos = b->yy_ch_buf = base;
1950
2193
  b->yy_is_our_buffer = 0;
1951
- b->yy_input_file = 0;
2194
+ b->yy_input_file = NULL;
1952
2195
  b->yy_n_chars = b->yy_buf_size;
1953
2196
  b->yy_is_interactive = 0;
1954
2197
  b->yy_at_bol = 1;
1955
2198
  b->yy_fill_buffer = 0;
1956
2199
  b->yy_buffer_status = YY_BUFFER_NEW;
1957
2200
 
1958
- jq_yy_switch_to_buffer(b ,yyscanner );
2201
+ yy_switch_to_buffer( b , yyscanner );
1959
2202
 
1960
2203
  return b;
1961
2204
  }
1962
2205
 
1963
- /** Setup the input buffer state to scan a string. The next call to jq_yylex() will
2206
+ /** Setup the input buffer state to scan a string. The next call to yylex() will
1964
2207
  * scan from a @e copy of @a str.
1965
2208
  * @param yystr a NUL-terminated string to scan
1966
2209
  * @param yyscanner The scanner object.
1967
2210
  * @return the newly allocated buffer state object.
1968
2211
  * @note If you want to scan bytes that may contain NUL values, then use
1969
- * jq_yy_scan_bytes() instead.
2212
+ * yy_scan_bytes() instead.
1970
2213
  */
1971
- YY_BUFFER_STATE jq_yy_scan_string (yyconst char * yystr , yyscan_t yyscanner)
2214
+ YY_BUFFER_STATE yy_scan_string (const char * yystr , yyscan_t yyscanner)
1972
2215
  {
1973
2216
 
1974
- return jq_yy_scan_bytes(yystr,strlen(yystr) ,yyscanner);
2217
+ return yy_scan_bytes( yystr, (int) strlen(yystr) , yyscanner);
1975
2218
  }
1976
2219
 
1977
- /** Setup the input buffer state to scan the given bytes. The next call to jq_yylex() will
2220
+ /** Setup the input buffer state to scan the given bytes. The next call to yylex() will
1978
2221
  * scan from a @e copy of @a bytes.
1979
2222
  * @param yybytes the byte buffer to scan
1980
2223
  * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes.
1981
2224
  * @param yyscanner The scanner object.
1982
2225
  * @return the newly allocated buffer state object.
1983
2226
  */
1984
- YY_BUFFER_STATE jq_yy_scan_bytes (yyconst char * yybytes, yy_size_t _yybytes_len , yyscan_t yyscanner)
2227
+ YY_BUFFER_STATE yy_scan_bytes (const char * yybytes, int _yybytes_len , yyscan_t yyscanner)
1985
2228
  {
1986
2229
  YY_BUFFER_STATE b;
1987
2230
  char *buf;
1988
2231
  yy_size_t n;
1989
- yy_size_t i;
2232
+ int i;
1990
2233
 
1991
2234
  /* Get memory for full buffer, including space for trailing EOB's. */
1992
- n = _yybytes_len + 2;
1993
- buf = (char *) jq_yyalloc(n ,yyscanner );
2235
+ n = (yy_size_t) (_yybytes_len + 2);
2236
+ buf = (char *) yyalloc( n , yyscanner );
1994
2237
  if ( ! buf )
1995
- YY_FATAL_ERROR( "out of dynamic memory in jq_yy_scan_bytes()" );
2238
+ YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
1996
2239
 
1997
2240
  for ( i = 0; i < _yybytes_len; ++i )
1998
2241
  buf[i] = yybytes[i];
1999
2242
 
2000
2243
  buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
2001
2244
 
2002
- b = jq_yy_scan_buffer(buf,n ,yyscanner);
2245
+ b = yy_scan_buffer( buf, n , yyscanner);
2003
2246
  if ( ! b )
2004
- YY_FATAL_ERROR( "bad buffer in jq_yy_scan_bytes()" );
2247
+ YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
2005
2248
 
2006
2249
  /* It's okay to grow etc. this buffer, and we should throw it
2007
2250
  * away when we're done.
@@ -2019,13 +2262,14 @@ YY_BUFFER_STATE jq_yy_scan_bytes (yyconst char * yybytes, yy_size_t _yybytes_l
2019
2262
  yy_size_t new_size;
2020
2263
 
2021
2264
  yyg->yy_start_stack_depth += YY_START_STACK_INCR;
2022
- new_size = yyg->yy_start_stack_depth * sizeof( int );
2265
+ new_size = (yy_size_t) yyg->yy_start_stack_depth * sizeof( int );
2023
2266
 
2024
2267
  if ( ! yyg->yy_start_stack )
2025
- yyg->yy_start_stack = (int *) jq_yyalloc(new_size ,yyscanner );
2268
+ yyg->yy_start_stack = (int *) yyalloc( new_size , yyscanner );
2026
2269
 
2027
2270
  else
2028
- yyg->yy_start_stack = (int *) jq_yyrealloc((void *) yyg->yy_start_stack,new_size ,yyscanner );
2271
+ yyg->yy_start_stack = (int *) yyrealloc(
2272
+ (void *) yyg->yy_start_stack, new_size , yyscanner );
2029
2273
 
2030
2274
  if ( ! yyg->yy_start_stack )
2031
2275
  YY_FATAL_ERROR( "out of memory expanding start-condition stack" );
@@ -2055,11 +2299,11 @@ YY_BUFFER_STATE jq_yy_scan_bytes (yyconst char * yybytes, yy_size_t _yybytes_l
2055
2299
  #define YY_EXIT_FAILURE 2
2056
2300
  #endif
2057
2301
 
2058
- static void yy_fatal_error (yyconst char* msg , yyscan_t yyscanner)
2302
+ static void yynoreturn yy_fatal_error (const char* msg , yyscan_t yyscanner)
2059
2303
  {
2060
2304
  struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2061
2305
  (void)yyg;
2062
- (void) fprintf( stderr, "%s\n", msg );
2306
+ fprintf( stderr, "%s\n", msg );
2063
2307
  exit( YY_EXIT_FAILURE );
2064
2308
  }
2065
2309
 
@@ -2085,7 +2329,7 @@ static void yy_fatal_error (yyconst char* msg , yyscan_t yyscanner)
2085
2329
  /** Get the user-defined data for this scanner.
2086
2330
  * @param yyscanner The scanner object.
2087
2331
  */
2088
- YY_EXTRA_TYPE jq_yyget_extra (yyscan_t yyscanner)
2332
+ YY_EXTRA_TYPE yyget_extra (yyscan_t yyscanner)
2089
2333
  {
2090
2334
  struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2091
2335
  return yyextra;
@@ -2094,10 +2338,10 @@ YY_EXTRA_TYPE jq_yyget_extra (yyscan_t yyscanner)
2094
2338
  /** Get the current line number.
2095
2339
  * @param yyscanner The scanner object.
2096
2340
  */
2097
- int jq_yyget_lineno (yyscan_t yyscanner)
2341
+ int yyget_lineno (yyscan_t yyscanner)
2098
2342
  {
2099
2343
  struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2100
-
2344
+
2101
2345
  if (! YY_CURRENT_BUFFER)
2102
2346
  return 0;
2103
2347
 
@@ -2107,10 +2351,10 @@ int jq_yyget_lineno (yyscan_t yyscanner)
2107
2351
  /** Get the current column number.
2108
2352
  * @param yyscanner The scanner object.
2109
2353
  */
2110
- int jq_yyget_column (yyscan_t yyscanner)
2354
+ int yyget_column (yyscan_t yyscanner)
2111
2355
  {
2112
2356
  struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2113
-
2357
+
2114
2358
  if (! YY_CURRENT_BUFFER)
2115
2359
  return 0;
2116
2360
 
@@ -2120,7 +2364,7 @@ int jq_yyget_column (yyscan_t yyscanner)
2120
2364
  /** Get the input stream.
2121
2365
  * @param yyscanner The scanner object.
2122
2366
  */
2123
- FILE *jq_yyget_in (yyscan_t yyscanner)
2367
+ FILE *yyget_in (yyscan_t yyscanner)
2124
2368
  {
2125
2369
  struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2126
2370
  return yyin;
@@ -2129,7 +2373,7 @@ FILE *jq_yyget_in (yyscan_t yyscanner)
2129
2373
  /** Get the output stream.
2130
2374
  * @param yyscanner The scanner object.
2131
2375
  */
2132
- FILE *jq_yyget_out (yyscan_t yyscanner)
2376
+ FILE *yyget_out (yyscan_t yyscanner)
2133
2377
  {
2134
2378
  struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2135
2379
  return yyout;
@@ -2138,7 +2382,7 @@ FILE *jq_yyget_out (yyscan_t yyscanner)
2138
2382
  /** Get the length of the current token.
2139
2383
  * @param yyscanner The scanner object.
2140
2384
  */
2141
- yy_size_t jq_yyget_leng (yyscan_t yyscanner)
2385
+ int yyget_leng (yyscan_t yyscanner)
2142
2386
  {
2143
2387
  struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2144
2388
  return yyleng;
@@ -2148,7 +2392,7 @@ yy_size_t jq_yyget_leng (yyscan_t yyscanner)
2148
2392
  * @param yyscanner The scanner object.
2149
2393
  */
2150
2394
 
2151
- char *jq_yyget_text (yyscan_t yyscanner)
2395
+ char *yyget_text (yyscan_t yyscanner)
2152
2396
  {
2153
2397
  struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2154
2398
  return yytext;
@@ -2158,7 +2402,7 @@ char *jq_yyget_text (yyscan_t yyscanner)
2158
2402
  * @param user_defined The data to be associated with this scanner.
2159
2403
  * @param yyscanner The scanner object.
2160
2404
  */
2161
- void jq_yyset_extra (YY_EXTRA_TYPE user_defined , yyscan_t yyscanner)
2405
+ void yyset_extra (YY_EXTRA_TYPE user_defined , yyscan_t yyscanner)
2162
2406
  {
2163
2407
  struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2164
2408
  yyextra = user_defined ;
@@ -2168,13 +2412,13 @@ void jq_yyset_extra (YY_EXTRA_TYPE user_defined , yyscan_t yyscanner)
2168
2412
  * @param _line_number line number
2169
2413
  * @param yyscanner The scanner object.
2170
2414
  */
2171
- void jq_yyset_lineno (int _line_number , yyscan_t yyscanner)
2415
+ void yyset_lineno (int _line_number , yyscan_t yyscanner)
2172
2416
  {
2173
2417
  struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2174
2418
 
2175
2419
  /* lineno is only valid if an input buffer exists. */
2176
2420
  if (! YY_CURRENT_BUFFER )
2177
- YY_FATAL_ERROR( "jq_yyset_lineno called with no buffer" );
2421
+ YY_FATAL_ERROR( "yyset_lineno called with no buffer" );
2178
2422
 
2179
2423
  yylineno = _line_number;
2180
2424
  }
@@ -2183,13 +2427,13 @@ void jq_yyset_lineno (int _line_number , yyscan_t yyscanner)
2183
2427
  * @param _column_no column number
2184
2428
  * @param yyscanner The scanner object.
2185
2429
  */
2186
- void jq_yyset_column (int _column_no , yyscan_t yyscanner)
2430
+ void yyset_column (int _column_no , yyscan_t yyscanner)
2187
2431
  {
2188
2432
  struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2189
2433
 
2190
2434
  /* column is only valid if an input buffer exists. */
2191
2435
  if (! YY_CURRENT_BUFFER )
2192
- YY_FATAL_ERROR( "jq_yyset_column called with no buffer" );
2436
+ YY_FATAL_ERROR( "yyset_column called with no buffer" );
2193
2437
 
2194
2438
  yycolumn = _column_no;
2195
2439
  }
@@ -2198,27 +2442,27 @@ void jq_yyset_column (int _column_no , yyscan_t yyscanner)
2198
2442
  * input buffer.
2199
2443
  * @param _in_str A readable stream.
2200
2444
  * @param yyscanner The scanner object.
2201
- * @see jq_yy_switch_to_buffer
2445
+ * @see yy_switch_to_buffer
2202
2446
  */
2203
- void jq_yyset_in (FILE * _in_str , yyscan_t yyscanner)
2447
+ void yyset_in (FILE * _in_str , yyscan_t yyscanner)
2204
2448
  {
2205
2449
  struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2206
2450
  yyin = _in_str ;
2207
2451
  }
2208
2452
 
2209
- void jq_yyset_out (FILE * _out_str , yyscan_t yyscanner)
2453
+ void yyset_out (FILE * _out_str , yyscan_t yyscanner)
2210
2454
  {
2211
2455
  struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2212
2456
  yyout = _out_str ;
2213
2457
  }
2214
2458
 
2215
- int jq_yyget_debug (yyscan_t yyscanner)
2459
+ int yyget_debug (yyscan_t yyscanner)
2216
2460
  {
2217
2461
  struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2218
2462
  return yy_flex_debug;
2219
2463
  }
2220
2464
 
2221
- void jq_yyset_debug (int _bdebug , yyscan_t yyscanner)
2465
+ void yyset_debug (int _bdebug , yyscan_t yyscanner)
2222
2466
  {
2223
2467
  struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2224
2468
  yy_flex_debug = _bdebug ;
@@ -2226,25 +2470,25 @@ void jq_yyset_debug (int _bdebug , yyscan_t yyscanner)
2226
2470
 
2227
2471
  /* Accessor methods for yylval and yylloc */
2228
2472
 
2229
- YYSTYPE * jq_yyget_lval (yyscan_t yyscanner)
2473
+ YYSTYPE * yyget_lval (yyscan_t yyscanner)
2230
2474
  {
2231
2475
  struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2232
2476
  return yylval;
2233
2477
  }
2234
2478
 
2235
- void jq_yyset_lval (YYSTYPE * yylval_param , yyscan_t yyscanner)
2479
+ void yyset_lval (YYSTYPE * yylval_param , yyscan_t yyscanner)
2236
2480
  {
2237
2481
  struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2238
2482
  yylval = yylval_param;
2239
2483
  }
2240
2484
 
2241
- YYLTYPE *jq_yyget_lloc (yyscan_t yyscanner)
2485
+ YYLTYPE *yyget_lloc (yyscan_t yyscanner)
2242
2486
  {
2243
2487
  struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2244
2488
  return yylloc;
2245
2489
  }
2246
2490
 
2247
- void jq_yyset_lloc (YYLTYPE * yylloc_param , yyscan_t yyscanner)
2491
+ void yyset_lloc (YYLTYPE * yylloc_param , yyscan_t yyscanner)
2248
2492
  {
2249
2493
  struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2250
2494
  yylloc = yylloc_param;
@@ -2252,20 +2496,18 @@ void jq_yyset_lloc (YYLTYPE * yylloc_param , yyscan_t yyscanner)
2252
2496
 
2253
2497
  /* User-visible API */
2254
2498
 
2255
- /* jq_yylex_init is special because it creates the scanner itself, so it is
2499
+ /* yylex_init is special because it creates the scanner itself, so it is
2256
2500
  * the ONLY reentrant function that doesn't take the scanner as the last argument.
2257
2501
  * That's why we explicitly handle the declaration, instead of using our macros.
2258
2502
  */
2259
-
2260
- int jq_yylex_init(yyscan_t* ptr_yy_globals)
2261
-
2503
+ int yylex_init(yyscan_t* ptr_yy_globals)
2262
2504
  {
2263
2505
  if (ptr_yy_globals == NULL){
2264
2506
  errno = EINVAL;
2265
2507
  return 1;
2266
2508
  }
2267
2509
 
2268
- *ptr_yy_globals = (yyscan_t) jq_yyalloc ( sizeof( struct yyguts_t ), NULL );
2510
+ *ptr_yy_globals = (yyscan_t) yyalloc ( sizeof( struct yyguts_t ), NULL );
2269
2511
 
2270
2512
  if (*ptr_yy_globals == NULL){
2271
2513
  errno = ENOMEM;
@@ -2278,39 +2520,37 @@ int jq_yylex_init(yyscan_t* ptr_yy_globals)
2278
2520
  return yy_init_globals ( *ptr_yy_globals );
2279
2521
  }
2280
2522
 
2281
- /* jq_yylex_init_extra has the same functionality as jq_yylex_init, but follows the
2523
+ /* yylex_init_extra has the same functionality as yylex_init, but follows the
2282
2524
  * convention of taking the scanner as the last argument. Note however, that
2283
2525
  * this is a *pointer* to a scanner, as it will be allocated by this call (and
2284
2526
  * is the reason, too, why this function also must handle its own declaration).
2285
- * The user defined value in the first argument will be available to jq_yyalloc in
2527
+ * The user defined value in the first argument will be available to yyalloc in
2286
2528
  * the yyextra field.
2287
2529
  */
2288
-
2289
- int jq_yylex_init_extra(YY_EXTRA_TYPE yy_user_defined,yyscan_t* ptr_yy_globals )
2290
-
2530
+ int yylex_init_extra( YY_EXTRA_TYPE yy_user_defined, yyscan_t* ptr_yy_globals )
2291
2531
  {
2292
2532
  struct yyguts_t dummy_yyguts;
2293
2533
 
2294
- jq_yyset_extra (yy_user_defined, &dummy_yyguts);
2534
+ yyset_extra (yy_user_defined, &dummy_yyguts);
2295
2535
 
2296
2536
  if (ptr_yy_globals == NULL){
2297
2537
  errno = EINVAL;
2298
2538
  return 1;
2299
2539
  }
2300
-
2301
- *ptr_yy_globals = (yyscan_t) jq_yyalloc ( sizeof( struct yyguts_t ), &dummy_yyguts );
2302
-
2540
+
2541
+ *ptr_yy_globals = (yyscan_t) yyalloc ( sizeof( struct yyguts_t ), &dummy_yyguts );
2542
+
2303
2543
  if (*ptr_yy_globals == NULL){
2304
2544
  errno = ENOMEM;
2305
2545
  return 1;
2306
2546
  }
2307
-
2547
+
2308
2548
  /* By setting to 0xAA, we expose bugs in
2309
2549
  yy_init_globals. Leave at 0x00 for releases. */
2310
2550
  memset(*ptr_yy_globals,0x00,sizeof(struct yyguts_t));
2311
-
2312
- jq_yyset_extra (yy_user_defined, *ptr_yy_globals);
2313
-
2551
+
2552
+ yyset_extra (yy_user_defined, *ptr_yy_globals);
2553
+
2314
2554
  return yy_init_globals ( *ptr_yy_globals );
2315
2555
  }
2316
2556
 
@@ -2318,13 +2558,13 @@ static int yy_init_globals (yyscan_t yyscanner)
2318
2558
  {
2319
2559
  struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2320
2560
  /* Initialization is the same as for the non-reentrant scanner.
2321
- * This function is called from jq_yylex_destroy(), so don't allocate here.
2561
+ * This function is called from yylex_destroy(), so don't allocate here.
2322
2562
  */
2323
2563
 
2324
- yyg->yy_buffer_stack = 0;
2564
+ yyg->yy_buffer_stack = NULL;
2325
2565
  yyg->yy_buffer_stack_top = 0;
2326
2566
  yyg->yy_buffer_stack_max = 0;
2327
- yyg->yy_c_buf_p = (char *) 0;
2567
+ yyg->yy_c_buf_p = NULL;
2328
2568
  yyg->yy_init = 0;
2329
2569
  yyg->yy_start = 0;
2330
2570
 
@@ -2337,42 +2577,42 @@ static int yy_init_globals (yyscan_t yyscanner)
2337
2577
  yyin = stdin;
2338
2578
  yyout = stdout;
2339
2579
  #else
2340
- yyin = (FILE *) 0;
2341
- yyout = (FILE *) 0;
2580
+ yyin = NULL;
2581
+ yyout = NULL;
2342
2582
  #endif
2343
2583
 
2344
2584
  /* For future reference: Set errno on error, since we are called by
2345
- * jq_yylex_init()
2585
+ * yylex_init()
2346
2586
  */
2347
2587
  return 0;
2348
2588
  }
2349
2589
 
2350
- /* jq_yylex_destroy is for both reentrant and non-reentrant scanners. */
2351
- int jq_yylex_destroy (yyscan_t yyscanner)
2590
+ /* yylex_destroy is for both reentrant and non-reentrant scanners. */
2591
+ int yylex_destroy (yyscan_t yyscanner)
2352
2592
  {
2353
2593
  struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2354
2594
 
2355
2595
  /* Pop the buffer stack, destroying each element. */
2356
2596
  while(YY_CURRENT_BUFFER){
2357
- jq_yy_delete_buffer(YY_CURRENT_BUFFER ,yyscanner );
2597
+ yy_delete_buffer( YY_CURRENT_BUFFER , yyscanner );
2358
2598
  YY_CURRENT_BUFFER_LVALUE = NULL;
2359
- jq_yypop_buffer_state(yyscanner);
2599
+ yypop_buffer_state(yyscanner);
2360
2600
  }
2361
2601
 
2362
2602
  /* Destroy the stack itself. */
2363
- jq_yyfree(yyg->yy_buffer_stack ,yyscanner);
2603
+ yyfree(yyg->yy_buffer_stack , yyscanner);
2364
2604
  yyg->yy_buffer_stack = NULL;
2365
2605
 
2366
2606
  /* Destroy the start condition stack. */
2367
- jq_yyfree(yyg->yy_start_stack ,yyscanner );
2607
+ yyfree( yyg->yy_start_stack , yyscanner );
2368
2608
  yyg->yy_start_stack = NULL;
2369
2609
 
2370
2610
  /* Reset the globals. This is important in a non-reentrant scanner so the next time
2371
- * jq_yylex() is called, initialization will occur. */
2611
+ * yylex() is called, initialization will occur. */
2372
2612
  yy_init_globals( yyscanner);
2373
2613
 
2374
2614
  /* Destroy the main struct (reentrant only). */
2375
- jq_yyfree ( yyscanner , yyscanner );
2615
+ yyfree ( yyscanner , yyscanner );
2376
2616
  yyscanner = NULL;
2377
2617
  return 0;
2378
2618
  }
@@ -2382,7 +2622,7 @@ int jq_yylex_destroy (yyscan_t yyscanner)
2382
2622
  */
2383
2623
 
2384
2624
  #ifndef yytext_ptr
2385
- static void yy_flex_strncpy (char* s1, yyconst char * s2, int n , yyscan_t yyscanner)
2625
+ static void yy_flex_strncpy (char* s1, const char * s2, int n , yyscan_t yyscanner)
2386
2626
  {
2387
2627
  struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2388
2628
  (void)yyg;
@@ -2394,7 +2634,7 @@ static void yy_flex_strncpy (char* s1, yyconst char * s2, int n , yyscan_t yysca
2394
2634
  #endif
2395
2635
 
2396
2636
  #ifdef YY_NEED_STRLEN
2397
- static int yy_flex_strlen (yyconst char * s , yyscan_t yyscanner)
2637
+ static int yy_flex_strlen (const char * s , yyscan_t yyscanner)
2398
2638
  {
2399
2639
  int n;
2400
2640
  for ( n = 0; s[n]; ++n )
@@ -2406,8 +2646,7 @@ static int yy_flex_strlen (yyconst char * s , yyscan_t yyscanner)
2406
2646
 
2407
2647
  #define YYTABLES_NAME "yytables"
2408
2648
 
2409
- #line 130 "src/lexer.l"
2410
-
2649
+ #line 137 "src/lexer.l"
2411
2650
 
2412
2651
  /* perhaps these should be calls... */
2413
2652
  /*
@@ -2455,13 +2694,13 @@ static int enter(int c, int currstate, yyscan_t yyscanner) {
2455
2694
  return c;
2456
2695
  }
2457
2696
 
2458
- void* jq_yyalloc(size_t sz,void* extra) {
2697
+ void* yyalloc(size_t sz, void* extra) {
2459
2698
  return jv_mem_alloc(sz);
2460
2699
  }
2461
- void* jq_yyrealloc(void* p,size_t sz,void* extra) {
2700
+ void* yyrealloc(void* p, size_t sz, void* extra) {
2462
2701
  return jv_mem_realloc(p, sz);
2463
2702
  }
2464
- void jq_yyfree(void* p,void* extra) {
2703
+ void yyfree(void* p, void* extra) {
2465
2704
  jv_mem_free(p);
2466
2705
  }
2467
2706