ruby-ll 2.1.3 → 2.1.4

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 (4) hide show
  1. checksums.yaml +4 -4
  2. data/ext/c/driver.c +15 -4
  3. data/lib/ll/version.rb +1 -1
  4. metadata +3 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2e1faade684ee6c30dbceab3e16db55cd11d94a89933649d324009e1fd033f33
4
- data.tar.gz: 2cbd469bbd142d904cbed8feb4557bd813744ab20cb5af9a5decc1f04eaca957
3
+ metadata.gz: 1d49084634bb74f2dbcb1a7b5879b4dc04834eaa5b8fb9b6320f27bb5b3a163a
4
+ data.tar.gz: 6bb604c577c149786c6786620eb7051ded78c0abbecfaa948dcaa668b276cad8
5
5
  SHA512:
6
- metadata.gz: 3d8910a725c85f891ca9162d7d56893cac42eee64fed9e8cd00ba565e14eb7d34f204ea90ced3b8783b1ab411fb3595fdb849780b7a5babfe4c7674be8822f26
7
- data.tar.gz: f9f08de4719772842c6693dc7fde5212b2eb94d1086a673f1557d6ea97a6f8f7f6ec5403a358a4d13fe0c714cdb6518e488fd460d740b0508a9799c59ffceb74
6
+ metadata.gz: 699326ad786887699f305388f7dca6dab8da10492f4f2dc49f7633cce7a8125c087f78a1a3bc31a8547c916ca51175801090c4eecd852a8a6b790a039af9da8a
7
+ data.tar.gz: 1cbb1b087c2b404b3fc942f148a5c6d9aa0b4289132193cd73a10cef7758e489881733e04e622b49ca4480c878f51955944d287334c2fc2f7e8f79bbad385012
data/ext/c/driver.c CHANGED
@@ -60,13 +60,24 @@ VALUE ll_driver_allocate(VALUE klass)
60
60
  }
61
61
 
62
62
  /**
63
- * Callback function for iterating over every input token and actually parsing
64
- * said input.
63
+ * Callback function for iterating over every input token and parsing it.
64
+ *
65
+ * This function is intended to be used as a block callback for Ruby's
66
+ * `rb_block_call`, and processes a single token per invocation.
65
67
  *
66
68
  * @param token An Array containing the token type as a Symbol and its value.
67
69
  * @param self The Driver instance currently in use.
70
+ * @param argc The number of additional arguments passed to the block.
71
+ * @param argv The array of additional arguments passed to the block.
72
+ * @param block_arg The block argument passed from Ruby (if any).
68
73
  */
69
- VALUE ll_driver_each_token(VALUE token, VALUE self)
74
+ VALUE ll_driver_each_token(
75
+ VALUE token,
76
+ VALUE self,
77
+ int argc,
78
+ const VALUE *argv,
79
+ VALUE block_arg
80
+ )
70
81
  {
71
82
  VALUE method;
72
83
  VALUE action_args;
@@ -326,7 +337,7 @@ VALUE ll_driver_parse(VALUE self)
326
337
  id_each_token,
327
338
  0,
328
339
  NULL,
329
- RUBY_METHOD_FUNC(ll_driver_each_token),
340
+ ll_driver_each_token,
330
341
  self
331
342
  );
332
343
 
data/lib/ll/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module LL
2
- VERSION = '2.1.3'
2
+ VERSION = '2.1.4'
3
3
  end # LL
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-ll
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.3
4
+ version: 2.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yorick Peterse
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2023-06-10 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: ast
@@ -193,7 +192,6 @@ homepage: https://github.com/yorickpeterse/ruby-ll
193
192
  licenses:
194
193
  - MPL-2.0
195
194
  metadata: {}
196
- post_install_message:
197
195
  rdoc_options: []
198
196
  require_paths:
199
197
  - lib
@@ -208,8 +206,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
208
206
  - !ruby/object:Gem::Version
209
207
  version: '0'
210
208
  requirements: []
211
- rubygems_version: 3.4.8
212
- signing_key:
209
+ rubygems_version: 3.6.9
213
210
  specification_version: 4
214
211
  summary: An LL(1) parser generator for Ruby.
215
212
  test_files: []