@port-labs/jq-node-bindings 0.0.4 → 0.0.6

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 (286) hide show
  1. package/binding.gyp +3 -3
  2. package/configure +8 -6
  3. package/deps/jq/.travis.yml +184 -35
  4. package/deps/jq/AUTHORS +31 -30
  5. package/deps/jq/COPYING +2 -2
  6. package/deps/jq/KEYS +8 -0
  7. package/deps/jq/Makefile.am +85 -70
  8. package/deps/jq/NEWS +5 -4
  9. package/deps/jq/README.md +18 -9
  10. package/deps/jq/appveyor.yml +53 -0
  11. package/deps/jq/compile-ios.sh +5 -5
  12. package/deps/jq/config/m4/check-math-func.m4 +7 -2
  13. package/deps/jq/configure.ac +130 -68
  14. package/deps/jq/docs/Rakefile +14 -135
  15. package/deps/jq/docs/Rakefile.manual +49 -0
  16. package/deps/jq/docs/Rakefile.website +76 -0
  17. package/deps/jq/docs/content/2.download/default.yml +115 -39
  18. package/deps/jq/docs/content/3.manual/manual.yml +641 -231
  19. package/deps/jq/docs/content/3.manual/v1.3/manual.yml +130 -130
  20. package/deps/jq/docs/content/3.manual/v1.4/manual.yml +160 -160
  21. package/deps/jq/docs/content/3.manual/v1.5/manual.yml +2878 -0
  22. package/deps/jq/docs/content/3.manual/v1.6/manual.yml +3287 -0
  23. package/deps/jq/docs/content/index/index.yml +28 -6
  24. package/deps/jq/docs/public/.htaccess +2 -2
  25. package/deps/jq/docs/public/css/base.scss +141 -59
  26. package/deps/jq/docs/public/js/manual-search.js +52 -0
  27. package/deps/jq/docs/site.yml +1 -10
  28. package/deps/jq/docs/templates/default.liquid +10 -10
  29. package/deps/jq/docs/templates/index.liquid +45 -32
  30. package/deps/jq/docs/templates/manual.liquid +67 -90
  31. package/deps/jq/docs/templates/shared/_footer.liquid +10 -5
  32. package/deps/jq/docs/templates/shared/_head.liquid +17 -12
  33. package/deps/jq/docs/templates/shared/_navbar.liquid +27 -0
  34. package/deps/jq/jq.1.prebuilt +523 -139
  35. package/deps/jq/modules/oniguruma/AUTHORS +1 -0
  36. package/deps/jq/modules/oniguruma/CMakeLists.txt +86 -0
  37. package/deps/jq/modules/oniguruma/COPYING +28 -0
  38. package/deps/jq/modules/oniguruma/ChangeLog +0 -0
  39. package/deps/jq/modules/oniguruma/HISTORY +2138 -0
  40. package/deps/jq/modules/oniguruma/Makefile.am +33 -0
  41. package/deps/jq/modules/oniguruma/NEWS +0 -0
  42. package/deps/jq/modules/oniguruma/README +189 -0
  43. package/deps/jq/modules/oniguruma/README.ja +195 -0
  44. package/deps/jq/modules/oniguruma/README.md +203 -0
  45. package/deps/jq/modules/oniguruma/cmake/dist.cmake +321 -0
  46. package/deps/jq/modules/oniguruma/compile +348 -0
  47. package/deps/jq/modules/oniguruma/config.guess +1754 -0
  48. package/deps/jq/modules/oniguruma/config.sub +1890 -0
  49. package/deps/jq/modules/oniguruma/configure.ac +87 -0
  50. package/deps/jq/modules/oniguruma/contributed/libfuzzer-onig.cpp +31 -0
  51. package/deps/jq/modules/oniguruma/depcomp +791 -0
  52. package/deps/jq/modules/oniguruma/dist.info +10 -0
  53. package/deps/jq/modules/oniguruma/doc/API +660 -0
  54. package/deps/jq/modules/oniguruma/doc/API.ja +667 -0
  55. package/deps/jq/modules/oniguruma/doc/FAQ +12 -0
  56. package/deps/jq/modules/oniguruma/doc/FAQ.ja +22 -0
  57. package/deps/jq/modules/oniguruma/doc/RE +436 -0
  58. package/deps/jq/modules/oniguruma/doc/RE.ja +448 -0
  59. package/deps/jq/modules/oniguruma/doc/UNICODE_PROPERTIES +698 -0
  60. package/deps/jq/modules/oniguruma/index.html +181 -0
  61. package/deps/jq/modules/oniguruma/index_ja.html +184 -0
  62. package/deps/jq/modules/oniguruma/install-sh +541 -0
  63. package/deps/jq/modules/oniguruma/m4/.whatever +0 -0
  64. package/deps/jq/modules/oniguruma/make_win32.bat +3 -0
  65. package/deps/jq/modules/oniguruma/make_win64.bat +3 -0
  66. package/deps/jq/modules/oniguruma/missing +215 -0
  67. package/deps/jq/modules/oniguruma/onig-config.in +78 -0
  68. package/deps/jq/modules/oniguruma/oniguruma.pc.cmake.in +13 -0
  69. package/deps/jq/modules/oniguruma/oniguruma.pc.in +14 -0
  70. package/deps/jq/modules/oniguruma/sample/CMakeLists.txt +28 -0
  71. package/deps/jq/modules/oniguruma/sample/Makefile.am +34 -0
  72. package/deps/jq/modules/oniguruma/sample/bug_fix.c +131 -0
  73. package/deps/jq/modules/oniguruma/sample/crnl.c +127 -0
  74. package/deps/jq/modules/oniguruma/sample/encode.c +308 -0
  75. package/deps/jq/modules/oniguruma/sample/listcap.c +110 -0
  76. package/deps/jq/modules/oniguruma/sample/names.c +75 -0
  77. package/deps/jq/modules/oniguruma/sample/posix.c +96 -0
  78. package/deps/jq/modules/oniguruma/sample/scan.c +88 -0
  79. package/deps/jq/modules/oniguruma/sample/simple.c +59 -0
  80. package/deps/jq/modules/oniguruma/sample/sql.c +76 -0
  81. package/deps/jq/modules/oniguruma/sample/syntax.c +76 -0
  82. package/deps/jq/modules/oniguruma/sample/user_property.c +87 -0
  83. package/deps/jq/modules/oniguruma/src/Makefile.am +58 -0
  84. package/deps/jq/modules/oniguruma/src/Makefile.windows +183 -0
  85. package/deps/jq/modules/oniguruma/src/ascii.c +61 -0
  86. package/deps/jq/modules/oniguruma/src/big5.c +190 -0
  87. package/deps/jq/modules/oniguruma/src/config.h.cmake.in +71 -0
  88. package/deps/jq/modules/oniguruma/src/config.h.win32 +84 -0
  89. package/deps/jq/modules/oniguruma/src/config.h.win64 +84 -0
  90. package/deps/jq/modules/oniguruma/src/cp1251.c +203 -0
  91. package/deps/jq/modules/oniguruma/src/euc_jp.c +310 -0
  92. package/deps/jq/modules/oniguruma/src/euc_jp_prop.c +158 -0
  93. package/deps/jq/modules/oniguruma/src/euc_jp_prop.gperf +27 -0
  94. package/deps/jq/modules/oniguruma/src/euc_kr.c +188 -0
  95. package/deps/jq/modules/oniguruma/src/euc_tw.c +171 -0
  96. package/deps/jq/modules/oniguruma/src/gb18030.c +538 -0
  97. package/deps/jq/modules/oniguruma/src/gperf_fold_key_conv.py +67 -0
  98. package/deps/jq/modules/oniguruma/src/gperf_unfold_key_conv.py +55 -0
  99. package/deps/jq/modules/oniguruma/src/iso8859_1.c +275 -0
  100. package/deps/jq/modules/oniguruma/src/iso8859_10.c +242 -0
  101. package/deps/jq/modules/oniguruma/src/iso8859_11.c +99 -0
  102. package/deps/jq/modules/oniguruma/src/iso8859_13.c +231 -0
  103. package/deps/jq/modules/oniguruma/src/iso8859_14.c +244 -0
  104. package/deps/jq/modules/oniguruma/src/iso8859_15.c +238 -0
  105. package/deps/jq/modules/oniguruma/src/iso8859_16.c +240 -0
  106. package/deps/jq/modules/oniguruma/src/iso8859_2.c +238 -0
  107. package/deps/jq/modules/oniguruma/src/iso8859_3.c +238 -0
  108. package/deps/jq/modules/oniguruma/src/iso8859_4.c +240 -0
  109. package/deps/jq/modules/oniguruma/src/iso8859_5.c +229 -0
  110. package/deps/jq/modules/oniguruma/src/iso8859_6.c +99 -0
  111. package/deps/jq/modules/oniguruma/src/iso8859_7.c +225 -0
  112. package/deps/jq/modules/oniguruma/src/iso8859_8.c +99 -0
  113. package/deps/jq/modules/oniguruma/src/iso8859_9.c +231 -0
  114. package/deps/jq/modules/oniguruma/src/koi8.c +253 -0
  115. package/deps/jq/modules/oniguruma/src/koi8_r.c +215 -0
  116. package/deps/jq/modules/oniguruma/src/make_unicode_fold.sh +22 -0
  117. package/deps/jq/modules/oniguruma/src/make_unicode_fold_data.py +306 -0
  118. package/deps/jq/modules/oniguruma/src/make_unicode_property.sh +18 -0
  119. package/deps/jq/modules/oniguruma/src/make_unicode_property_data.py +545 -0
  120. package/deps/jq/modules/oniguruma/src/mktable.c +1184 -0
  121. package/deps/jq/modules/oniguruma/src/onig_init.c +45 -0
  122. package/deps/jq/modules/oniguruma/src/oniggnu.h +85 -0
  123. package/deps/jq/modules/oniguruma/src/onigposix.h +169 -0
  124. package/deps/jq/modules/oniguruma/src/oniguruma.h +841 -0
  125. package/deps/jq/modules/oniguruma/src/regcomp.c +6300 -0
  126. package/deps/jq/modules/oniguruma/src/regenc.c +917 -0
  127. package/deps/jq/modules/oniguruma/src/regenc.h +243 -0
  128. package/deps/jq/modules/oniguruma/src/regerror.c +393 -0
  129. package/deps/jq/modules/oniguruma/src/regexec.c +3856 -0
  130. package/deps/jq/modules/oniguruma/src/regext.c +202 -0
  131. package/deps/jq/modules/oniguruma/src/reggnu.c +147 -0
  132. package/deps/jq/modules/oniguruma/src/regint.h +779 -0
  133. package/deps/jq/modules/oniguruma/src/regparse.c +5403 -0
  134. package/deps/jq/modules/oniguruma/src/regparse.h +351 -0
  135. package/deps/jq/modules/oniguruma/src/regposerr.c +105 -0
  136. package/deps/jq/modules/oniguruma/src/regposix.c +306 -0
  137. package/deps/jq/modules/oniguruma/src/regsyntax.c +315 -0
  138. package/deps/jq/modules/oniguruma/src/regtrav.c +76 -0
  139. package/deps/jq/modules/oniguruma/src/regversion.c +57 -0
  140. package/deps/jq/modules/oniguruma/src/sjis.c +341 -0
  141. package/deps/jq/modules/oniguruma/src/sjis_prop.c +158 -0
  142. package/deps/jq/modules/oniguruma/src/sjis_prop.gperf +27 -0
  143. package/deps/jq/modules/oniguruma/src/st.c +589 -0
  144. package/deps/jq/modules/oniguruma/src/st.h +68 -0
  145. package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_fold1_key.c +2250 -0
  146. package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_fold2_key.c +203 -0
  147. package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_fold3_key.c +113 -0
  148. package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_fold_data.c +1225 -0
  149. package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_property_data.c +24742 -0
  150. package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_property_data_posix.c +4846 -0
  151. package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_unfold_key.c +2571 -0
  152. package/deps/jq/modules/oniguruma/src/unicode.c +664 -0
  153. package/deps/jq/modules/oniguruma/src/unicode_fold1_key.c +2548 -0
  154. package/deps/jq/modules/oniguruma/src/unicode_fold2_key.c +203 -0
  155. package/deps/jq/modules/oniguruma/src/unicode_fold3_key.c +113 -0
  156. package/deps/jq/modules/oniguruma/src/unicode_fold_data.c +1366 -0
  157. package/deps/jq/modules/oniguruma/src/unicode_property_data.c +25306 -0
  158. package/deps/jq/modules/oniguruma/src/unicode_property_data_posix.c +4940 -0
  159. package/deps/jq/modules/oniguruma/src/unicode_unfold_key.c +2854 -0
  160. package/deps/jq/modules/oniguruma/src/utf16_be.c +235 -0
  161. package/deps/jq/modules/oniguruma/src/utf16_le.c +245 -0
  162. package/deps/jq/modules/oniguruma/src/utf32_be.c +194 -0
  163. package/deps/jq/modules/oniguruma/src/utf32_le.c +194 -0
  164. package/deps/jq/modules/oniguruma/src/utf8.c +335 -0
  165. package/deps/jq/modules/oniguruma/test/Makefile.am +28 -0
  166. package/deps/jq/modules/oniguruma/test/testc.c +874 -0
  167. package/deps/jq/modules/oniguruma/test/testu.c +916 -0
  168. package/deps/jq/modules/oniguruma/test-driver +153 -0
  169. package/deps/jq/modules/oniguruma/windows/testc.c +869 -0
  170. package/deps/jq/scripts/crosscompile +2 -1
  171. package/deps/jq/scripts/gen_utf8_tables.py +2 -3
  172. package/deps/jq/scripts/update-website +29 -0
  173. package/deps/jq/scripts/version +7 -2
  174. package/deps/jq/sig/jq-release.key +41 -0
  175. package/deps/jq/sig/v1.3/jq-linux-x86.asc +17 -0
  176. package/deps/jq/sig/v1.3/jq-linux-x86_64.asc +17 -0
  177. package/deps/jq/sig/v1.3/jq-osx-x86.asc +17 -0
  178. package/deps/jq/sig/v1.3/jq-osx-x86_64.asc +17 -0
  179. package/deps/jq/sig/v1.3/jq-win32.exe.asc +17 -0
  180. package/deps/jq/sig/v1.3/jq-win64.exe.asc +17 -0
  181. package/deps/jq/sig/v1.3/sha256sum.txt +6 -0
  182. package/deps/jq/sig/v1.4/jq-linux-x86.asc +17 -0
  183. package/deps/jq/sig/v1.4/jq-linux-x86_64.asc +17 -0
  184. package/deps/jq/sig/v1.4/jq-osx-x86.asc +17 -0
  185. package/deps/jq/sig/v1.4/jq-osx-x86_64.asc +17 -0
  186. package/deps/jq/sig/v1.4/jq-solaris11-32.asc +17 -0
  187. package/deps/jq/sig/v1.4/jq-solaris11-64.asc +17 -0
  188. package/deps/jq/sig/v1.4/jq-win32.exe.asc +17 -0
  189. package/deps/jq/sig/v1.4/jq-win64.exe.asc +17 -0
  190. package/deps/jq/sig/v1.4/sha256sum.txt +8 -0
  191. package/deps/jq/sig/v1.5/jq-linux32-no-oniguruma.asc +17 -0
  192. package/deps/jq/sig/v1.5/jq-linux32.asc +17 -0
  193. package/deps/jq/sig/v1.5/jq-linux64.asc +17 -0
  194. package/deps/jq/sig/v1.5/jq-osx-amd64.asc +17 -0
  195. package/deps/jq/sig/v1.5/jq-win32.exe.asc +17 -0
  196. package/deps/jq/sig/v1.5/jq-win64.exe.asc +17 -0
  197. package/deps/jq/sig/v1.5/sha256sum.txt +5 -0
  198. package/deps/jq/sig/v1.5rc1/jq-linux-x86_64-static.asc +17 -0
  199. package/deps/jq/sig/v1.5rc1/jq-win32.exe.asc +17 -0
  200. package/deps/jq/sig/v1.5rc1/jq-win64.exe.asc +17 -0
  201. package/deps/jq/sig/v1.5rc1/sha256sum.txt +3 -0
  202. package/deps/jq/sig/v1.5rc2/jq-linux-x86.asc +17 -0
  203. package/deps/jq/sig/v1.5rc2/jq-linux-x86_64.asc +17 -0
  204. package/deps/jq/sig/v1.5rc2/jq-osx-x86_64.asc +17 -0
  205. package/deps/jq/sig/v1.5rc2/jq-win32.exe.asc +17 -0
  206. package/deps/jq/sig/v1.5rc2/jq-win64.exe.asc +17 -0
  207. package/deps/jq/sig/v1.5rc2/sha256sum.txt +5 -0
  208. package/deps/jq/sig/v1.6/jq-linux32.asc +16 -0
  209. package/deps/jq/sig/v1.6/jq-linux64.asc +16 -0
  210. package/deps/jq/sig/v1.6/jq-osx-amd64.asc +16 -0
  211. package/deps/jq/sig/v1.6/jq-win32.exe.asc +16 -0
  212. package/deps/jq/sig/v1.6/jq-win64.exe.asc +16 -0
  213. package/deps/jq/sig/v1.6/sha256sum.txt +5 -0
  214. package/deps/jq/{builtin.c → src/builtin.c} +449 -344
  215. package/deps/jq/{builtin.h → src/builtin.h} +0 -0
  216. package/deps/jq/src/builtin.jq +311 -0
  217. package/deps/jq/{bytecode.c → src/bytecode.c} +0 -0
  218. package/deps/jq/{bytecode.h → src/bytecode.h} +0 -0
  219. package/deps/jq/{compile.c → src/compile.c} +213 -37
  220. package/deps/jq/{compile.h → src/compile.h} +7 -2
  221. package/deps/jq/{exec_stack.h → src/exec_stack.h} +0 -0
  222. package/deps/jq/{execute.c → src/execute.c} +127 -24
  223. package/deps/jq/{inject_errors.c → src/inject_errors.c} +0 -0
  224. package/deps/jq/{jq.h → src/jq.h} +13 -2
  225. package/deps/jq/{jq_parser.h → src/jq_parser.h} +0 -0
  226. package/deps/jq/{jq_test.c → src/jq_test.c} +1 -1
  227. package/deps/jq/{jv.c → src/jv.c} +24 -5
  228. package/deps/jq/{jv.h → src/jv.h} +46 -11
  229. package/deps/jq/{jv_alloc.c → src/jv_alloc.c} +0 -0
  230. package/deps/jq/{jv_alloc.h → src/jv_alloc.h} +0 -0
  231. package/deps/jq/{jv_aux.c → src/jv_aux.c} +38 -14
  232. package/deps/jq/{jv_dtoa.c → src/jv_dtoa.c} +4 -5
  233. package/deps/jq/{jv_dtoa.h → src/jv_dtoa.h} +0 -0
  234. package/deps/jq/src/jv_file.c +81 -0
  235. package/deps/jq/{jv_parse.c → src/jv_parse.c} +8 -2
  236. package/deps/jq/{jv_print.c → src/jv_print.c} +80 -27
  237. package/deps/jq/{jv_unicode.c → src/jv_unicode.c} +28 -4
  238. package/deps/jq/{jv_unicode.h → src/jv_unicode.h} +1 -0
  239. package/deps/jq/{jv_utf8_tables.h → src/jv_utf8_tables.h} +0 -0
  240. package/deps/jq/{lexer.c → src/lexer.c} +317 -292
  241. package/deps/jq/{lexer.h → src/lexer.h} +16 -12
  242. package/deps/jq/{lexer.l → src/lexer.l} +5 -4
  243. package/deps/jq/src/libm.h +291 -0
  244. package/deps/jq/{linker.c → src/linker.c} +5 -3
  245. package/deps/jq/{linker.h → src/linker.h} +0 -0
  246. package/deps/jq/{locfile.c → src/locfile.c} +1 -1
  247. package/deps/jq/{locfile.h → src/locfile.h} +0 -0
  248. package/deps/jq/{main.c → src/main.c} +202 -100
  249. package/deps/jq/{opcode_list.h → src/opcode_list.h} +4 -0
  250. package/deps/jq/{parser.c → src/parser.c} +1149 -1069
  251. package/deps/jq/{parser.h → src/parser.h} +28 -24
  252. package/deps/jq/{parser.y → src/parser.y} +108 -52
  253. package/deps/jq/{util.c → src/util.c} +12 -9
  254. package/deps/jq/{util.h → src/util.h} +0 -0
  255. package/deps/jq/tests/base64.test +35 -0
  256. package/deps/jq/tests/base64test +5 -0
  257. package/deps/jq/tests/jq-f-test.sh +4 -0
  258. package/deps/jq/tests/jq.test +305 -21
  259. package/deps/jq/tests/jqtest +1 -1
  260. package/deps/jq/tests/mantest +1 -1
  261. package/deps/jq/tests/onig.test +13 -0
  262. package/deps/jq/tests/onigtest +1 -1
  263. package/deps/jq/tests/optional.test +20 -0
  264. package/deps/jq/tests/optionaltest +5 -0
  265. package/deps/jq/tests/setup +7 -1
  266. package/deps/jq/tests/shtest +133 -29
  267. package/deps/jq/tests/utf8-truncate.jq +3 -0
  268. package/deps/jq/tests/utf8test +10 -0
  269. package/lib/index.js +7 -1
  270. package/package.json +3 -3
  271. package/test/santiy.test.js +24 -0
  272. package/deps/jq/docs/default_manpage.md +0 -22
  273. package/deps/jq/docs/public/bootstrap/css/bootstrap-responsive.css +0 -1058
  274. package/deps/jq/docs/public/bootstrap/css/bootstrap-responsive.min.css +0 -9
  275. package/deps/jq/docs/public/bootstrap/css/bootstrap.css +0 -5224
  276. package/deps/jq/docs/public/bootstrap/css/bootstrap.min.css +0 -9
  277. package/deps/jq/docs/public/bootstrap/img/glyphicons-halflings-white.png +0 -0
  278. package/deps/jq/docs/public/bootstrap/img/glyphicons-halflings.png +0 -0
  279. package/deps/jq/docs/public/bootstrap/js/bootstrap.js +0 -2027
  280. package/deps/jq/docs/public/bootstrap/js/bootstrap.min.js +0 -6
  281. package/deps/jq/docs/templates/shared/_header.liquid +0 -26
  282. package/deps/jq/jq.1.default +0 -39
  283. package/deps/jq/jv_file.c +0 -49
  284. package/deps/jq/libm.h +0 -160
  285. package/deps/jq/setup.sh +0 -33
  286. package/reports/jest-port-api.xml +0 -35
