tree-sitter-beancount 2.0.0 → 2.1.2

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.
@@ -11,8 +11,7 @@ cost empty
11
11
  (file
12
12
  (transaction
13
13
  (date)
14
- (flag)
15
- (postings
14
+ (txn)
16
15
  (posting
17
16
  (account)
18
17
  (incomplete_amount (number) (currency))
@@ -25,7 +24,6 @@ cost empty
25
24
  (currency)
26
25
  )
27
26
  )
28
- )
29
27
  )
30
28
  )
31
29
 
@@ -42,8 +40,7 @@ cost amount
42
40
  (file
43
41
  (transaction
44
42
  (date)
45
- (flag)
46
- (postings
43
+ (txn)
47
44
  (posting
48
45
  (account)
49
46
  (incomplete_amount
@@ -51,14 +48,12 @@ cost amount
51
48
  (currency)
52
49
  )
53
50
  (cost_spec
54
- (cost_comp_list
55
51
  (cost_comp
56
- (compound_amout
52
+ (compound_amount
57
53
  (number)
58
54
  (currency)
59
55
  )
60
56
  )
61
- )
62
57
  )
63
58
  )
64
59
  (posting
@@ -70,7 +65,6 @@ cost amount
70
65
  (currency)
71
66
  )
72
67
  )
73
- )
74
68
  )
75
69
  )
76
70
 
@@ -87,13 +81,12 @@ cost date
87
81
  (file
88
82
  (transaction
89
83
  (date)
90
- (flag)
91
- (postings
84
+ (txn)
92
85
  (posting
93
86
  (account)
94
87
  (incomplete_amount (number) (currency))
95
88
  (cost_spec
96
- (cost_comp_list (cost_comp (date)))
89
+ (cost_comp (date))
97
90
  )
98
91
  )
99
92
  (posting
@@ -103,7 +96,6 @@ cost date
103
96
  (currency)
104
97
  )
105
98
  )
106
- )
107
99
  )
108
100
  )
109
101
 
@@ -120,13 +112,12 @@ cost label
120
112
  (file
121
113
  (transaction
122
114
  (date)
123
- (flag)
124
- (postings
115
+ (txn)
125
116
  (posting
126
117
  (account)
127
118
  (incomplete_amount (number) (currency))
128
119
  (cost_spec
129
- (cost_comp_list (cost_comp (string)))
120
+ (cost_comp (string))
130
121
  )
131
122
  )
132
123
  (posting
@@ -136,7 +127,6 @@ cost label
136
127
  (currency)
137
128
  )
138
129
  )
139
- )
140
130
  )
141
131
  )
142
132
 
@@ -153,12 +143,11 @@ cost merge
153
143
  (file
154
144
  (transaction
155
145
  (date)
156
- (flag)
157
- (postings
146
+ (txn)
158
147
  (posting
159
148
  (account)
160
149
  (incomplete_amount (number) (currency))
161
- (cost_spec (cost_comp_list (cost_comp)))
150
+ (cost_spec (cost_comp))
162
151
  )
163
152
  (posting
164
153
  (account)
@@ -167,7 +156,6 @@ cost merge
167
156
  (currency)
168
157
  )
169
158
  )
170
- )
171
159
  )
172
160
  )
173
161
 
