@port-labs/jq-node-bindings 0.0.1

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 (131) hide show
  1. package/.editorconfig +5 -0
  2. package/.jshintignore +1 -0
  3. package/.jshintrc +23 -0
  4. package/binding.gyp +56 -0
  5. package/configure +26 -0
  6. package/deps/jq/.gitattributes +2 -0
  7. package/deps/jq/.travis.yml +53 -0
  8. package/deps/jq/AUTHORS +73 -0
  9. package/deps/jq/COPYING +70 -0
  10. package/deps/jq/ChangeLog +1349 -0
  11. package/deps/jq/Makefile.am +198 -0
  12. package/deps/jq/NEWS +88 -0
  13. package/deps/jq/README.md +64 -0
  14. package/deps/jq/builtin.c +1684 -0
  15. package/deps/jq/builtin.h +10 -0
  16. package/deps/jq/bytecode.c +161 -0
  17. package/deps/jq/bytecode.h +92 -0
  18. package/deps/jq/compile-ios.sh +102 -0
  19. package/deps/jq/compile.c +1210 -0
  20. package/deps/jq/compile.h +101 -0
  21. package/deps/jq/config/m4/check-math-func.m4 +4 -0
  22. package/deps/jq/config/m4/find-func-no-libs.m4 +8 -0
  23. package/deps/jq/config/m4/find-func-no-libs2.m4 +62 -0
  24. package/deps/jq/config/m4/find-func.m4 +9 -0
  25. package/deps/jq/config/m4/misc.m4 +3 -0
  26. package/deps/jq/configure.ac +221 -0
  27. package/deps/jq/docs/Gemfile +7 -0
  28. package/deps/jq/docs/Gemfile.lock +63 -0
  29. package/deps/jq/docs/README.md +25 -0
  30. package/deps/jq/docs/Rakefile +145 -0
  31. package/deps/jq/docs/content/1.tutorial/default.yml +327 -0
  32. package/deps/jq/docs/content/2.download/default.yml +117 -0
  33. package/deps/jq/docs/content/3.manual/manual.yml +2878 -0
  34. package/deps/jq/docs/content/3.manual/v1.3/manual.yml +1270 -0
  35. package/deps/jq/docs/content/3.manual/v1.4/manual.yml +1672 -0
  36. package/deps/jq/docs/content/index/index.yml +51 -0
  37. package/deps/jq/docs/default_manpage.md +22 -0
  38. package/deps/jq/docs/public/.htaccess +28 -0
  39. package/deps/jq/docs/public/bootstrap/css/bootstrap-responsive.css +1058 -0
  40. package/deps/jq/docs/public/bootstrap/css/bootstrap-responsive.min.css +9 -0
  41. package/deps/jq/docs/public/bootstrap/css/bootstrap.css +5224 -0
  42. package/deps/jq/docs/public/bootstrap/css/bootstrap.min.css +9 -0
  43. package/deps/jq/docs/public/bootstrap/img/glyphicons-halflings-white.png +0 -0
  44. package/deps/jq/docs/public/bootstrap/img/glyphicons-halflings.png +0 -0
  45. package/deps/jq/docs/public/bootstrap/js/bootstrap.js +2027 -0
  46. package/deps/jq/docs/public/bootstrap/js/bootstrap.min.js +6 -0
  47. package/deps/jq/docs/public/css/base.scss +99 -0
  48. package/deps/jq/docs/public/jq.png +0 -0
  49. package/deps/jq/docs/public/robots.txt +2 -0
  50. package/deps/jq/docs/site.yml +18 -0
  51. package/deps/jq/docs/templates/default.liquid +34 -0
  52. package/deps/jq/docs/templates/index.liquid +60 -0
  53. package/deps/jq/docs/templates/manual.liquid +122 -0
  54. package/deps/jq/docs/templates/shared/_footer.liquid +5 -0
  55. package/deps/jq/docs/templates/shared/_head.liquid +12 -0
  56. package/deps/jq/docs/templates/shared/_header.liquid +26 -0
  57. package/deps/jq/exec_stack.h +112 -0
  58. package/deps/jq/execute.c +1155 -0
  59. package/deps/jq/inject_errors.c +112 -0
  60. package/deps/jq/jq.1.default +39 -0
  61. package/deps/jq/jq.1.prebuilt +3075 -0
  62. package/deps/jq/jq.h +60 -0
  63. package/deps/jq/jq.spec +70 -0
  64. package/deps/jq/jq_parser.h +9 -0
  65. package/deps/jq/jq_test.c +346 -0
  66. package/deps/jq/jv.c +1333 -0
  67. package/deps/jq/jv.h +240 -0
  68. package/deps/jq/jv_alloc.c +179 -0
  69. package/deps/jq/jv_alloc.h +27 -0
  70. package/deps/jq/jv_aux.c +619 -0
  71. package/deps/jq/jv_dtoa.c +4275 -0
  72. package/deps/jq/jv_dtoa.h +22 -0
  73. package/deps/jq/jv_file.c +49 -0
  74. package/deps/jq/jv_parse.c +852 -0
  75. package/deps/jq/jv_print.c +348 -0
  76. package/deps/jq/jv_unicode.c +96 -0
  77. package/deps/jq/jv_unicode.h +11 -0
  78. package/deps/jq/jv_utf8_tables.h +37 -0
  79. package/deps/jq/lexer.c +2442 -0
  80. package/deps/jq/lexer.h +362 -0
  81. package/deps/jq/lexer.l +184 -0
  82. package/deps/jq/libm.h +160 -0
  83. package/deps/jq/linker.c +393 -0
  84. package/deps/jq/linker.h +7 -0
  85. package/deps/jq/locfile.c +91 -0
  86. package/deps/jq/locfile.h +29 -0
  87. package/deps/jq/m4/ax_compare_version.m4 +177 -0
  88. package/deps/jq/m4/ax_prog_bison_version.m4 +68 -0
  89. package/deps/jq/main.c +566 -0
  90. package/deps/jq/opcode_list.h +44 -0
  91. package/deps/jq/parser.c +3914 -0
  92. package/deps/jq/parser.h +193 -0
  93. package/deps/jq/parser.y +923 -0
  94. package/deps/jq/scripts/crosscompile +42 -0
  95. package/deps/jq/scripts/gen_utf8_tables.py +32 -0
  96. package/deps/jq/scripts/version +5 -0
  97. package/deps/jq/setup.sh +33 -0
  98. package/deps/jq/tests/jq.test +1235 -0
  99. package/deps/jq/tests/jqtest +5 -0
  100. package/deps/jq/tests/mantest +7 -0
  101. package/deps/jq/tests/modules/.jq +5 -0
  102. package/deps/jq/tests/modules/a.jq +2 -0
  103. package/deps/jq/tests/modules/b/b.jq +2 -0
  104. package/deps/jq/tests/modules/c/c.jq +16 -0
  105. package/deps/jq/tests/modules/c/d.jq +1 -0
  106. package/deps/jq/tests/modules/data.json +4 -0
  107. package/deps/jq/tests/modules/lib/jq/e/e.jq +1 -0
  108. package/deps/jq/tests/modules/lib/jq/f.jq +1 -0
  109. package/deps/jq/tests/modules/syntaxerror/syntaxerror.jq +1 -0
  110. package/deps/jq/tests/modules/test_bind_order.jq +4 -0
  111. package/deps/jq/tests/modules/test_bind_order0.jq +1 -0
  112. package/deps/jq/tests/modules/test_bind_order1.jq +2 -0
  113. package/deps/jq/tests/modules/test_bind_order2.jq +2 -0
  114. package/deps/jq/tests/onig.supp +21 -0
  115. package/deps/jq/tests/onig.test +85 -0
  116. package/deps/jq/tests/onigtest +5 -0
  117. package/deps/jq/tests/setup +36 -0
  118. package/deps/jq/tests/shtest +205 -0
  119. package/deps/jq/tests/torture/input0.json +7 -0
  120. package/deps/jq/util.c +462 -0
  121. package/deps/jq/util.h +64 -0
  122. package/deps/jq.gyp +35 -0
  123. package/index.d.ts +3 -0
  124. package/jest.config.js +10 -0
  125. package/lib/index.js +14 -0
  126. package/package.json +48 -0
  127. package/reports/jest-port-api.xml +35 -0
  128. package/src/binding.cc +177 -0
  129. package/src/binding.h +13 -0
  130. package/test/santiy.test.js +122 -0
  131. package/util/configure.js +27 -0