@@ -1,6 +1,6 @@
1
- #line 2 "lexer.c"
1
+ #line 2 "src/lexer.c"
2
2
 
3
- #line 4 "lexer.c"
3
+ #line 4 "src/lexer.c"
4
4
 
5
5
  #define YY_INT_ALIGNED short int
6
6
 
@@ -8,8 +8,8 @@
8
8
 
9
9
  #define FLEX_SCANNER
10
10
  #define YY_FLEX_MAJOR_VERSION 2
11
- #define YY_FLEX_MINOR_VERSION 5
12
- #define YY_FLEX_SUBMINOR_VERSION 35
11
+ #define YY_FLEX_MINOR_VERSION 6
12
+ #define YY_FLEX_SUBMINOR_VERSION 0
13
13
  #if YY_FLEX_SUBMINOR_VERSION > 0
14
14
  #define FLEX_BETA
15
15
  #endif
@@ -179,11 +179,17 @@ typedef void* yyscan_t;
179
179
  typedef struct yy_buffer_state *YY_BUFFER_STATE;
180
180
  #endif
181
181
 
182
+ #ifndef YY_TYPEDEF_YY_SIZE_T
183
+ #define YY_TYPEDEF_YY_SIZE_T
184
+ typedef size_t yy_size_t;
185
+ #endif
186
+
182
187
  #define EOB_ACT_CONTINUE_SCAN 0