@@ -188,69 +176,55 @@ cost two component
188
176
  (file
189
177
  (transaction
190
178
  (date)
191
- (flag)
192
- (postings
179
+ (txn)
193
180
  (posting
194
181
  (account)
195
182
  (incomplete_amount (number) (currency))
196
183
  (cost_spec
197
- (cost_comp_list
198
- (cost_comp (compound_amout (number) (currency)))
184
+ (cost_comp (compound_amount (number) (currency)))
199
185
  (cost_comp (date))
200
- )
201
186
  )
202
187
  )
203
188
  (posting
204
189
  (account)
205
190
  (incomplete_amount (number) (currency))
206
191
  (cost_spec
207
- (cost_comp_list
208
192
  (cost_comp (date))
209
- (cost_comp (compound_amout (number) (currency)))
210
- )
193
+ (cost_comp (compound_amount (number) (currency)))
211
194
  )
212
195
  )
213
196
  (posting
214
197
  (account)
215
198
  (incomplete_amount (number) (currency))
216
199
  (cost_spec
217
- (cost_comp_list
218
- (cost_comp (compound_amout (number) (currency)))
200
+ (cost_comp (compound_amount (number) (currency)))
219
201
  (cost_comp (string))
220
- )
221
202
  )
222
203
  )
223
204
  (posting
224
205
  (account)
225
206
  (incomplete_amount (number) (currency))
226
207
  (cost_spec
227
- (cost_comp_list
228
208
  (cost_comp (string))
229
- (cost_comp (compound_amout (number) (currency)))
230
- )
209
+ (cost_comp (compound_amount (number) (currency)))
231
210
  )
232
211
  )
233
212
  (posting
234
213
  (account)
235
214
  (incomplete_amount (number) (currency))
236
215
  (cost_spec
237
- (cost_comp_list
238
216
  (cost_comp (date))
239
217
  (cost_comp (string))
240
- )
241
218
  )
242
219
  )
243
220
  (posting
244
221
  (account)
245
222
  (incomplete_amount (number) (currency))
246
223
  (cost_spec
247
- (cost_comp_list
248
224
  (cost_comp (string))
249
225
  (cost_comp (date))
250
- )
251
226
  )
252
227
  )
253
- )
254
228
  )
255
229
  )
256
230
 
@@ -271,75 +245,61 @@ cost three component
271
245
  (file
272
246
  (transaction
273
247
  (date)
274
- (flag)
275
- (postings
248
+ (txn)
276
249
  (posting
277
250
  (account)
278
251
  (incomplete_amount (number) (currency))
279
252
  (cost_spec
280
- (cost_comp_list
281
- (cost_comp (compound_amout (number) (currency)))
253
+ (cost_comp (compound_amount (number) (currency)))
282
254
  (cost_comp (date))
283
255
  (cost_comp (string))
284
- )
285
256
  )
286
257
  )
287
258
  (posting
288
259
  (account)
289
260
  (incomplete_amount (number) (currency))
290
261
  (cost_spec
291
- (cost_comp_list
292
262
  (cost_comp (date))
293
- (cost_comp (compound_amout (number) (currency)))
263
+ (cost_comp (compound_amount (number) (currency)))
294
264
  (cost_comp (string))
295
- )
296
265
  )
297
266
  )
298
267
  (posting
299
268
  (account)
300
269
  (incomplete_amount (number) (currency))
301
270
  (cost_spec
302
- (cost_comp_list
303
- (cost_comp (compound_amout (number) (currency)))
271
+ (cost_comp (compound_amount (number) (currency)))
304
272
  (cost_comp (string))
305
273
  (cost_comp (date))
306
- )
307
274
  )
308
275
  )
309
276
  (posting
310
277
  (account)
311
278
  (incomplete_amount (number) (currency))
312
279
  (cost_spec
313
- (cost_comp_list
314
280
  (cost_comp (date))
315
281
  (cost_comp (string))
316
- (cost_comp (compound_amout (number) (currency)))
317
- )
282
+ (cost_comp (compound_amount (number) (currency)))
318
283
  )
319
284
  )
320
285
  (posting
321
286
  (account)
322
287
  (incomplete_amount (number) (currency))
323
288
  (cost_spec
324
- (cost_comp_list
325
289
  (cost_comp (string))
326
- (cost_comp (compound_amout (number) (currency)))
290
+ (cost_comp (compound_amount (number) (currency)))
327
291
  (cost_comp (date))
328
- )
329
292
  )
330
293
  )
331
294
  (posting
332
295
  (account)
333
296
  (incomplete_amount (number) (currency))
334
297
  (cost_spec
335
- (cost_comp_list
336
298
  (cost_comp (string))
337
299
  (cost_comp (date))
338
- (cost_comp (compound_amout (number) (currency)))
339
- )
300
+ (cost_comp (compound_amount (number) (currency)))
340
301
  )
341
302
  )
342
- )
343
303
  )
344
304
  )