@@ -0,0 +1,193 @@
1
+ /* A Bison parser, made by GNU Bison 3.0.2. */
2
+
3
+ /* Bison interface for Yacc-like parsers in C
4
+
5
+ Copyright (C) 1984, 1989-1990, 2000-2013 Free Software Foundation, Inc.
6
+
7
+ This program is free software: you can redistribute it and/or modify
8
+ it under the terms of the GNU General Public License as published by
9
+ the Free Software Foundation, either version 3 of the License, or
10
+ (at your option) any later version.
11
+
12
+ This program is distributed in the hope that it will be useful,
13
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
+ GNU General Public License for more details.
16
+
17
+ You should have received a copy of the GNU General Public License
18
+ along with this program. If not, see <http://www.gnu.org/licenses/>. */
19
+
20
+ /* As a special exception, you may create a larger work that contains
21
+ part or all of the Bison parser skeleton and distribute that work
22
+ under terms of your choice, so long as that work isn't itself a
23
+ parser generator using the skeleton or a modified version thereof
24
+ as a parser skeleton. Alternatively, if you modify or redistribute
25
+ the parser skeleton itself, you may (at your option) remove this
26
+ special exception, which will cause the skeleton and the resulting
27
+ Bison output files to be licensed under the GNU General Public
28
+ License without this special exception.
29
+
30
+ This special exception was added by the Free Software Foundation in
31
+ version 2.2 of Bison. */
32
+
33
+ #ifndef YY_YY_PARSER_H_INCLUDED
34
+ # define YY_YY_PARSER_H_INCLUDED
35
+ /* Debug traces. */
36
+ #ifndef YYDEBUG
37
+ # define YYDEBUG 0
38
+ #endif
39
+ #if YYDEBUG
40
+ extern int yydebug;
41
+ #endif
42
+ /* "%code requires" blocks. */
43
+ #line 11 "parser.y" /* yacc.c:1909 */
44
+
45
+ #include "locfile.h"
46
+ struct lexer_param;
47
+
48
+ #define YYLTYPE location
49
+ #define YYLLOC_DEFAULT(Loc, Rhs, N) \
50
+ do { \
51
+ if (N) { \
52
+ (Loc).start = YYRHSLOC(Rhs, 1).start; \
53
+ (Loc).end = YYRHSLOC(Rhs, N).end; \
54
+ } else { \
55
+ (Loc).start = YYRHSLOC(Rhs, 0).end; \
56
+ (Loc).end = YYRHSLOC(Rhs, 0).end; \
57
+ } \
58
+ } while (0)
59
+
60
+ #line 61 "parser.h" /* yacc.c:1909 */
61
+
62
+ /* Token type. */
63
+ #ifndef YYTOKENTYPE
64
+ # define YYTOKENTYPE
65
+ enum yytokentype
66
+ {
67
+ INVALID_CHARACTER = 258,
68
+ IDENT = 259,
69
+ FIELD = 260,
70
+ LITERAL = 261,
71
+ FORMAT = 262,
72
+ REC = 263,
73
+ SETMOD = 264,
74
+ EQ = 265,
75
+ NEQ = 266,
76
+ DEFINEDOR = 267,
77
+ AS = 268,
78
+ DEF = 269,
79
+ MODULE = 270,
80
+ IMPORT = 271,
81
+ INCLUDE = 272,
82
+ IF = 273,
83
+ THEN = 274,
84
+ ELSE = 275,
85
+ ELSE_IF = 276,
86
+ REDUCE = 277,
87
+ FOREACH = 278,
88
+ END = 279,
89
+ AND = 280,
90
+ OR = 281,
91
+ TRY = 282,
92
+ CATCH = 283,
93
+ LABEL = 284,
94
+ BREAK = 285,
95
+ LOC = 286,
96
+ SETPIPE = 287,
97
+ SETPLUS = 288,
98
+ SETMINUS = 289,
99
+ SETMULT = 290,
100
+ SETDIV = 291,
101
+ SETDEFINEDOR = 292,
102
+ LESSEQ = 293,
103
+ GREATEREQ = 294,
104
+ QQSTRING_START = 295,
105
+ QQSTRING_TEXT = 296,
106
+ QQSTRING_INTERP_START = 297,
107
+ QQSTRING_INTERP_END = 298,
108
+ QQSTRING_END = 299,
109
+ FUNCDEF = 300,
110
+ NONOPT = 301
111
+ };
112
+ #endif
113
+ /* Tokens. */
114
+ #define INVALID_CHARACTER 258
115
+ #define IDENT 259
116
+ #define FIELD 260
117
+ #define LITERAL 261
118
+ #define FORMAT 262
119
+ #define REC 263
120
+ #define SETMOD 264
121
+ #define EQ 265
122
+ #define NEQ 266
123
+ #define DEFINEDOR 267
124
+ #define AS 268
125
+ #define DEF 269
126
+ #define MODULE 270
127
+ #define IMPORT 271
128
+ #define INCLUDE 272
129
+ #define IF 273
130
+ #define THEN 274
131
+ #define ELSE 275
132
+ #define ELSE_IF 276
133
+ #define REDUCE 277
134
+ #define FOREACH 278
135
+ #define END 279
136
+ #define AND 280
137
+ #define OR 281
138
+ #define TRY 282
139
+ #define CATCH 283
140
+ #define LABEL 284
141
+ #define BREAK 285
142
+ #define LOC 286
143
+ #define SETPIPE 287
144
+ #define SETPLUS 288
145
+ #define SETMINUS 289
146
+ #define SETMULT 290
147
+ #define SETDIV 291
148
+ #define SETDEFINEDOR 292
149
+ #define LESSEQ 293
150
+ #define GREATEREQ 294
151
+ #define QQSTRING_START 295
152
+ #define QQSTRING_TEXT 296
153
+ #define QQSTRING_INTERP_START 297
154
+ #define QQSTRING_INTERP_END 298
155
+ #define QQSTRING_END 299
156
+ #define FUNCDEF 300
157
+ #define NONOPT 301
158
+
159
+ /* Value type. */
160
+ #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
161
+ typedef union YYSTYPE YYSTYPE;
162
+ union YYSTYPE
163
+ {
164
+ #line 31 "parser.y" /* yacc.c:1909 */
165
+
166
+ jv literal;
167
+ block blk;
168
+
169
+ #line 170 "parser.h" /* yacc.c:1909 */
170
+ };
171
+ # define YYSTYPE_IS_TRIVIAL 1
172
+ # define YYSTYPE_IS_DECLARED 1
173
+ #endif
174
+
175
+ /* Location type. */
176
+ #if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
177
+ typedef struct YYLTYPE YYLTYPE;
178
+ struct YYLTYPE
179
+ {
180
+ int first_line;
181
+ int first_column;
182
+ int last_line;
183
+ int last_column;
184
+ };
185
+ # define YYLTYPE_IS_DECLARED 1
186
+ # define YYLTYPE_IS_TRIVIAL 1
187
+ #endif
188
+
189
+
190
+
191
+ int yyparse (block* answer, int* errors, struct locfile* locations, struct lexer_param* lexer_param_ptr);
192
+
193
+ #endif /* !YY_YY_PARSER_H_INCLUDED */