183
188
  #define EOB_ACT_END_OF_FILE 1
184
189
  #define EOB_ACT_LAST_MATCH 2
185
190
 
186
191
  #define YY_LESS_LINENO(n)
192
+ #define YY_LINENO_REWIND_TO(ptr)
187
193
 
188
194
  /* Return all but the first "n" matched characters back to the input stream. */
189
195
  #define yyless(n) \
@@ -201,11 +207,6 @@ typedef struct yy_buffer_state *YY_BUFFER_STATE;
201
207
 
202
208
  #define unput(c) yyunput( c, yyg->yytext_ptr , yyscanner )
203
209
 
204
- #ifndef YY_TYPEDEF_YY_SIZE_T
205
- #define YY_TYPEDEF_YY_SIZE_T
206
- typedef size_t yy_size_t;
207
- #endif
208
-
209
210
  #ifndef YY_STRUCT_YY_BUFFER_STATE
210
211
  #define YY_STRUCT_YY_BUFFER_STATE
211
212
  struct yy_buffer_state
@@ -302,7 +303,7 @@ static void jq_yy_init_buffer (YY_BUFFER_STATE b,FILE *file ,yyscan_t yyscanner
302
303
 
303
304
  YY_BUFFER_STATE jq_yy_scan_buffer (char *base,yy_size_t size ,yyscan_t yyscanner );
304
305
  YY_BUFFER_STATE jq_yy_scan_string (yyconst char *yy_str ,yyscan_t yyscanner );
305
- YY_BUFFER_STATE jq_yy_scan_bytes (yyconst char *bytes,int len ,yyscan_t yyscanner );
306
+ YY_BUFFER_STATE jq_yy_scan_bytes (yyconst char *bytes,yy_size_t len ,yyscan_t yyscanner );
306
307
 
307
308
  void *jq_yyalloc (yy_size_t ,yyscan_t yyscanner );
308
309
  void *jq_yyrealloc (void *,yy_size_t ,yyscan_t yyscanner );
@@ -334,7 +335,7 @@ void jq_yyfree (void * ,yyscan_t yyscanner );
334
335
 
335
336
  /* Begin user sect3 */
336
337
 
337
- #define jq_yywrap(n) 1
338
+ #define jq_yywrap(yyscanner) (/*CONSTCOND*/1)
338
339
  #define YY_SKIP_YYWRAP
339
340
 
340
341
  typedef unsigned char YY_CHAR;
@@ -346,6 +347,9 @@ typedef int yy_state_type;
346
347
  static yy_state_type yy_get_previous_state (yyscan_t yyscanner );
347
348
  static yy_state_type yy_try_NUL_trans (yy_state_type current_state ,yyscan_t yyscanner);
348
349
  static int yy_get_next_buffer (yyscan_t yyscanner );
350
+ #if defined(__GNUC__) && __GNUC__ >= 3
351
+ __attribute__((__noreturn__))
352
+ #endif
349
353
  static void yy_fatal_error (yyconst char msg[] ,yyscan_t yyscanner );
350
354
 
351
355
  /* Done after the current pattern has been matched and before the
@@ -358,8 +362,8 @@ static void yy_fatal_error (yyconst char msg[] ,yyscan_t yyscanner );
358
362
  *yy_cp = '\0'; \
359
363
  yyg->yy_c_buf_p = yy_cp;
360
364
 
361
- #define YY_NUM_RULES 49
362
- #define YY_END_OF_BUFFER 50
365
+ #define YY_NUM_RULES 50
366
+ #define YY_END_OF_BUFFER 51
363
367
  /* This struct is not used in this scanner,
364
368
  but its presence is necessary. */
365
369
  struct yy_trans_info
@@ -367,28 +371,28 @@ struct yy_trans_info
367
371
  flex_int32_t yy_verify;
368
372
  flex_int32_t yy_nxt;
369
373
  };
370
- static yyconst flex_int16_t yy_accept[154] =
374
+ static yyconst flex_int16_t yy_accept[157] =
371
375
  { 0,
372
376
  0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
373
- 0, 0, 50, 48, 47, 47, 48, 39, 1, 34,
374
- 34, 35, 36, 34, 34, 34, 34, 34, 38, 34,
375
- 34, 34, 48, 45, 45, 45, 45, 45, 45, 45,
376
- 45, 45, 45, 45, 45, 45, 45, 34, 43, 43,
377
- 41, 44, 47, 2, 1, 29, 27, 25, 26, 33,
378
- 38, 46, 46, 18, 28, 0, 31, 3, 32, 37,
379
- 45, 0, 45, 45, 4, 45, 45, 45, 45, 45,
380
- 45, 9, 45, 45, 45, 45, 14, 45, 45, 45,
381
- 24, 43, 42, 40, 42, 46, 0, 38, 30, 38,
382
-
383
- 0, 45, 13, 45, 45, 8, 45, 45, 15, 45,
384
- 45, 45, 45, 45, 45, 45, 19, 0, 42, 45,
385
- 45, 45, 45, 12, 11, 45, 45, 45, 45, 45,
386
- 45, 10, 42, 45, 22, 20, 45, 45, 45, 21,
387
- 45, 45, 42, 45, 45, 5, 45, 7, 16, 23,
388
- 17, 6, 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
389
393
  } ;
390
394
 
391
- static yyconst flex_int32_t yy_ec[256] =
395
+ static yyconst YY_CHAR yy_ec[256] =
392
396
  { 0,
393
397
  1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
394
398
  1, 1, 4, 1, 1, 1, 1, 1, 1, 1,
@@ -420,7 +424,7 @@ static yyconst flex_int32_t yy_ec[256] =
420
424
  1, 1, 1, 1, 1
421
425
  } ;