345
305
 
@@ -356,22 +316,18 @@ cost both costs
356
316
  (file
357
317
  (transaction
358
318
  (date)
359
- (flag)
360
- (postings
319
+ (txn)
361
320
  (posting
362
321
  (account)
363
322
  (incomplete_amount (number) (currency))
364
323
  (cost_spec
365
- (cost_comp_list
366
- (cost_comp (compound_amout (number) (number) (currency)))
367
- )
324
+ (cost_comp (compound_amount (number) (number) (currency)))
368
325
  )
369
326
  )
370
327
  (posting
371
328
  (account)
372
329
  (incomplete_amount (unary_number_expr (minus) (number)) (currency))
373
330
  )
374
- )
375
331
  )
376
332
  )
377
333
 
@@ -388,22 +344,18 @@ cost total cost
388
344
  (file
389
345
  (transaction
390
346
  (date)
391
- (flag)
392
- (postings
347
+ (txn)
393
348
  (posting
394
349
  (account)
395
350
  (incomplete_amount (number) (currency))
396
351
  (cost_spec
397
- (cost_comp_list
398
- (cost_comp (compound_amout (number) (currency)))
399
- )
352
+ (cost_comp (compound_amount (number) (currency)))
400
353
  )
401
354
  )
402
355
  (posting
403
356
  (account)
404
357
  (incomplete_amount (unary_number_expr (minus) (number)) (currency))
405
358
  )
406
- )
407
359
  )
408
360
  )
409
361
 
@@ -420,27 +372,23 @@ cost total empty total
420
372
  (file
421
373
  (transaction
422
374
  (date)
423
- (flag)
424
- (postings
375
+ (txn)
425
376
  (posting
426
377
  (account)
427
378
  (incomplete_amount (number) (currency))
428
379
  (cost_spec
429
- (cost_comp_list
430
- (cost_comp (compound_amout (number) (currency)))
431
- )
380
+ (cost_comp (compound_amount (number) (currency)))
432
381
  )
433
382
  )
434
383
  (posting
435
384
  (account)
436
385
  (incomplete_amount (unary_number_expr (minus) (number)) (currency))
437
386
  )
438
- )
439
387
  )
440
388
  )
441
389
 
442
390
  ==============
443
- cost neagtive
391
+ cost negative
444
392
  ==============
445
393
 
446
394
  2013-05-18 * ""
@@ -452,22 +400,18 @@ cost neagtive
452
400
  (file
453
401
  (transaction
454
402
  (date)
455
- (flag)
456
- (txn_strings (string))
457
- (postings
403
+ (txn)
404
+ (narration)
458
405
  (posting
459
406
  (account)
460
407
  (incomplete_amount (unary_number_expr (minus) (number)) (currency))
461
408
  (cost_spec
462
- (cost_comp_list
463
- (cost_comp (compound_amout (unary_number_expr (number)) (currency)))
464
- )
409
+ (cost_comp (compound_amount (unary_number_expr (minus) (number)) (currency)))
465
410
  )
466
411
  )
467
412
  (posting
468
413
  (account)
469
414
  (incomplete_amount (number) (currency))
470
415
  )
471
- )
472
416
  )
473
417
  )