422
426
 
423
- static yyconst flex_int32_t yy_meta[54] =
427
+ static yyconst YY_CHAR yy_meta[54] =
424
428
  { 0,
425
429
  1, 1, 2, 2, 1, 3, 1, 1, 1, 1,
426
430
  1, 1, 1, 1, 1, 4, 1, 5, 6, 1,
@@ -430,138 +434,138 @@ static yyconst flex_int32_t yy_meta[54] =
430
434
  1, 1, 1
431
435
  } ;
432
436
 
433
- static yyconst flex_int16_t yy_base[167] =
437
+ static yyconst flex_uint16_t yy_base[170] =
434
438
  { 0,
435
439
  0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
436
- 51, 52, 318, 319, 57, 59, 295, 319, 0, 319,
437
- 294, 319, 319, 293, 292, 291, 47, 47, 50, 290,
438
- 289, 288, 0, 290, 48, 51, 53, 52, 37, 59,
439
- 57, 66, 56, 63, 68, 70, 72, 286, 0, 0,
440
- 319, 80, 90, 319, 0, 319, 319, 319, 319, 95,
441
- 99, 0, 106, 285, 319, 110, 319, 319, 319, 0,
442
- 285, 281, 86, 77, 277, 97, 101, 111, 113, 115,
443
- 117, 274, 119, 120, 118, 121, 270, 122, 123, 124,
444
- 319, 0, 257, 319, 255, 0, 254, 249, 319, 245,
445
-
446
- 0, 125, 239, 126, 127, 237, 128, 134, 234, 136,
447
- 143, 147, 148, 149, 152, 154, 232, 165, 212, 210,
448
- 157, 159, 158, 209, 208, 160, 161, 162, 163, 164,
449
- 166, 207, 196, 171, 205, 204, 174, 167, 175, 201,
450
- 170, 176, 190, 190, 184, 199, 194, 198, 197, 85,
451
- 78, 76, 319, 230, 239, 245, 250, 255, 264, 273,
452
- 278, 283, 285, 290, 294, 298
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
453
457
  } ;
454
458
 
455
- static yyconst flex_int16_t yy_def[167] =
459
+ static yyconst flex_int16_t yy_def[170] =
456
460
  { 0,
457
- 153, 1, 1, 1, 1, 1, 1, 1, 1, 1,
458
- 154, 154, 153, 153, 153, 153, 153, 153, 155, 153,
459
- 153, 153, 153, 153, 153, 153, 156, 153, 153, 153,
460
- 153, 153, 157, 158, 158, 158, 158, 158, 158, 158,
461
- 158, 158, 158, 158, 158, 158, 158, 153, 159, 159,
462
- 153, 160, 153, 153, 155, 153, 153, 153, 153, 153,
463
- 153, 161, 161, 153, 153, 153, 153, 153, 153, 157,
464
- 158, 153, 158, 158, 158, 158, 158, 158, 158, 158,
465
- 158, 158, 158, 158, 158, 158, 158, 158, 158, 158,
466
- 153, 159, 153, 153, 162, 161, 153, 161, 153, 153,
467
-
468
- 163, 158, 158, 158, 158, 158, 158, 158, 158, 158,
469
- 158, 158, 158, 158, 158, 158, 158, 160, 164, 158,
470
- 158, 158, 158, 158, 158, 158, 158, 158, 158, 158,
471
- 158, 158, 165, 158, 158, 158, 158, 158, 158, 158,
472
- 158, 158, 166, 158, 158, 158, 158, 158, 158, 158,
473
- 158, 158, 0, 153, 153, 153, 153, 153, 153, 153,
474
- 153, 153, 153, 153, 153, 153
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
475
479
  } ;
476
480
 
477
- static yyconst flex_int16_t yy_nxt[373] =
481
+ static yyconst flex_uint16_t yy_nxt[375] =
478
482
  { 0,
479
483
  14, 15, 16, 14, 17, 18, 19, 20, 21, 22,
480
484
  23, 24, 25, 20, 26, 27, 28, 29, 20, 20,
481
- 30, 31, 32, 20, 33, 34, 34, 22, 14, 23,
482
- 35, 36, 37, 38, 39, 40, 41, 34, 42, 34,
483
- 43, 44, 34, 45, 34, 46, 34, 47, 34, 34,
484
- 22, 48, 23, 50, 50, 72, 51, 51, 53, 53,
485
- 53, 53, 60, 64, 61, 61, 72, 61, 65, 72,
486
- 72, 72, 78, 63, 72, 72, 66, 72, 73, 52,
487
- 52, 72, 63, 77, 72, 66, 72, 85, 72, 94,
488
- 72, 53, 53, 74, 72, 72, 72, 75, 76, 79,
489
-
490
- 81, 80, 82, 72, 72, 88, 86, 83, 84, 89,
491
- 61, 103, 61, 87, 61, 72, 61, 90, 97, 72,
492
- 97, 66, 97, 98, 97, 66, 102, 100, 95, 72,
493
- 66, 72, 104, 72, 66, 72, 72, 72, 72, 72,
494
- 72, 72, 72, 72, 72, 72, 72, 106, 105, 109,
495
- 113, 107, 72, 112, 72, 114, 115, 122, 116, 108,
496
- 123, 72, 110, 111, 124, 72, 72, 72, 121, 125,
497
- 72, 126, 72, 117, 153, 72, 72, 72, 72, 72,
498
- 72, 72, 72, 129, 72, 72, 127, 128, 72, 72,
499
- 134, 137, 72, 72, 72, 136, 132, 130, 135, 142,
500
-
501
- 131, 144, 72, 140, 141, 148, 138, 145, 72, 147,
502
- 139, 149, 72, 95, 146, 72, 72, 72, 118, 72,
503
- 150, 151, 72, 72, 118, 72, 72, 72, 72, 152,
504
- 49, 49, 49, 49, 49, 49, 49, 49, 49, 55,
505
- 118, 55, 55, 55, 55, 55, 55, 55, 62, 62,
506
- 72, 62, 72, 62, 70, 72, 70, 72, 70, 71,
507
- 71, 71, 100, 71, 92, 92, 98, 92, 92, 92,
508
- 92, 100, 92, 93, 93, 93, 93, 93, 93, 93,
509
- 93, 93, 96, 118, 96, 118, 96, 119, 72, 119,
510
- 119, 120, 72, 120, 133, 72, 133, 133, 143, 101,
511
-
512
- 143, 143, 93, 72, 93, 93, 99, 91, 72, 69,
513
- 68, 67, 59, 58, 57, 56, 54, 153, 13, 153,
514
- 153, 153, 153, 153, 153, 153, 153, 153, 153, 153,
515
- 153, 153, 153, 153, 153, 153, 153, 153, 153, 153,
516
- 153, 153, 153, 153, 153, 153, 153, 153, 153, 153,
517
- 153, 153, 153, 153, 153, 153, 153, 153, 153, 153,
518
- 153, 153, 153, 153, 153, 153, 153, 153, 153, 153,
519
- 153, 153
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
520
524
  } ;
521
525
 
522
- static yyconst flex_int16_t yy_chk[373] =
526
+ static yyconst flex_int16_t yy_chk[375] =
523
527
  { 0,
524
528
  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
525
529
  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
526
530
  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
527
531
  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
528
532
  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
529
- 1, 1, 1, 11, 12, 39, 11, 12, 15, 15,
530
- 16, 16, 27, 28, 27, 29, 35, 29, 28, 36,
531
- 38, 37, 39, 27, 43, 41, 29, 40, 35, 11,
532
- 12, 44, 27, 38, 42, 29, 45, 43, 46, 52,
533
- 47, 53, 53, 36, 152, 74, 151, 36, 37, 40,
534
-
535
- 41, 40, 42, 150, 73, 46, 44, 42, 42, 47,
536
- 60, 74, 60, 45, 61, 76, 61, 47, 63, 77,
537
- 63, 60, 66, 63, 66, 61, 73, 66, 52, 78,
538
- 60, 79, 76, 80, 61, 81, 85, 83, 84, 86,
539
- 88, 89, 90, 102, 104, 105, 107, 78, 77, 80,
540
- 85, 79, 108, 84, 110, 86, 88, 104, 89, 79,
541
- 105, 111, 81, 83, 107, 112, 113, 114, 102, 108,
542
- 115, 110, 116, 90, 118, 121, 123, 122, 126, 127,
543
- 128, 129, 130, 113, 131, 138, 111, 112, 141, 134,
544
- 121, 126, 137, 139, 142, 123, 116, 114, 122, 131,
545
-
546
- 115, 134, 145, 129, 130, 141, 127, 137, 144, 139,
547
- 128, 142, 147, 118, 138, 149, 148, 146, 143, 140,
548
- 144, 145, 136, 135, 133, 132, 125, 124, 120, 147,
549
- 154, 154, 154, 154, 154, 154, 154, 154, 154, 155,
550
- 119, 155, 155, 155, 155, 155, 155, 155, 156, 156,
551
- 117, 156, 109, 156, 157, 106, 157, 103, 157, 158,
552
- 158, 158, 100, 158, 159, 159, 98, 159, 159, 159,
553
- 159, 97, 159, 160, 160, 160, 160, 160, 160, 160,
554
- 160, 160, 161, 95, 161, 93, 161, 162, 87, 162,
555
- 162, 163, 82, 163, 164, 75, 164, 164, 165, 72,
556
-
557
- 165, 165, 166, 71, 166, 166, 64, 48, 34, 32,
558
- 31, 30, 26, 25, 24, 21, 17, 13, 153, 153,
559
- 153, 153, 153, 153, 153, 153, 153, 153, 153, 153,
560
- 153, 153, 153, 153, 153, 153, 153, 153, 153, 153,
561
- 153, 153, 153, 153, 153, 153, 153, 153, 153, 153,
562
- 153, 153, 153, 153, 153, 153, 153, 153, 153, 153,
563
- 153, 153, 153, 153, 153, 153, 153, 153, 153, 153,
564
- 153, 153
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
565
569
  } ;
566
570
 
567
571
  /* The intent behind this definition is that it'll catch
@@ -571,8 +575,8 @@ static yyconst flex_int16_t yy_chk[373] =
571
575
  #define yymore() yymore_used_but_not_detected
572
576
  #define YY_MORE_ADJ 0
573
577
  #define YY_RESTORE_YY_MORE_OFFSET
574
- #line 1 "lexer.l"
575
- #line 2 "lexer.l"
578
+ #line 1 "src/lexer.l"
579
+ #line 2 "src/lexer.l"
576
580
  #include <assert.h>
577
581
  #include "jv_alloc.h"
578
582
  #include "compile.h"
@@ -593,11 +597,11 @@ struct lexer_param;
593
597
 
594
598
 
595
599
 
596
- #line 25 "lexer.l"
600
+ #line 25 "src/lexer.l"
597
601
  static int enter(int opening, int state, yyscan_t yyscanner);
598
602
  static int try_exit(int closing, int state, yyscan_t yyscanner);
599
603
  #define YY_NO_INPUT 1
600
- #line 601 "lexer.c"
604
+ #line 605 "src/lexer.c"
601
605
 
602
606
  #define INITIAL 0
603
607
  #define IN_PAREN 1
@@ -630,7 +634,7 @@ struct yyguts_t
630
634
  YY_BUFFER_STATE * yy_buffer_stack; /**< Stack as an array. */
631
635
  char yy_hold_char;
632
636
  int yy_n_chars;
633
- int yyleng_r;
637
+ yy_size_t yyleng_r;
634
638
  char *yy_c_buf_p;
635
639
  int yy_init;
636
640
  int yy_start;
@@ -681,19 +685,23 @@ void jq_yyset_extra (YY_EXTRA_TYPE user_defined ,yyscan_t yyscanner );
681
685
 
682
686
  FILE *jq_yyget_in (yyscan_t yyscanner );
683
687
 
684
- void jq_yyset_in (FILE * in_str ,yyscan_t yyscanner );
688
+ void jq_yyset_in (FILE * _in_str ,yyscan_t yyscanner );
685
689
 
686
690
  FILE *jq_yyget_out (yyscan_t yyscanner );
687
691
 
688
- void jq_yyset_out (FILE * out_str ,yyscan_t yyscanner );
692
+ void jq_yyset_out (FILE * _out_str ,yyscan_t yyscanner );
689
693
 
690
- int jq_yyget_leng (yyscan_t yyscanner );
694
+ yy_size_t jq_yyget_leng (yyscan_t yyscanner );
691
695
 
692
696
  char *jq_yyget_text (yyscan_t yyscanner );
693
697
 
694
698
  int jq_yyget_lineno (yyscan_t yyscanner );
695
699
 
696
- void jq_yyset_lineno (int line_number ,yyscan_t yyscanner );
700
+ void jq_yyset_lineno (int _line_number ,yyscan_t yyscanner );
701
+
702
+ int jq_yyget_column (yyscan_t yyscanner );
703
+
704
+ void jq_yyset_column (int _column_no ,yyscan_t yyscanner );
697
705
 
698
706
  YYSTYPE * jq_yyget_lval (yyscan_t yyscanner );
699
707
 
@@ -715,6 +723,10 @@ extern int jq_yywrap (yyscan_t yyscanner );
715
723
  #endif
716
724
  #endif
717
725
 
726
+ #ifndef YY_NO_UNPUT
727
+
728
+ #endif
729
+
718
730
  #ifndef yytext_ptr
719
731
  static void yy_flex_strncpy (char *,yyconst char *,int ,yyscan_t yyscanner);
720
732
  #endif
@@ -733,7 +745,7 @@ static int input (yyscan_t yyscanner );
733
745
 
734
746
  #endif
735
747
 
736
- static void yy_push_state (int new_state ,yyscan_t yyscanner);
748
+ static void yy_push_state (int _new_state ,yyscan_t yyscanner);
737
749
 
738
750
  static void yy_pop_state (yyscan_t yyscanner );
739
751
 
@@ -835,7 +847,7 @@ extern int jq_yylex \
835
847
 
836
848
  /* Code executed at the end of each rule. */
837
849
  #ifndef YY_BREAK
838
- #define YY_BREAK break;
850
+ #define YY_BREAK /*LINTED*/break;
839
851
  #endif
840
852
 
841
853
  #define YY_RULE_SETUP \
@@ -845,16 +857,11 @@ extern int jq_yylex \
845
857
  */
846
858
  YY_DECL
847
859
  {
848
- register yy_state_type yy_current_state;
849
- register char *yy_cp, *yy_bp;
850
- register int yy_act;
860
+ yy_state_type yy_current_state;
861
+ char *yy_cp, *yy_bp;
862
+ int yy_act;
851
863
  struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
852
864
 
853
- #line 38 "lexer.l"
854
-
855
-
856
- #line 857 "lexer.c"
857
-
858
865
  yylval = yylval_param;
859
866
 
860
867
  yylloc = yylloc_param;
@@ -885,7 +892,13 @@ YY_DECL
885
892
  jq_yy_load_buffer_state(yyscanner );
886
893
  }
887
894
 