@@ -11,10 +11,9 @@ links
11
11
  (file
12
12
  (transaction
13
13
  (date)
14
- (flag)
15
- (txn_strings (string))
16
- (tags_and_links (link))
17
- (postings
14
+ (txn)
15
+ (narration)
16
+ (tags_links (link))
18
17
  (posting
19
18
  (account)
20
19
  (incomplete_amount
@@ -25,10 +24,9 @@ links
25
24
  (posting
26
25
  (account)
27
26
  (incomplete_amount
28
- (unary_number_expr (number))
27
+ (unary_number_expr (minus) (number))
29
28
  (currency)
30
29
  )
31
30
  )
32
- )
33
31
  )
34
32
  )
@@ -14,22 +14,21 @@ popmeta location:
14
14
 
15
15
  (file
16
16
  (pushmeta
17
- (key_value (key) (string))
17
+ (key_value (key) (value (string)))
18
18
  )
19
19
  (transaction
20
20
  (date)
21
- (flag)
22
- (txn_strings (string))
23
- (postings
21
+ (txn)
22
+ (narration)
24
23
  (posting
25
24
  (account)
26
25
  (incomplete_amount (number) (currency))
27
26
  )
28
27
  (posting
29
28
  (account)
30
- (incomplete_amount (unary_number_expr (number)) (currency))
29
+ (incomplete_amount (unary_number_expr (minus) (number)) (currency))
31
30
  )
32
- )
33
31
  )
32
+ (popmeta (key))
34
33
  )
35
34
 
@@ -11,17 +11,15 @@ no narration
11
11
  (file
12
12
  (transaction
13
13
  (date)
14
- (flag)
15
- (postings
14
+ (txn)
16
15
  (posting
17
16
  (account)
18
17
  (incomplete_amount (number) (currency))
19
18
  )
20
19
  (posting
21
20
  (account)
22
- (incomplete_amount (unary_number_expr (number)) (currency))
21
+ (incomplete_amount (unary_number_expr (minus) (number)) (currency))
23
22
  )
24
- )
25
23
  )
26
24
  )
27
25
 
@@ -38,20 +36,17 @@ tag then link
38
36
  (file
39
37
  (transaction
40
38
  (date)
41
- (flag)
42
- (txn_strings (string))
43
- (link)
44
- (tag)
45
- (postings
39
+ (txn)
40
+ (narration)
41
+ (tags_links (link) (tag))
46
42
  (posting
47
43
  (account)
48
44
  (incomplete_amount (number) (currency))
49
45
  )
50
46
  (posting
51
47
  (account)
52
- (incomplete_amount (unary_number_expr (number)) (currency))
48
+ (incomplete_amount (unary_number_expr (minus) (number)) (currency))
53
49
  )
54
- )
55
50
  )
56
51
  )
57
52
 
@@ -59,7 +54,7 @@ tag then link
59
54
  link then tag
60
55
  ==============
61
56
 
62
- 2014-04-20 * #trip "Money from CC" ^610fa7f17e7a
57
+ 2014-04-20 * "Money from CC" #trip ^610fa7f17e7a
63
58
  Expenses:Restaurant 100 USD
64
59
  Assets:US:Cash -100 USD
65
60
 
@@ -68,20 +63,17 @@ link then tag
68
63
  (file
69
64
  (transaction
70
65
  (date)
71
- (flag)
72
- (txn_strings (string))
73
- (tag)
74
- (link)
75
- (postings
66
+ (txn)
67
+ (narration)
68
+ (tags_links (tag) (link))
76
69
  (posting
77
70
  (account)
78
71
  (incomplete_amount (number) (currency))
79
72
  )
80
73
  (posting
81
74
  (account)
82
- (incomplete_amount (unary_number_expr (number)) (currency))
75
+ (incomplete_amount (unary_number_expr (minus) (number)) (currency))
83
76
  )
84
- )
85
77
  )
86
78
  )
87
79
 
@@ -100,25 +92,26 @@ zero prices
100
92
  (file
101
93
  (transaction
102
94
  (date)
103
- (flag)
104
- (txn_strings (string))
105
- (postings
95
+ (txn)
96
+ (narration)
106
97
  (posting
107
98
  (account)
108
99
  (incomplete_amount (number) (currency))
100
+ (at)
109
101
  (price_annotation (incomplete_amount (number) (currency)))
110
102
  )
111
103
  (posting
112
104
  (account)
113
105
  (incomplete_amount (number) (currency))
106
+ (at)
114
107
  (price_annotation (incomplete_amount (number) (currency)))
115
108
  )
116
109
  (posting
117
110
  (account)
118
111
  (incomplete_amount (number) (currency))
112
+ (at)
119
113
  (price_annotation (incomplete_amount (number) (currency)))
120
114
  )
121
- )
122
115
  )
123
116
  )
124
117
 
@@ -135,23 +128,19 @@ zero units
135
128
  (file
136
129
  (transaction
137
130
  (date)
138
- (flag)
139
- (txn_strings (string))
140
- (postings
131
+ (txn)
132
+ (narration)
141
133
  (posting
142
134
  (account)
143
135
  (incomplete_amount (number) (currency))
144
136
  (cost_spec
145
- (cost_comp_list
146
- (cost_comp (compound_amout (number) (currency)))
147
- )
137
+ (cost_comp (compound_amount (number) (currency)))
148
138
  )
149
139
  )
150
140
  (posting
151
141
  (account)
152
142
  (incomplete_amount (number) (currency))
153
143
  )
154
- )
155
144
  )
156
145
  )
157
146
 
@@ -168,23 +157,19 @@ zero costs
168
157
  (file
169
158
  (transaction
170
159
  (date)
171
- (flag)
172
- (txn_strings (string))
173
- (postings
174
- (posting
175
- (account)
176
- (incomplete_amount (number) (currency))
177
- (cost_spec
178
- (cost_comp_list
179
- (cost_comp (compound_amout (number) (currency)))
180
- )
181
- )
182
- )
183
- (posting
184
- (account)
185
- (incomplete_amount (number) (currency))
160
+ (txn)
161
+ (narration)
162
+ (posting
163
+ (account)
164
+ (incomplete_amount (number) (currency))
165
+ (cost_spec
166
+ (cost_comp (compound_amount (number) (currency)))
186
167
  )
187
168
  )
169
+ (posting
170
+ (account)
171
+ (incomplete_amount (number) (currency))
172
+ )
188
173
  )
189
174
  )
190
175
 
@@ -196,7 +181,14 @@ no postings
196
181
 
197
182
  ---
198
183
 
199
- (file)
184
+ (file
185
+ (transaction
186
+ (date)
187
+ (txn)
188
+ (narration)
189
+ (tags_links (link))
190
+ )
191
+ )
200
192
 
201
193
  ======================
202
194
  tags after first line
@@ -214,4 +206,19 @@ tags after first line
214
206
 
215
207
  ---
216
208
 
217
- (file)
209
+ (file
210
+ (transaction
211
+ (date)
212
+ (txn)
213
+ (narration)
214
+ (tags_links (tag) (link))
215
+ (tags_links (tag) (tag))
216
+ (tags_links (link) (tag))
217
+ (tags_links (tag) (link))
218
+ (tags_links (link) (link))
219
+ (tags_links (tag))
220
+ (tags_links (link))
221
+ (posting (account) (incomplete_amount (number) (currency)))
222
+ (posting (account) (incomplete_amount (unary_number_expr (minus) (number)) (currency)))
223
+ )
224
+ )
@@ -17,6 +17,7 @@ extra whitespace
17
17
  (account)
18
18
  (string)
19
19
  )
20
+ (comment)
20
21
  )
21
22
 
22
23
  =============================
@@ -34,9 +35,8 @@ extra whitespace transaction
34
35
  (file
35
36
  (transaction
36
37
  (date)
37
- (flag)
38
- (txn_strings (string))
39
- (postings
38
+ (txn)
39
+ (narration)
40
40
  (posting
41
41
  (account)
42
42
  (incomplete_amount
@@ -47,6 +47,6 @@ extra whitespace transaction
47
47
  (posting
48
48
  (account)
49
49
  )
50
- )
51
50
  )
51
+ (comment)
52
52
  )
package/index.js DELETED
@@ -1,13 +0,0 @@
1
- try {
2
- module.exports = require("./build/Release/tree_sitter_beancount_binding");
3
- } catch (error) {
4
- try {
5
- module.exports = require("./build/Debug/tree_sitter_beancount_binding");
6
- } catch (_) {
7
- throw error
8
- }
9
- }
10
-
11
- try {
12
- module.exports.nodeTypeInfo = require("./src/node-types.json");
13
- } catch (_) {}
Binary file