888
- while ( 1 ) /* loops until end-of-file is reached */
895
+ {
896
+ #line 38 "src/lexer.l"
897
+
898
+
899
+ #line 900 "src/lexer.c"
900
+
901
+ while ( /*CONSTCOND*/1 ) /* loops until end-of-file is reached */
889
902
  {
890
903
  yy_cp = yyg->yy_c_buf_p;
891
904
 
@@ -901,7 +914,7 @@ YY_DECL
901
914
  yy_match:
902
915
  do
903
916
  {
904
- register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
917
+ YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)] ;
905
918
  if ( yy_accept[yy_current_state] )
906
919
  {
907
920
  yyg->yy_last_accepting_state = yy_current_state;
@@ -910,13 +923,13 @@ yy_match:
910
923
  while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
911
924
  {
912
925
  yy_current_state = (int) yy_def[yy_current_state];
913
- if ( yy_current_state >= 154 )
926
+ if ( yy_current_state >= 157 )
914
927
  yy_c = yy_meta[(unsigned int) yy_c];
915
928
  }
916
929
  yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
917
930
  ++yy_cp;
918
931
  }
919
- while ( yy_base[yy_current_state] != 319 );
932
+ while ( yy_base[yy_current_state] != 321 );
920
933
 
921
934
  yy_find_action:
922
935
  yy_act = yy_accept[yy_current_state];
@@ -942,230 +955,235 @@ do_action: /* This label is used only to access EOF actions. */
942
955
 
943
956
  case 1:
944
957
  YY_RULE_SETUP
945
- #line 40 "lexer.l"
958
+ #line 40 "src/lexer.l"
946
959
  { /* comments */ }
947
960
  YY_BREAK
948
961
  case 2:
949
962
  YY_RULE_SETUP
950
- #line 42 "lexer.l"
963
+ #line 42 "src/lexer.l"
951
964
  { return NEQ; }
952
965
  YY_BREAK
953
966
  case 3:
954
967
  YY_RULE_SETUP
955
- #line 43 "lexer.l"
968
+ #line 43 "src/lexer.l"
956
969
  { return EQ; }
957
970
  YY_BREAK
958
971
  case 4:
959
972
  YY_RULE_SETUP
960
- #line 44 "lexer.l"
973
+ #line 44 "src/lexer.l"
961
974
  { return AS; }
962
975
  YY_BREAK
963
976
  case 5:
964
977
  YY_RULE_SETUP
965
- #line 45 "lexer.l"
978
+ #line 45 "src/lexer.l"
966
979
  { return IMPORT; }
967
980
  YY_BREAK
968
981
  case 6:
969
982
  YY_RULE_SETUP
970
- #line 46 "lexer.l"
983
+ #line 46 "src/lexer.l"
971
984
  { return INCLUDE; }
972
985
  YY_BREAK
973
986
  case 7:
974
987
  YY_RULE_SETUP
975
- #line 47 "lexer.l"
988
+ #line 47 "src/lexer.l"
976
989
  { return MODULE; }
977
990
  YY_BREAK
978
991
  case 8:
979
992
  YY_RULE_SETUP
980
- #line 48 "lexer.l"
993
+ #line 48 "src/lexer.l"
981
994
  { return DEF; }
982
995
  YY_BREAK
983
996
  case 9:
984
997
  YY_RULE_SETUP
985
- #line 49 "lexer.l"
998
+ #line 49 "src/lexer.l"
986
999
  { return IF; }
987
1000
  YY_BREAK
988
1001
  case 10:
989
1002
  YY_RULE_SETUP
990
- #line 50 "lexer.l"
1003
+ #line 50 "src/lexer.l"
991
1004
  { return THEN; }
992
1005
  YY_BREAK
993
1006
  case 11:
994
1007
  YY_RULE_SETUP
995
- #line 51 "lexer.l"
1008
+ #line 51 "src/lexer.l"
996
1009
  { return ELSE; }
997
1010
  YY_BREAK
998
1011
  case 12:
999
1012
  YY_RULE_SETUP
1000
- #line 52 "lexer.l"
1013
+ #line 52 "src/lexer.l"
1001
1014
  { return ELSE_IF; }
1002
1015
  YY_BREAK
1003
1016
  case 13:
1004
1017
  YY_RULE_SETUP
1005
- #line 53 "lexer.l"
1018
+ #line 53 "src/lexer.l"
1006
1019
  { return AND; }
1007
1020
  YY_BREAK
1008
1021
  case 14:
1009
1022
  YY_RULE_SETUP
1010
- #line 54 "lexer.l"
1023
+ #line 54 "src/lexer.l"
1011
1024
  { return OR; }
1012
1025
  YY_BREAK
1013
1026
  case 15:
1014
1027
  YY_RULE_SETUP
1015
- #line 55 "lexer.l"
1028
+ #line 55 "src/lexer.l"
1016
1029
  { return END; }
1017
1030
  YY_BREAK
1018
1031
  case 16:
1019
1032
  YY_RULE_SETUP
1020
- #line 56 "lexer.l"
1033
+ #line 56 "src/lexer.l"
1021
1034
  { return REDUCE; }
1022
1035
  YY_BREAK
1023
1036
  case 17:
1024
1037
  YY_RULE_SETUP
1025
- #line 57 "lexer.l"
1038
+ #line 57 "src/lexer.l"
1026
1039
  { return FOREACH; }
1027
1040
  YY_BREAK
1028
1041
  case 18:
1029
1042
  YY_RULE_SETUP
1030
- #line 58 "lexer.l"
1043
+ #line 58 "src/lexer.l"
1031
1044
  { return DEFINEDOR; }
1032
1045
  YY_BREAK
1033
1046
  case 19:
1034
1047
  YY_RULE_SETUP
1035
- #line 59 "lexer.l"
1048
+ #line 59 "src/lexer.l"
1036
1049
  { return TRY; }
1037
1050
  YY_BREAK
1038
1051
  case 20:
1039
1052
  YY_RULE_SETUP
1040
- #line 60 "lexer.l"
1053
+ #line 60 "src/lexer.l"
1041
1054
  { return CATCH; }
1042
1055
  YY_BREAK
1043
1056
  case 21:
1044
1057
  YY_RULE_SETUP
1045
- #line 61 "lexer.l"
1058
+ #line 61 "src/lexer.l"
1046
1059
  { return LABEL; }
1047
1060
  YY_BREAK
1048
1061
  case 22:
1049
1062
  YY_RULE_SETUP
1050
- #line 62 "lexer.l"
1063
+ #line 62 "src/lexer.l"
1051
1064
  { return BREAK; }
1052
1065
  YY_BREAK
1053
1066
  case 23:
1054
1067
  YY_RULE_SETUP
1055
- #line 63 "lexer.l"
1068
+ #line 63 "src/lexer.l"
1056
1069
  { return LOC; }
1057
1070
  YY_BREAK
1058
1071
  case 24:
1059
1072
  YY_RULE_SETUP
1060
- #line 64 "lexer.l"
1073
+ #line 64 "src/lexer.l"
1061
1074
  { return SETPIPE; }
1062
1075
  YY_BREAK
1063
1076
  case 25:
1064
1077
  YY_RULE_SETUP
1065
- #line 65 "lexer.l"
1078
+ #line 65 "src/lexer.l"
1066
1079
  { return SETPLUS; }
1067
1080
  YY_BREAK
1068
1081
  case 26:
1069
1082
  YY_RULE_SETUP
1070
- #line 66 "lexer.l"
1083
+ #line 66 "src/lexer.l"
1071
1084
  { return SETMINUS; }
1072
1085
  YY_BREAK
1073
1086
  case 27:
1074
1087
  YY_RULE_SETUP
1075
- #line 67 "lexer.l"
1088
+ #line 67 "src/lexer.l"
1076
1089
  { return SETMULT; }
1077
1090
  YY_BREAK
1078
1091
  case 28:
1079
1092
  YY_RULE_SETUP
1080
- #line 68 "lexer.l"
1093
+ #line 68 "src/lexer.l"
1081
1094
  { return SETDIV; }
1082
1095
  YY_BREAK
1083
1096
  case 29:
1084
1097
  YY_RULE_SETUP
1085
- #line 69 "lexer.l"
1098
+ #line 69 "src/lexer.l"
1086
1099
  { return SETMOD; }
1087
1100
  YY_BREAK
1088
1101
  case 30:
1089
1102
  YY_RULE_SETUP
1090
- #line 70 "lexer.l"
1103
+ #line 70 "src/lexer.l"
1091
1104
  { return SETDEFINEDOR; }
1092
1105
  YY_BREAK
1093
1106
  case 31:
1094
1107
  YY_RULE_SETUP
1095
- #line 71 "lexer.l"
1108
+ #line 71 "src/lexer.l"
1096
1109
  { return LESSEQ; }
1097
1110
  YY_BREAK
1098
1111
  case 32:
1099
1112
  YY_RULE_SETUP
1100
- #line 72 "lexer.l"
1113
+ #line 72 "src/lexer.l"
1101
1114
  { return GREATEREQ; }
1102
1115
  YY_BREAK
1103
1116
  case 33:
1104
1117
  YY_RULE_SETUP
1105
- #line 73 "lexer.l"
1118
+ #line 73 "src/lexer.l"
1106
1119
  { return REC; }
1107
1120
  YY_BREAK
1108
1121
  case 34:
1109
1122
  YY_RULE_SETUP
1110
- #line 74 "lexer.l"
1111
- { return yytext[0];}
1123
+ #line 74 "src/lexer.l"
1124
+ { return ALTERNATION; }
1112
1125
  YY_BREAK
1113
1126
  case 35:
1114
1127
  YY_RULE_SETUP
1115
- #line 76 "lexer.l"
1128
+ #line 75 "src/lexer.l"
1129
+ { return yytext[0];}
1130
+ YY_BREAK
1131
+ case 36:
1132
+ YY_RULE_SETUP
1133
+ #line 77 "src/lexer.l"
1116
1134
  {
1117
1135
  return enter(yytext[0], YY_START, yyscanner);
1118
1136
  }
1119
1137
  YY_BREAK
1120
- case 36:
1138
+ case 37:
1121
1139
  YY_RULE_SETUP
1122
- #line 80 "lexer.l"
1140
+ #line 81 "src/lexer.l"
1123
1141
  {
1124
1142
  return try_exit(yytext[0], YY_START, yyscanner);
1125
1143
  }
1126
1144
  YY_BREAK
1127
- case 37:
1145
+ case 38:
1128
1146
  YY_RULE_SETUP
1129
- #line 84 "lexer.l"
1147
+ #line 85 "src/lexer.l"
1130
1148
  {
1131
1149
  yylval->literal = jv_string_sized(yytext + 1, yyleng - 1); return FORMAT;
1132
1150
  }
1133
1151
  YY_BREAK
1134
- case 38:
1152
+ case 39:
1135
1153
  YY_RULE_SETUP
1136
- #line 88 "lexer.l"
1137
- {
1138
- yylval->literal = jv_parse_sized(yytext, yyleng); return LITERAL;
1154
+ #line 89 "src/lexer.l"
1155
+ {
1156
+ yylval->literal = jv_parse_sized(yytext, yyleng); return LITERAL;
1139
1157
  }
1140
1158
  YY_BREAK
1141
- case 39:
1159
+ case 40:
1142
1160
  YY_RULE_SETUP
1143
- #line 92 "lexer.l"
1161
+ #line 93 "src/lexer.l"
1144
1162
  {
1145
1163
  yy_push_state(IN_QQSTRING, yyscanner);
1146
1164
  return QQSTRING_START;
1147
1165
  }
1148
1166
  YY_BREAK
1149
1167
 
1150
- case 40:
1168
+ case 41:
1151
1169
  YY_RULE_SETUP
1152
- #line 98 "lexer.l"
1170
+ #line 99 "src/lexer.l"
1153
1171
  {
1154
1172
  return enter(QQSTRING_INTERP_START, YY_START, yyscanner);
1155
1173
  }
1156
1174
  YY_BREAK
1157
- case 41:
1175
+ case 42:
1158
1176
  YY_RULE_SETUP
1159
- #line 101 "lexer.l"
1177
+ #line 102 "src/lexer.l"
1160
1178
  {
1161
1179
  yy_pop_state(yyscanner);
1162
1180
  return QQSTRING_END;
1163
1181
  }
1164
1182
  YY_BREAK
1165
- case 42:
1166
- /* rule 42 can match eol */
1183
+ case 43:
1184
+ /* rule 43 can match eol */
1167
1185
  YY_RULE_SETUP
1168
- #line 105 "lexer.l"
1186
+ #line 106 "src/lexer.l"
1169
1187
  {
1170
1188
  /* pass escapes to the json parser */
1171
1189
  jv escapes = jv_string_fmt("\"%.*s\"", (int)yyleng, yytext);
@@ -1174,50 +1192,50 @@ YY_RULE_SETUP
1174
1192
  return QQSTRING_TEXT;
1175
1193
  }
1176
1194
  YY_BREAK
1177
- case 43:
1178
- /* rule 43 can match eol */
1195
+ case 44:
1196
+ /* rule 44 can match eol */
1179
1197
  YY_RULE_SETUP
1180
- #line 112 "lexer.l"
1198
+ #line 113 "src/lexer.l"
1181
1199
  {
1182
1200
  yylval->literal = jv_string_sized(yytext, yyleng);
1183
1201
  return QQSTRING_TEXT;
1184
1202
  }
1185
1203
  YY_BREAK
1186
- case 44:
1204
+ case 45:
1187
1205
  YY_RULE_SETUP
1188
- #line 116 "lexer.l"
1206
+ #line 117 "src/lexer.l"
1189
1207
  {
1190
1208
  return INVALID_CHARACTER;
1191
1209
  }
1192
1210
  YY_BREAK
1193
1211
 
1194
- case 45:
1212
+ case 46:
1195
1213
  YY_RULE_SETUP
1196
- #line 122 "lexer.l"
1214
+ #line 123 "src/lexer.l"
1197
1215
  { yylval->literal = jv_string(yytext); return IDENT;}
1198
1216
  YY_BREAK
1199
- case 46:
1217
+ case 47:
1200
1218
  YY_RULE_SETUP
1201
- #line 123 "lexer.l"
1219
+ #line 124 "src/lexer.l"
1202
1220
  { yylval->literal = jv_string(yytext+1); return FIELD;}
1203
1221
  YY_BREAK
1204
- case 47:
1205
- /* rule 47 can match eol */
1222
+ case 48:
1223
+ /* rule 48 can match eol */
1206
1224
  YY_RULE_SETUP
1207
- #line 125 "lexer.l"
1225
+ #line 126 "src/lexer.l"
1208
1226
  {}
1209
1227
  YY_BREAK
1210
- case 48:
1228
+ case 49:
1211
1229
  YY_RULE_SETUP
1212
- #line 127 "lexer.l"
1230
+ #line 128 "src/lexer.l"
1213
1231
  { return INVALID_CHARACTER; }
1214
1232
  YY_BREAK
1215
- case 49:
1233
+ case 50:
1216
1234
  YY_RULE_SETUP
1217
- #line 129 "lexer.l"
1235
+ #line 130 "src/lexer.l"
1218
1236
  YY_FATAL_ERROR( "flex scanner jammed" );
1219
1237
  YY_BREAK
1220
- #line 1221 "lexer.c"
1238
+ #line 1239 "src/lexer.c"
1221
1239
  case YY_STATE_EOF(INITIAL):
1222
1240
  case YY_STATE_EOF(IN_PAREN):
1223
1241
  case YY_STATE_EOF(IN_BRACKET):
@@ -1353,6 +1371,7 @@ case YY_STATE_EOF(IN_QQSTRING):
1353
1371
  "fatal flex scanner internal error--no action found" );
1354
1372
  } /* end of action switch */
1355
1373
  } /* end of scanning one token */
1374
+ } /* end of user's declarations */
1356
1375
  } /* end of jq_yylex */
1357
1376
 
1358
1377
  /* yy_get_next_buffer - try to read in a new buffer
@@ -1365,9 +1384,9 @@ case YY_STATE_EOF(IN_QQSTRING):
1365
1384
  static int yy_get_next_buffer (yyscan_t yyscanner)
1366
1385
  {
1367
1386
  struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
1368
- register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
1369
- register char *source = yyg->yytext_ptr;
1370
- register int number_to_move, i;
1387
+ char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
1388
+ char *source = yyg->yytext_ptr;
1389
+ yy_size_t number_to_move, i;
1371
1390
  int ret_val;
1372
1391
 
1373
1392
  if ( yyg->yy_c_buf_p > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] )
@@ -1396,7 +1415,7 @@ static int yy_get_next_buffer (yyscan_t yyscanner)
1396
1415
  /* Try to read more data. */
1397
1416
 
1398
1417
  /* First move last chars to start of buffer. */
1399
- number_to_move = (int) (yyg->yy_c_buf_p - yyg->yytext_ptr) - 1;
1418
+ number_to_move = (yy_size_t) (yyg->yy_c_buf_p - yyg->yytext_ptr) - 1;
1400
1419
 
1401
1420
  for ( i = 0; i < number_to_move; ++i )
1402
1421
  *(dest++) = *(source++);
@@ -1409,21 +1428,21 @@ static int yy_get_next_buffer (yyscan_t yyscanner)
1409
1428
 
1410
1429
  else
1411
1430
  {
1412
- int num_to_read =
1431
+ yy_size_t num_to_read =
1413
1432
  YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
1414
1433
 
1415
1434
  while ( num_to_read <= 0 )
1416
1435
  { /* Not enough room in the buffer - grow it. */
1417
1436
 
1418
1437
  /* just a shorter name for the current buffer */
1419
- YY_BUFFER_STATE b = YY_CURRENT_BUFFER;
1438
+ YY_BUFFER_STATE b = YY_CURRENT_BUFFER_LVALUE;
1420
1439
 
1421
1440
  int yy_c_buf_p_offset =
1422
1441
  (int) (yyg->yy_c_buf_p - b->yy_ch_buf);
1423
1442
 
1424
1443
  if ( b->yy_is_our_buffer )
1425
1444
  {
1426
- int new_size = b->yy_buf_size * 2;
1445
+ yy_size_t new_size = b->yy_buf_size * 2;
1427
1446
 
1428
1447
  if ( new_size <= 0 )
1429
1448
  b->yy_buf_size += b->yy_buf_size / 8;
@@ -1454,7 +1473,7 @@ static int yy_get_next_buffer (yyscan_t yyscanner)
1454
1473
 
1455
1474
  /* Read in more data. */
1456
1475
  YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
1457
- yyg->yy_n_chars, (size_t) num_to_read );
1476
+ yyg->yy_n_chars, num_to_read );
1458
1477
 
1459
1478
  YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars;
1460
1479
  }
@@ -1478,9 +1497,9 @@ static int yy_get_next_buffer (yyscan_t yyscanner)
1478
1497
  else
1479
1498
  ret_val = EOB_ACT_CONTINUE_SCAN;
1480
1499
 
1481
- if ((yy_size_t) (yyg->yy_n_chars + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
1500
+ if ((int) (yyg->yy_n_chars + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
1482
1501
  /* Extend the array by 50%, plus the number we really need. */
1483
- yy_size_t new_size = yyg->yy_n_chars + number_to_move + (yyg->yy_n_chars >> 1);
1502
+ int new_size = yyg->yy_n_chars + number_to_move + (yyg->yy_n_chars >> 1);
1484
1503
  YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) jq_yyrealloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size ,yyscanner );
1485
1504
  if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
1486
1505
  YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
@@ -1499,15 +1518,15 @@ static int yy_get_next_buffer (yyscan_t yyscanner)
1499
1518
 
1500
1519
  static yy_state_type yy_get_previous_state (yyscan_t yyscanner)
1501
1520
  {
1502
- register yy_state_type yy_current_state;
1503
- register char *yy_cp;
1521
+ yy_state_type yy_current_state;
1522
+ char *yy_cp;
1504
1523
  struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
1505
1524
 
1506
1525
  yy_current_state = yyg->yy_start;
1507
1526
 
1508
1527
  for ( yy_cp = yyg->yytext_ptr + YY_MORE_ADJ; yy_cp < yyg->yy_c_buf_p; ++yy_cp )
1509
1528
  {
1510
- register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
1529
+ YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
1511
1530
  if ( yy_accept[yy_current_state] )
1512
1531
  {
1513
1532
  yyg->yy_last_accepting_state = yy_current_state;
@@ -1516,7 +1535,7 @@ static int yy_get_next_buffer (yyscan_t yyscanner)
1516
1535
  while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1517
1536
  {
1518
1537
  yy_current_state = (int) yy_def[yy_current_state];
1519
- if ( yy_current_state >= 154 )
1538
+ if ( yy_current_state >= 157 )
1520
1539
  yy_c = yy_meta[(unsigned int) yy_c];
1521
1540
  }
1522
1541
  yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
@@ -1532,11 +1551,11 @@ static int yy_get_next_buffer (yyscan_t yyscanner)
1532
1551
  */
1533
1552
  static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state , yyscan_t yyscanner)
1534
1553
  {
1535
- register int yy_is_jam;
1554
+ int yy_is_jam;
1536
1555
  struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; /* This var may be unused depending upon options. */
1537
- register char *yy_cp = yyg->yy_c_buf_p;
1556
+ char *yy_cp = yyg->yy_c_buf_p;
1538
1557
 
1539
- register YY_CHAR yy_c = 1;
1558
+ YY_CHAR yy_c = 1;
1540
1559
  if ( yy_accept[yy_current_state] )
1541
1560
  {
1542
1561
  yyg->yy_last_accepting_state = yy_current_state;
@@ -1545,15 +1564,20 @@ static int yy_get_next_buffer (yyscan_t yyscanner)
1545
1564
  while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1546
1565
  {
1547
1566
  yy_current_state = (int) yy_def[yy_current_state];
1548
- if ( yy_current_state >= 154 )
1567
+ if ( yy_current_state >= 157 )
1549
1568
  yy_c = yy_meta[(unsigned int) yy_c];
1550
1569
  }
1551
1570
  yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
1552
- yy_is_jam = (yy_current_state == 153);
1571
+ yy_is_jam = (yy_current_state == 156);
1553
1572
 
1573
+ (void)yyg;
1554
1574
  return yy_is_jam ? 0 : yy_current_state;
1555
1575
  }
1556
1576
 
1577
+ #ifndef YY_NO_UNPUT
1578
+
1579
+ #endif
1580
+
1557
1581
  #ifndef YY_NO_INPUT
1558
1582
  #ifdef __cplusplus
1559
1583
  static int yyinput (yyscan_t yyscanner)
@@ -1579,7 +1603,7 @@ static int yy_get_next_buffer (yyscan_t yyscanner)
1579
1603
 
1580
1604
  else
1581
1605
  { /* need more input */
1582
- int offset = yyg->yy_c_buf_p - yyg->yytext_ptr;
1606
+ yy_size_t offset = yyg->yy_c_buf_p - yyg->yytext_ptr;
1583
1607
  ++yyg->yy_c_buf_p;
1584
1608
 
1585
1609
  switch ( yy_get_next_buffer( yyscanner ) )
@@ -1707,7 +1731,7 @@ static void jq_yy_load_buffer_state (yyscan_t yyscanner)
1707
1731
  if ( ! b )
1708
1732
  YY_FATAL_ERROR( "out of dynamic memory in jq_yy_create_buffer()" );
1709
1733
 
1710
- b->yy_buf_size = size;
1734
+ b->yy_buf_size = (yy_size_t)size;
1711
1735
 
1712
1736
  /* yy_ch_buf has to be 2 characters longer than the size given because
1713
1737
  * we need to put in 2 end-of-buffer characters.
@@ -1743,10 +1767,6 @@ static void jq_yy_load_buffer_state (yyscan_t yyscanner)
1743
1767
  jq_yyfree((void *) b ,yyscanner );
1744
1768
  }
1745
1769
 
1746
- #ifndef __cplusplus
1747
- extern int isatty (int );
1748
- #endif /* __cplusplus */
1749
-
1750
1770
  /* Initializes or reinitializes a buffer.
1751
1771
  * This function is sometimes called more than once on the same buffer,
1752
1772
  * such as during a jq_yyrestart() or at EOF.
@@ -1863,7 +1883,7 @@ void jq_yypop_buffer_state (yyscan_t yyscanner)
1863
1883
  */
1864
1884
  static void jq_yyensure_buffer_stack (yyscan_t yyscanner)
1865
1885
  {
1866
- int num_to_alloc;
1886
+ yy_size_t num_to_alloc;
1867
1887
  struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
1868
1888
 
1869
1889
  if (!yyg->yy_buffer_stack) {
@@ -1872,7 +1892,7 @@ static void jq_yyensure_buffer_stack (yyscan_t yyscanner)
1872
1892
  * scanner will even need a stack. We use 2 instead of 1 to avoid an
1873
1893
  * immediate realloc on the next call.
1874
1894
  */
1875
- num_to_alloc = 1;
1895
+ num_to_alloc = 1; /* After all that talk, this was set to 1 anyways... */
1876
1896
  yyg->yy_buffer_stack = (struct yy_buffer_state**)jq_yyalloc
1877
1897
  (num_to_alloc * sizeof(struct yy_buffer_state*)
1878
1898
  , yyscanner);
@@ -1889,7 +1909,7 @@ static void jq_yyensure_buffer_stack (yyscan_t yyscanner)
1889
1909
  if (yyg->yy_buffer_stack_top >= (yyg->yy_buffer_stack_max) - 1){
1890
1910
 
1891
1911
  /* Increase the buffer to prepare for a possible push. */
1892
- int grow_size = 8 /* arbitrary grow size */;
1912
+ yy_size_t grow_size = 8 /* arbitrary grow size */;
1893
1913
 
1894
1914
  num_to_alloc = yyg->yy_buffer_stack_max + grow_size;
1895
1915
  yyg->yy_buffer_stack = (struct yy_buffer_state**)jq_yyrealloc
@@ -1961,12 +1981,12 @@ YY_BUFFER_STATE jq_yy_scan_string (yyconst char * yystr , yyscan_t yyscanner)
1961
1981
  * @param yyscanner The scanner object.
1962
1982
  * @return the newly allocated buffer state object.
1963
1983
  */
1964
- YY_BUFFER_STATE jq_yy_scan_bytes (yyconst char * yybytes, int _yybytes_len , yyscan_t yyscanner)
1984
+ YY_BUFFER_STATE jq_yy_scan_bytes (yyconst char * yybytes, yy_size_t _yybytes_len , yyscan_t yyscanner)
1965
1985
  {
1966
1986
  YY_BUFFER_STATE b;
1967
1987
  char *buf;
1968
1988
  yy_size_t n;
1969
- int i;
1989
+ yy_size_t i;
1970
1990
 
1971
1991
  /* Get memory for full buffer, including space for trailing EOB's. */
1972
1992
  n = _yybytes_len + 2;
@@ -1991,7 +2011,7 @@ YY_BUFFER_STATE jq_yy_scan_bytes (yyconst char * yybytes, int _yybytes_len , y
1991
2011
  return b;
1992
2012
  }
1993
2013
 
1994
- static void yy_push_state (int new_state , yyscan_t yyscanner)
2014
+ static void yy_push_state (int _new_state , yyscan_t yyscanner)
1995
2015
  {
1996
2016
  struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
1997
2017
  if ( yyg->yy_start_stack_ptr >= yyg->yy_start_stack_depth )
@@ -2013,7 +2033,7 @@ YY_BUFFER_STATE jq_yy_scan_bytes (yyconst char * yybytes, int _yybytes_len , y
2013
2033
 
2014
2034
  yyg->yy_start_stack[yyg->yy_start_stack_ptr++] = YY_START;
2015
2035
 
2016
- BEGIN(new_state);
2036
+ BEGIN(_new_state);
2017
2037
  }
2018
2038
 
2019
2039
  static void yy_pop_state (yyscan_t yyscanner)
@@ -2037,7 +2057,9 @@ YY_BUFFER_STATE jq_yy_scan_bytes (yyconst char * yybytes, int _yybytes_len , y
2037
2057
 
2038
2058
  static void yy_fatal_error (yyconst char* msg , yyscan_t yyscanner)
2039
2059
  {
2040
- (void) fprintf( stderr, "%s\n", msg );
2060
+ struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2061
+ (void)yyg;
2062
+ (void) fprintf( stderr, "%s\n", msg );
2041
2063
  exit( YY_EXIT_FAILURE );
2042
2064
  }
2043
2065
 
@@ -2116,7 +2138,7 @@ FILE *jq_yyget_out (yyscan_t yyscanner)
2116
2138
  /** Get the length of the current token.
2117
2139
  * @param yyscanner The scanner object.
2118
2140
  */
2119
- int jq_yyget_leng (yyscan_t yyscanner)
2141
+ yy_size_t jq_yyget_leng (yyscan_t yyscanner)
2120
2142
  {
2121
2143
  struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2122
2144
  return yyleng;
@@ -2143,51 +2165,51 @@ void jq_yyset_extra (YY_EXTRA_TYPE user_defined , yyscan_t yyscanner)
2143
2165
  }
2144
2166
 
2145
2167
  /** Set the current line number.
2146
- * @param line_number
2168
+ * @param _line_number line number
2147
2169
  * @param yyscanner The scanner object.
2148
2170
  */
2149
- void jq_yyset_lineno (int line_number , yyscan_t yyscanner)
2171
+ void jq_yyset_lineno (int _line_number , yyscan_t yyscanner)
2150
2172
  {
2151
2173
  struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2152
2174
 
2153
2175
  /* lineno is only valid if an input buffer exists. */
2154
2176
  if (! YY_CURRENT_BUFFER )
2155
- yy_fatal_error( "jq_yyset_lineno called with no buffer" , yyscanner);
2177
+ YY_FATAL_ERROR( "jq_yyset_lineno called with no buffer" );
2156
2178
 
2157
- yylineno = line_number;
2179
+ yylineno = _line_number;
2158
2180
  }
2159
2181
 
2160
2182
  /** Set the current column.
2161
- * @param line_number
2183
+ * @param _column_no column number
2162
2184
  * @param yyscanner The scanner object.
2163
2185
  */
2164
- void jq_yyset_column (int column_no , yyscan_t yyscanner)
2186
+ void jq_yyset_column (int _column_no , yyscan_t yyscanner)
2165
2187
  {
2166
2188
  struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2167
2189
 
2168
2190
  /* column is only valid if an input buffer exists. */
2169
2191
  if (! YY_CURRENT_BUFFER )
2170
- yy_fatal_error( "jq_yyset_column called with no buffer" , yyscanner);
2192
+ YY_FATAL_ERROR( "jq_yyset_column called with no buffer" );
2171
2193
 
2172
- yycolumn = column_no;
2194
+ yycolumn = _column_no;
2173
2195
  }
2174
2196
 
2175
2197
  /** Set the input stream. This does not discard the current
2176
2198
  * input buffer.
2177
- * @param in_str A readable stream.
2199
+ * @param _in_str A readable stream.
2178
2200
  * @param yyscanner The scanner object.
2179
2201
  * @see jq_yy_switch_to_buffer
2180
2202
  */
2181
- void jq_yyset_in (FILE * in_str , yyscan_t yyscanner)
2203
+ void jq_yyset_in (FILE * _in_str , yyscan_t yyscanner)
2182
2204
  {
2183
2205
  struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2184
- yyin = in_str ;
2206
+ yyin = _in_str ;
2185
2207
  }
2186
2208
 
2187
- void jq_yyset_out (FILE * out_str , yyscan_t yyscanner)
2209
+ void jq_yyset_out (FILE * _out_str , yyscan_t yyscanner)
2188
2210
  {
2189
2211
  struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2190
- yyout = out_str ;
2212
+ yyout = _out_str ;
2191
2213
  }
2192
2214
 
2193
2215
  int jq_yyget_debug (yyscan_t yyscanner)
@@ -2196,10 +2218,10 @@ int jq_yyget_debug (yyscan_t yyscanner)
2196
2218
  return yy_flex_debug;
2197
2219
  }
2198
2220
 
2199
- void jq_yyset_debug (int bdebug , yyscan_t yyscanner)
2221
+ void jq_yyset_debug (int _bdebug , yyscan_t yyscanner)
2200
2222
  {
2201
2223
  struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2202
- yy_flex_debug = bdebug ;
2224
+ yy_flex_debug = _bdebug ;
2203
2225
  }
2204
2226
 
2205
2227
  /* Accessor methods for yylval and yylloc */
@@ -2362,7 +2384,10 @@ int jq_yylex_destroy (yyscan_t yyscanner)
2362
2384
  #ifndef yytext_ptr
2363
2385
  static void yy_flex_strncpy (char* s1, yyconst char * s2, int n , yyscan_t yyscanner)
2364
2386
  {
2365
- register int i;
2387
+ struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2388
+ (void)yyg;
2389
+
2390
+ int i;
2366
2391
  for ( i = 0; i < n; ++i )
2367
2392
  s1[i] = s2[i];
2368
2393
  }
@@ -2371,7 +2396,7 @@ static void yy_flex_strncpy (char* s1, yyconst char * s2, int n , yyscan_t yysca
2371
2396
  #ifdef YY_NEED_STRLEN
2372
2397
  static int yy_flex_strlen (yyconst char * s , yyscan_t yyscanner)
2373
2398
  {
2374
- register int n;
2399
+ int n;
2375
2400
  for ( n = 0; s[n]; ++n )
2376
2401
  ;
2377
2402
 
@@ -2381,7 +2406,7 @@ static int yy_flex_strlen (yyconst char * s , yyscan_t yyscanner)
2381
2406
 
2382
2407
  #define YYTABLES_NAME "yytables"
2383
2408
 
2384
- #line 129 "lexer.l"
2409
+ #line 130 "src/lexer.l"
2385
2410
 
2386
2411
 
2387
2412
  /* perhaps these should be calls... */
@@ -2399,7 +2424,7 @@ static int try_exit(int c, int state, yyscan_t yyscanner) {
2399
2424
  case IN_BRACE: match = ret = '}'; break;
2400
2425
 
2401
2426
  case IN_QQINTERP:
2402
- match = ')';
2427
+ match = ')';
2403
2428
  ret = QQSTRING_INTERP_END;
2404
2429
  break;
2405
2430