cybrid_api_id_ruby 0.116.7 → 0.116.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/README.md +5 -5
- data/cybrid_api_id_ruby.gemspec +1 -1
- data/lib/cybrid_api_id_ruby/api/bank_applications_idp_api.rb +1 -1
- data/lib/cybrid_api_id_ruby/api/customer_tokens_idp_api.rb +1 -1
- data/lib/cybrid_api_id_ruby/api/organization_applications_idp_api.rb +1 -1
- data/lib/cybrid_api_id_ruby/api/users_idp_api.rb +1 -1
- data/lib/cybrid_api_id_ruby/api_client.rb +1 -1
- data/lib/cybrid_api_id_ruby/api_error.rb +1 -1
- data/lib/cybrid_api_id_ruby/configuration.rb +1 -1
- data/lib/cybrid_api_id_ruby/models/application_idp_model.rb +1 -1
- data/lib/cybrid_api_id_ruby/models/application_list_idp_model.rb +1 -1
- data/lib/cybrid_api_id_ruby/models/application_with_secret_all_of_idp_model.rb +1 -1
- data/lib/cybrid_api_id_ruby/models/application_with_secret_idp_model.rb +1 -1
- data/lib/cybrid_api_id_ruby/models/customer_token_idp_model.rb +1 -1
- data/lib/cybrid_api_id_ruby/models/error_response_idp_model.rb +1 -1
- data/lib/cybrid_api_id_ruby/models/post_bank_application_idp_model.rb +1 -1
- data/lib/cybrid_api_id_ruby/models/post_customer_token_idp_model.rb +1 -1
- data/lib/cybrid_api_id_ruby/models/post_organization_application_idp_model.rb +1 -1
- data/lib/cybrid_api_id_ruby/models/post_user_idp_model.rb +1 -1
- data/lib/cybrid_api_id_ruby/models/user_idp_model.rb +1 -1
- data/lib/cybrid_api_id_ruby/models/user_list_idp_model.rb +1 -1
- data/lib/cybrid_api_id_ruby/version.rb +2 -2
- data/lib/cybrid_api_id_ruby.rb +1 -1
- data/spec/api/bank_applications_idp_api_spec.rb +1 -1
- data/spec/api/customer_tokens_idp_api_spec.rb +1 -1
- data/spec/api/organization_applications_idp_api_spec.rb +1 -1
- data/spec/api/users_idp_api_spec.rb +1 -1
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/application_idp_model_spec.rb +1 -1
- data/spec/models/application_list_idp_model_spec.rb +1 -1
- data/spec/models/application_with_secret_all_of_idp_model_spec.rb +1 -1
- data/spec/models/application_with_secret_idp_model_spec.rb +1 -1
- data/spec/models/customer_token_idp_model_spec.rb +1 -1
- data/spec/models/error_response_idp_model_spec.rb +1 -1
- data/spec/models/post_bank_application_idp_model_spec.rb +1 -1
- data/spec/models/post_customer_token_idp_model_spec.rb +1 -1
- data/spec/models/post_organization_application_idp_model_spec.rb +1 -1
- data/spec/models/post_user_idp_model_spec.rb +1 -1
- data/spec/models/user_idp_model_spec.rb +1 -1
- data/spec/models/user_list_idp_model_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- data/vendor/bundle/ruby/3.2.0/cache/racc-1.8.0.gem +0 -0
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/byebug-11.1.3/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/ffi-1.16.3/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/jaro_winkler-1.5.6/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/psych-5.1.2/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/racc-1.8.0/gem_make.out +26 -0
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/racc-1.8.0/racc/cparse.so +0 -0
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.1.0/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/gems/{racc-1.7.3 → racc-1.8.0}/ChangeLog +3 -3
- data/vendor/bundle/ruby/3.2.0/gems/{racc-1.7.3 → racc-1.8.0}/README.ja.rdoc +2 -10
- data/vendor/bundle/ruby/3.2.0/gems/{racc-1.7.3 → racc-1.8.0}/bin/racc +26 -32
- data/vendor/bundle/ruby/3.2.0/gems/{racc-1.7.3 → racc-1.8.0}/doc/en/grammar.en.rdoc +99 -107
- data/vendor/bundle/ruby/3.2.0/gems/{racc-1.7.3 → racc-1.8.0}/ext/racc/cparse/Makefile +1 -1
- data/vendor/bundle/ruby/3.2.0/gems/racc-1.8.0/lib/racc/cparse.so +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/{racc-1.7.3 → racc-1.8.0}/lib/racc/grammar.rb +77 -0
- data/vendor/bundle/ruby/3.2.0/gems/{racc-1.7.3 → racc-1.8.0}/lib/racc/grammarfileparser.rb +114 -8
- data/vendor/bundle/ruby/3.2.0/gems/{racc-1.7.3 → racc-1.8.0}/lib/racc/info.rb +1 -1
- data/vendor/bundle/ruby/3.2.0/gems/{racc-1.7.3 → racc-1.8.0}/lib/racc/parser-text.rb +1 -5
- data/vendor/bundle/ruby/3.2.0/gems/{racc-1.7.3 → racc-1.8.0}/lib/racc/parser.rb +0 -4
- data/vendor/bundle/ruby/3.2.0/gems/{racc-1.7.3 → racc-1.8.0}/lib/racc/state.rb +4 -0
- data/vendor/bundle/ruby/3.2.0/specifications/{racc-1.7.3.gemspec → racc-1.8.0.gemspec} +3 -3
- metadata +41 -41
- data/vendor/bundle/ruby/3.2.0/cache/racc-1.7.3.gem +0 -0
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/racc-1.7.3/gem_make.out +0 -26
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/racc-1.7.3/racc/cparse.so +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/racc-1.7.3/lib/racc/cparse.so +0 -0
- /data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/{racc-1.7.3 → racc-1.8.0}/gem.build_complete +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{racc-1.7.3 → racc-1.8.0}/COPYING +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{racc-1.7.3 → racc-1.8.0}/README.rdoc +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{racc-1.7.3 → racc-1.8.0}/TODO +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{racc-1.7.3 → racc-1.8.0}/doc/en/grammar2.en.rdoc +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{racc-1.7.3 → racc-1.8.0}/doc/ja/command.ja.html +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{racc-1.7.3 → racc-1.8.0}/doc/ja/debug.ja.rdoc +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{racc-1.7.3 → racc-1.8.0}/doc/ja/grammar.ja.rdoc +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{racc-1.7.3 → racc-1.8.0}/doc/ja/index.ja.html +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{racc-1.7.3 → racc-1.8.0}/doc/ja/parser.ja.rdoc +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{racc-1.7.3 → racc-1.8.0}/doc/ja/usage.ja.html +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{racc-1.7.3 → racc-1.8.0}/ext/racc/cparse/cparse.c +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{racc-1.7.3 → racc-1.8.0}/ext/racc/cparse/extconf.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{racc-1.7.3 → racc-1.8.0}/lib/racc/compat.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{racc-1.7.3 → racc-1.8.0}/lib/racc/debugflags.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{racc-1.7.3 → racc-1.8.0}/lib/racc/exception.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{racc-1.7.3 → racc-1.8.0}/lib/racc/iset.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{racc-1.7.3 → racc-1.8.0}/lib/racc/logfilegenerator.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{racc-1.7.3 → racc-1.8.0}/lib/racc/parserfilegenerator.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{racc-1.7.3 → racc-1.8.0}/lib/racc/sourcetext.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{racc-1.7.3 → racc-1.8.0}/lib/racc/statetransitiontable.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{racc-1.7.3 → racc-1.8.0}/lib/racc/static.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{racc-1.7.3 → racc-1.8.0}/lib/racc.rb +0 -0
@@ -5,7 +5,7 @@ checking for yaml_get_version() in -lyaml... yes
|
|
5
5
|
creating Makefile
|
6
6
|
|
7
7
|
current directory: /home/circleci/project/api-service-clients/api-idp/ruby/vendor/bundle/ruby/3.2.0/gems/psych-5.1.2/ext/psych
|
8
|
-
make DESTDIR\= sitearchdir\=./.gem.
|
8
|
+
make DESTDIR\= sitearchdir\=./.gem.20240520-3700-gc39e1 sitelibdir\=./.gem.20240520-3700-gc39e1 clean
|
9
9
|
make[1]: Entering directory '/home/circleci/project/api-service-clients/api-idp/ruby/vendor/bundle/ruby/3.2.0/gems/psych-5.1.2/ext/psych'
|
10
10
|
cd libyaml && make clean
|
11
11
|
/bin/sh: 1: cd: can't cd to libyaml
|
@@ -13,7 +13,7 @@ make[1]: [Makefile:283: clean-so] Error 2 (ignored)
|
|
13
13
|
make[1]: Leaving directory '/home/circleci/project/api-service-clients/api-idp/ruby/vendor/bundle/ruby/3.2.0/gems/psych-5.1.2/ext/psych'
|
14
14
|
|
15
15
|
current directory: /home/circleci/project/api-service-clients/api-idp/ruby/vendor/bundle/ruby/3.2.0/gems/psych-5.1.2/ext/psych
|
16
|
-
make DESTDIR\= sitearchdir\=./.gem.
|
16
|
+
make DESTDIR\= sitearchdir\=./.gem.20240520-3700-gc39e1 sitelibdir\=./.gem.20240520-3700-gc39e1
|
17
17
|
make[1]: Entering directory '/home/circleci/project/api-service-clients/api-idp/ruby/vendor/bundle/ruby/3.2.0/gems/psych-5.1.2/ext/psych'
|
18
18
|
compiling psych.c
|
19
19
|
compiling psych_emitter.c
|
@@ -24,13 +24,13 @@ linking shared-object psych.so
|
|
24
24
|
make[1]: Leaving directory '/home/circleci/project/api-service-clients/api-idp/ruby/vendor/bundle/ruby/3.2.0/gems/psych-5.1.2/ext/psych'
|
25
25
|
|
26
26
|
current directory: /home/circleci/project/api-service-clients/api-idp/ruby/vendor/bundle/ruby/3.2.0/gems/psych-5.1.2/ext/psych
|
27
|
-
make DESTDIR\= sitearchdir\=./.gem.
|
27
|
+
make DESTDIR\= sitearchdir\=./.gem.20240520-3700-gc39e1 sitelibdir\=./.gem.20240520-3700-gc39e1 install
|
28
28
|
make[1]: Entering directory '/home/circleci/project/api-service-clients/api-idp/ruby/vendor/bundle/ruby/3.2.0/gems/psych-5.1.2/ext/psych'
|
29
|
-
/usr/bin/install -c -m 0755 psych.so ./.gem.
|
29
|
+
/usr/bin/install -c -m 0755 psych.so ./.gem.20240520-3700-gc39e1
|
30
30
|
make[1]: Leaving directory '/home/circleci/project/api-service-clients/api-idp/ruby/vendor/bundle/ruby/3.2.0/gems/psych-5.1.2/ext/psych'
|
31
31
|
|
32
32
|
current directory: /home/circleci/project/api-service-clients/api-idp/ruby/vendor/bundle/ruby/3.2.0/gems/psych-5.1.2/ext/psych
|
33
|
-
make DESTDIR\= sitearchdir\=./.gem.
|
33
|
+
make DESTDIR\= sitearchdir\=./.gem.20240520-3700-gc39e1 sitelibdir\=./.gem.20240520-3700-gc39e1 clean
|
34
34
|
make[1]: Entering directory '/home/circleci/project/api-service-clients/api-idp/ruby/vendor/bundle/ruby/3.2.0/gems/psych-5.1.2/ext/psych'
|
35
35
|
cd libyaml && make clean
|
36
36
|
/bin/sh: 1: cd: can't cd to libyaml
|
@@ -0,0 +1,26 @@
|
|
1
|
+
current directory: /home/circleci/project/api-service-clients/api-idp/ruby/vendor/bundle/ruby/3.2.0/gems/racc-1.8.0/ext/racc/cparse
|
2
|
+
/usr/local/bin/ruby extconf.rb
|
3
|
+
creating Makefile
|
4
|
+
|
5
|
+
current directory: /home/circleci/project/api-service-clients/api-idp/ruby/vendor/bundle/ruby/3.2.0/gems/racc-1.8.0/ext/racc/cparse
|
6
|
+
make DESTDIR\= sitearchdir\=./.gem.20240520-3700-jdb8b6 sitelibdir\=./.gem.20240520-3700-jdb8b6 clean
|
7
|
+
make[1]: Entering directory '/home/circleci/project/api-service-clients/api-idp/ruby/vendor/bundle/ruby/3.2.0/gems/racc-1.8.0/ext/racc/cparse'
|
8
|
+
make[1]: Leaving directory '/home/circleci/project/api-service-clients/api-idp/ruby/vendor/bundle/ruby/3.2.0/gems/racc-1.8.0/ext/racc/cparse'
|
9
|
+
|
10
|
+
current directory: /home/circleci/project/api-service-clients/api-idp/ruby/vendor/bundle/ruby/3.2.0/gems/racc-1.8.0/ext/racc/cparse
|
11
|
+
make DESTDIR\= sitearchdir\=./.gem.20240520-3700-jdb8b6 sitelibdir\=./.gem.20240520-3700-jdb8b6
|
12
|
+
make[1]: Entering directory '/home/circleci/project/api-service-clients/api-idp/ruby/vendor/bundle/ruby/3.2.0/gems/racc-1.8.0/ext/racc/cparse'
|
13
|
+
compiling cparse.c
|
14
|
+
linking shared-object racc/cparse.so
|
15
|
+
make[1]: Leaving directory '/home/circleci/project/api-service-clients/api-idp/ruby/vendor/bundle/ruby/3.2.0/gems/racc-1.8.0/ext/racc/cparse'
|
16
|
+
|
17
|
+
current directory: /home/circleci/project/api-service-clients/api-idp/ruby/vendor/bundle/ruby/3.2.0/gems/racc-1.8.0/ext/racc/cparse
|
18
|
+
make DESTDIR\= sitearchdir\=./.gem.20240520-3700-jdb8b6 sitelibdir\=./.gem.20240520-3700-jdb8b6 install
|
19
|
+
make[1]: Entering directory '/home/circleci/project/api-service-clients/api-idp/ruby/vendor/bundle/ruby/3.2.0/gems/racc-1.8.0/ext/racc/cparse'
|
20
|
+
/usr/bin/install -c -m 0755 cparse.so ./.gem.20240520-3700-jdb8b6/racc
|
21
|
+
make[1]: Leaving directory '/home/circleci/project/api-service-clients/api-idp/ruby/vendor/bundle/ruby/3.2.0/gems/racc-1.8.0/ext/racc/cparse'
|
22
|
+
|
23
|
+
current directory: /home/circleci/project/api-service-clients/api-idp/ruby/vendor/bundle/ruby/3.2.0/gems/racc-1.8.0/ext/racc/cparse
|
24
|
+
make DESTDIR\= sitearchdir\=./.gem.20240520-3700-jdb8b6 sitelibdir\=./.gem.20240520-3700-jdb8b6 clean
|
25
|
+
make[1]: Entering directory '/home/circleci/project/api-service-clients/api-idp/ruby/vendor/bundle/ruby/3.2.0/gems/racc-1.8.0/ext/racc/cparse'
|
26
|
+
make[1]: Leaving directory '/home/circleci/project/api-service-clients/api-idp/ruby/vendor/bundle/ruby/3.2.0/gems/racc-1.8.0/ext/racc/cparse'
|
Binary file
|
@@ -3,24 +3,24 @@ current directory: /home/circleci/project/api-service-clients/api-idp/ruby/vendo
|
|
3
3
|
creating Makefile
|
4
4
|
|
5
5
|
current directory: /home/circleci/project/api-service-clients/api-idp/ruby/vendor/bundle/ruby/3.2.0/gems/stringio-3.1.0/ext/stringio
|
6
|
-
make DESTDIR\= sitearchdir\=./.gem.
|
6
|
+
make DESTDIR\= sitearchdir\=./.gem.20240520-3700-he4pgf sitelibdir\=./.gem.20240520-3700-he4pgf clean
|
7
7
|
make[1]: Entering directory '/home/circleci/project/api-service-clients/api-idp/ruby/vendor/bundle/ruby/3.2.0/gems/stringio-3.1.0/ext/stringio'
|
8
8
|
make[1]: Leaving directory '/home/circleci/project/api-service-clients/api-idp/ruby/vendor/bundle/ruby/3.2.0/gems/stringio-3.1.0/ext/stringio'
|
9
9
|
|
10
10
|
current directory: /home/circleci/project/api-service-clients/api-idp/ruby/vendor/bundle/ruby/3.2.0/gems/stringio-3.1.0/ext/stringio
|
11
|
-
make DESTDIR\= sitearchdir\=./.gem.
|
11
|
+
make DESTDIR\= sitearchdir\=./.gem.20240520-3700-he4pgf sitelibdir\=./.gem.20240520-3700-he4pgf
|
12
12
|
make[1]: Entering directory '/home/circleci/project/api-service-clients/api-idp/ruby/vendor/bundle/ruby/3.2.0/gems/stringio-3.1.0/ext/stringio'
|
13
13
|
compiling stringio.c
|
14
14
|
linking shared-object stringio.so
|
15
15
|
make[1]: Leaving directory '/home/circleci/project/api-service-clients/api-idp/ruby/vendor/bundle/ruby/3.2.0/gems/stringio-3.1.0/ext/stringio'
|
16
16
|
|
17
17
|
current directory: /home/circleci/project/api-service-clients/api-idp/ruby/vendor/bundle/ruby/3.2.0/gems/stringio-3.1.0/ext/stringio
|
18
|
-
make DESTDIR\= sitearchdir\=./.gem.
|
18
|
+
make DESTDIR\= sitearchdir\=./.gem.20240520-3700-he4pgf sitelibdir\=./.gem.20240520-3700-he4pgf install
|
19
19
|
make[1]: Entering directory '/home/circleci/project/api-service-clients/api-idp/ruby/vendor/bundle/ruby/3.2.0/gems/stringio-3.1.0/ext/stringio'
|
20
|
-
/usr/bin/install -c -m 0755 stringio.so ./.gem.
|
20
|
+
/usr/bin/install -c -m 0755 stringio.so ./.gem.20240520-3700-he4pgf
|
21
21
|
make[1]: Leaving directory '/home/circleci/project/api-service-clients/api-idp/ruby/vendor/bundle/ruby/3.2.0/gems/stringio-3.1.0/ext/stringio'
|
22
22
|
|
23
23
|
current directory: /home/circleci/project/api-service-clients/api-idp/ruby/vendor/bundle/ruby/3.2.0/gems/stringio-3.1.0/ext/stringio
|
24
|
-
make DESTDIR\= sitearchdir\=./.gem.
|
24
|
+
make DESTDIR\= sitearchdir\=./.gem.20240520-3700-he4pgf sitelibdir\=./.gem.20240520-3700-he4pgf clean
|
25
25
|
make[1]: Entering directory '/home/circleci/project/api-service-clients/api-idp/ruby/vendor/bundle/ruby/3.2.0/gems/stringio-3.1.0/ext/stringio'
|
26
26
|
make[1]: Leaving directory '/home/circleci/project/api-service-clients/api-idp/ruby/vendor/bundle/ruby/3.2.0/gems/stringio-3.1.0/ext/stringio'
|
@@ -253,7 +253,7 @@ Mon Jul 3 04:34:32 2006 Minero Aoki <aamine@loveruby.net>
|
|
253
253
|
|
254
254
|
* lib/racc/grammar.rb: class RuleTable -> Grammar.
|
255
255
|
|
256
|
-
* lib/racc/grammar.rb: Grammar.new does not
|
256
|
+
* lib/racc/grammar.rb: Grammar.new does not accept a Compiler.
|
257
257
|
|
258
258
|
* lib/racc/grammar.rb: refactoring.
|
259
259
|
|
@@ -285,7 +285,7 @@ Mon Jul 3 04:34:32 2006 Minero Aoki <aamine@loveruby.net>
|
|
285
285
|
|
286
286
|
* lib/racc/state.rb: class StateTable -> States.
|
287
287
|
|
288
|
-
* lib/racc/state.rb: States.new does not
|
288
|
+
* lib/racc/state.rb: States.new does not accept a Compiler.
|
289
289
|
|
290
290
|
* lib/racc/state.rb: refactoring.
|
291
291
|
|
@@ -418,7 +418,7 @@ Tue Jul 26 23:37:46 2005 Minero Aoki <aamine@loveruby.net>
|
|
418
418
|
|
419
419
|
Sun Jan 2 11:48:19 2005 Minero Aoki <aamine@loveruby.net>
|
420
420
|
|
421
|
-
* lib/racc/
|
421
|
+
* lib/racc/grammar.rb (once_writer): bug! needs argument.
|
422
422
|
|
423
423
|
Mon Feb 16 16:14:16 2004 Minero Aoki <aamine@loveruby.net>
|
424
424
|
|
@@ -1,23 +1,15 @@
|
|
1
1
|
= Racc
|
2
2
|
|
3
|
-
*
|
3
|
+
* https://github.com/ruby/racc
|
4
4
|
|
5
5
|
== DESCRIPTION:
|
6
6
|
|
7
7
|
Racc は LALR(1) パーサジェネレータです。
|
8
8
|
yacc の Ruby 版に相当します。
|
9
9
|
|
10
|
-
NOTE:
|
11
|
-
Ruby 1.8.0 からは Racc のランタイムが標準添付されているので、
|
12
|
-
Racc で生成したパーサを安心して配布できます。また Ruby 1.6 系に
|
13
|
-
対応させたい場合は racc -E で生成してください。
|
14
|
-
|
15
|
-
|
16
10
|
== 必要環境
|
17
11
|
|
18
|
-
* Ruby
|
19
|
-
(*) C コンパイラと make
|
20
|
-
|
12
|
+
* Ruby 2.5 以降
|
21
13
|
|
22
14
|
== インストール
|
23
15
|
|
@@ -30,7 +30,7 @@ def main
|
|
30
30
|
profiler = RaccProfiler.new(false)
|
31
31
|
|
32
32
|
parser = OptionParser.new
|
33
|
-
parser.banner = "Usage: #{File.basename($0)} [options]
|
33
|
+
parser.banner = "Usage: #{File.basename($0)} [options] [input]"
|
34
34
|
parser.on('-o', '--output-file=PATH',
|
35
35
|
'output file name [<input>.tab.rb]') {|name|
|
36
36
|
output = name
|
@@ -92,54 +92,52 @@ def main
|
|
92
92
|
#}
|
93
93
|
parser.on('--version', 'Prints version and quit.') {
|
94
94
|
puts "racc version #{Racc::Version}"
|
95
|
-
exit
|
95
|
+
exit
|
96
96
|
}
|
97
97
|
parser.on('--runtime-version', 'Prints runtime version and quit.') {
|
98
|
-
printf "racc runtime version %s; %s\n",
|
98
|
+
printf "racc runtime version %s; %s core version %s\n",
|
99
99
|
Racc::Parser::Racc_Runtime_Version,
|
100
|
+
Racc::Parser.racc_runtime_type,
|
100
101
|
if Racc::Parser.racc_runtime_type == 'ruby'
|
101
|
-
|
102
|
-
Racc::Parser::Racc_Runtime_Core_Version_R)
|
102
|
+
Racc::Parser::Racc_Runtime_Core_Version_R
|
103
103
|
else
|
104
|
-
|
105
|
-
Racc::Parser::Racc_Runtime_Core_Version_C)
|
104
|
+
Racc::Parser::Racc_Runtime_Core_Version_C
|
106
105
|
end
|
107
|
-
exit
|
106
|
+
exit
|
108
107
|
}
|
109
108
|
parser.on('--copyright', 'Prints copyright and quit.') {
|
110
109
|
puts Racc::Copyright
|
111
|
-
exit
|
110
|
+
exit
|
112
111
|
}
|
113
112
|
parser.on('--help', 'Prints this message and quit.') {
|
114
113
|
puts parser.help
|
115
|
-
exit
|
114
|
+
exit
|
116
115
|
}
|
117
116
|
begin
|
118
117
|
parser.parse!
|
119
118
|
rescue OptionParser::ParseError => err
|
120
|
-
|
121
|
-
$stderr.puts parser.help
|
122
|
-
exit 1
|
123
|
-
end
|
124
|
-
if ARGV.empty?
|
125
|
-
$stderr.puts 'no input'
|
126
|
-
exit 1
|
119
|
+
abort [err.message, parser.help].join("\n")
|
127
120
|
end
|
128
121
|
if ARGV.size > 1
|
129
|
-
|
130
|
-
|
122
|
+
abort 'too many input'
|
123
|
+
end
|
124
|
+
|
125
|
+
input = ARGV[0] || "stdin"
|
126
|
+
|
127
|
+
if input == "stdin" && !output then
|
128
|
+
abort 'You must specify a path to read or use -o <path> for output.'
|
131
129
|
end
|
132
|
-
input = ARGV[0]
|
133
130
|
|
134
131
|
begin
|
135
132
|
$stderr.puts 'Parsing grammar file...' if verbose
|
136
133
|
result = profiler.section('parse') {
|
137
134
|
parser = Racc::GrammarFileParser.new(debug_flags)
|
138
|
-
|
135
|
+
content = input == "stdin" ? ARGF.read : File.read(input)
|
136
|
+
parser.parse(content, File.basename(input))
|
139
137
|
}
|
140
138
|
if check_only
|
141
139
|
$stderr.puts 'syntax ok'
|
142
|
-
exit
|
140
|
+
exit
|
143
141
|
end
|
144
142
|
|
145
143
|
$stderr.puts 'Generating LALR states...' if verbose
|
@@ -195,11 +193,13 @@ def main
|
|
195
193
|
end
|
196
194
|
|
197
195
|
profiler.report
|
196
|
+
if states.should_error_on_expect_mismatch?
|
197
|
+
raise Racc::CompileError, "#{states.grammar.n_expected_srconflicts} shift/reduce conflicts are expected but #{states.n_srconflicts} shift/reduce conflicts exist"
|
198
|
+
end
|
198
199
|
rescue Racc::Error, Errno::ENOENT, Errno::EPERM => err
|
199
200
|
raise if $DEBUG or debug_flags.any?
|
200
201
|
lineno = err.message.slice(/\A\d+:/).to_s
|
201
|
-
|
202
|
-
exit 1
|
202
|
+
abort "#{File.basename $0}: #{input}:#{lineno} #{err.message.strip}"
|
203
203
|
end
|
204
204
|
end
|
205
205
|
|
@@ -276,19 +276,13 @@ class RaccProfiler
|
|
276
276
|
def initialize(really)
|
277
277
|
@really = really
|
278
278
|
@log = []
|
279
|
-
unless ::Process.respond_to?(:times)
|
280
|
-
# Ruby 1.6
|
281
|
-
@class = ::Time
|
282
|
-
else
|
283
|
-
@class = ::Process
|
284
|
-
end
|
285
279
|
end
|
286
280
|
|
287
281
|
def section(name)
|
288
282
|
if @really
|
289
|
-
t1 =
|
283
|
+
t1 = ::Process.times.utime
|
290
284
|
result = yield
|
291
|
-
t2 =
|
285
|
+
t2 = ::Process.times.utime
|
292
286
|
@log.push [name, t2 - t1]
|
293
287
|
result
|
294
288
|
else
|
@@ -15,48 +15,47 @@ supported: Ruby style (`# ...`) and C style (`/* ... */`).
|
|
15
15
|
== Class Block
|
16
16
|
|
17
17
|
The class block is formed like this:
|
18
|
-
|
19
|
-
class CLASS_NAME
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
rule
|
27
|
-
|
28
|
-
|
18
|
+
|
19
|
+
class CLASS_NAME
|
20
|
+
[precedence table]
|
21
|
+
[token declarations]
|
22
|
+
[expected number of S/R conflict]
|
23
|
+
[options]
|
24
|
+
[semantic value conversion]
|
25
|
+
[start rule]
|
26
|
+
rule
|
27
|
+
GRAMMARS
|
28
|
+
|
29
29
|
CLASS_NAME is a name of parser class.
|
30
30
|
This is the name of generating parser class.
|
31
31
|
|
32
32
|
If CLASS_NAME includes '::', Racc outputs module clause.
|
33
|
-
For example, writing "class M::C" causes creating the code
|
34
|
-
|
35
|
-
module M
|
36
|
-
|
37
|
-
|
38
|
-
|
33
|
+
For example, writing "class M::C" causes creating the code below:
|
34
|
+
|
35
|
+
module M
|
36
|
+
class C
|
37
|
+
:
|
38
|
+
:
|
39
|
+
end
|
39
40
|
end
|
40
|
-
end
|
41
|
-
--
|
42
41
|
|
43
42
|
== Grammar Block
|
44
43
|
|
45
44
|
The grammar block describes the grammar
|
46
45
|
to be understood by parser. Syntax is:
|
47
|
-
--
|
48
|
-
(token): (token) (token) (token).... (action)
|
49
46
|
|
50
|
-
(token): (token) (token) (token).... (action)
|
51
|
-
|
52
|
-
|
53
|
-
|
47
|
+
(token): (token) (token) (token).... (action)
|
48
|
+
|
49
|
+
(token): (token) (token) (token).... (action)
|
50
|
+
| (token) (token) (token).... (action)
|
51
|
+
| (token) (token) (token).... (action)
|
52
|
+
|
54
53
|
(action) is an action which is executed when its (token)s are found.
|
55
54
|
(action) is a ruby code block, which is surrounded by braces:
|
56
|
-
|
57
|
-
{ print val[0]
|
58
|
-
|
59
|
-
|
55
|
+
|
56
|
+
{ print val[0]
|
57
|
+
puts val[1] }
|
58
|
+
|
60
59
|
Note that you cannot use '%' string, here document, '%r' regexp in action.
|
61
60
|
|
62
61
|
Actions can be omitted.
|
@@ -66,20 +65,20 @@ A return value of action is a value of left side value ($$).
|
|
66
65
|
It is value of result, or returned value by "return" statement.
|
67
66
|
|
68
67
|
Here is an example of whole grammar block.
|
69
|
-
|
70
|
-
rule
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
68
|
+
|
69
|
+
rule
|
70
|
+
goal: definition rules source { result = val }
|
71
|
+
|
72
|
+
definition: /* none */ { result = [] }
|
73
|
+
| definition startdesig { result[0] = val[1] }
|
74
|
+
| definition
|
75
|
+
precrule # this line continue from upper line
|
76
|
+
{
|
77
|
+
result[1] = val[1]
|
78
|
+
}
|
79
|
+
|
80
|
+
startdesig: START TOKEN
|
81
|
+
|
83
82
|
You can use following special local variables in action.
|
84
83
|
|
85
84
|
* result ($$)
|
@@ -99,45 +98,43 @@ DO NOT MODIFY this stack unless you know what you are doing.
|
|
99
98
|
|
100
99
|
This function is equal to '%prec' in yacc.
|
101
100
|
To designate this block:
|
102
|
-
|
103
|
-
prechigh
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
preclow
|
109
|
-
|
101
|
+
|
102
|
+
prechigh
|
103
|
+
nonassoc '++'
|
104
|
+
left '*' '/'
|
105
|
+
left '+' '-'
|
106
|
+
right '='
|
107
|
+
preclow
|
108
|
+
|
110
109
|
`right' is yacc's %right, `left' is yacc's %left.
|
111
110
|
|
112
111
|
`=' + (symbol) means yacc's %prec:
|
113
|
-
|
114
|
-
prechigh
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
preclow
|
119
|
-
|
120
|
-
rule
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
--
|
112
|
+
|
113
|
+
prechigh
|
114
|
+
nonassoc UMINUS
|
115
|
+
left '*' '/'
|
116
|
+
left '+' '-'
|
117
|
+
preclow
|
118
|
+
|
119
|
+
rule
|
120
|
+
exp: exp '*' exp
|
121
|
+
| exp '-' exp
|
122
|
+
| '-' exp =UMINUS # equals to "%prec UMINUS"
|
123
|
+
:
|
124
|
+
:
|
127
125
|
|
128
126
|
== expect
|
129
127
|
|
130
128
|
Racc supports Bison's "expect" directive to declare the expected
|
131
129
|
number of shift/reduce conflicts.
|
132
|
-
--
|
133
|
-
class MyParser
|
134
|
-
expect 3
|
135
|
-
rule
|
136
|
-
:
|
137
|
-
:
|
138
|
-
--
|
139
|
-
Then warnings are issued only when the effective number of conflicts differs.
|
140
130
|
|
131
|
+
class MyParser
|
132
|
+
expect 3
|
133
|
+
rule
|
134
|
+
:
|
135
|
+
:
|
136
|
+
|
137
|
+
Then warnings are issued only when the effective number of conflicts differs.
|
141
138
|
|
142
139
|
== Declaring Tokens
|
143
140
|
|
@@ -145,17 +142,16 @@ Declaring tokens avoids many bugs.
|
|
145
142
|
|
146
143
|
Racc outputs warnings for declared tokens that do not exist, or existing tokens not declared.
|
147
144
|
The syntax is:
|
148
|
-
|
149
|
-
token TOKEN_NAME AND_IS_THIS
|
150
|
-
|
151
|
-
--
|
145
|
+
|
146
|
+
token TOKEN_NAME AND_IS_THIS
|
147
|
+
ALSO_THIS_IS AGAIN_AND_AGAIN THIS_IS_LAST
|
152
148
|
|
153
149
|
== Options
|
154
150
|
|
155
151
|
You can write options for racc command in your racc file.
|
156
|
-
|
157
|
-
options OPTION OPTION ...
|
158
|
-
|
152
|
+
|
153
|
+
options OPTION OPTION ...
|
154
|
+
|
159
155
|
Options are:
|
160
156
|
|
161
157
|
* omit_action_call
|
@@ -179,32 +175,29 @@ Token symbols are, as default,
|
|
179
175
|
|
180
176
|
You can change this default using a "convert" block.
|
181
177
|
Here is an example:
|
182
|
-
|
183
|
-
convert
|
184
|
-
|
185
|
-
|
186
|
-
end
|
187
|
-
|
178
|
+
|
179
|
+
convert
|
180
|
+
PLUS 'PlusClass' # We use PlusClass for symbol of `PLUS'
|
181
|
+
MIN 'MinusClass' # We use MinusClass for symbol of `MIN'
|
182
|
+
end
|
183
|
+
|
188
184
|
We can use almost all ruby value can be used by token symbol,
|
189
185
|
except 'false' and 'nil'. These are causes unexpected parse error.
|
190
186
|
|
191
187
|
If you want to use String as token symbol, special care is required.
|
192
188
|
For example:
|
193
|
-
|
194
|
-
convert
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
end
|
199
|
-
--
|
189
|
+
|
190
|
+
convert
|
191
|
+
class '"cls"' # in code, "cls"
|
192
|
+
PLUS '"plus\n"' # in code, "plus\n"
|
193
|
+
MIN "\"minus#{val}\"" # in code, \"minus#{val}\"
|
194
|
+
end
|
200
195
|
|
201
196
|
== Start Rule
|
202
197
|
|
203
198
|
'%start' in yacc. This changes the start symbol.
|
204
|
-
--
|
205
|
-
start real_target
|
206
|
-
--
|
207
199
|
|
200
|
+
start real_target
|
208
201
|
|
209
202
|
== User Code Block
|
210
203
|
|
@@ -213,14 +206,13 @@ There are three user code blocks, "header" "inner" and "footer".
|
|
213
206
|
|
214
207
|
User code blocks are introduced by four '-' at the beginning of a line,
|
215
208
|
followed by a single-word name:
|
216
|
-
|
217
|
-
---- header
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
---- inner
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
--
|
209
|
+
|
210
|
+
---- header
|
211
|
+
ruby statement
|
212
|
+
ruby statement
|
213
|
+
ruby statement
|
214
|
+
|
215
|
+
---- inner
|
216
|
+
ruby statement
|
217
|
+
:
|
218
|
+
:
|
@@ -88,7 +88,7 @@ CCDLFLAGS = -fPIC
|
|
88
88
|
CFLAGS = $(CCDLFLAGS) $(cflags) -fPIC $(ARCH_FLAG)
|
89
89
|
INCFLAGS = -I. -I$(arch_hdrdir) -I$(hdrdir)/ruby/backward -I$(hdrdir) -I$(srcdir)
|
90
90
|
DEFS =
|
91
|
-
CPPFLAGS = -DRACC_INFO_VERSION=1.
|
91
|
+
CPPFLAGS = -DRACC_INFO_VERSION=1.8.0 $(DEFS) $(cppflags)
|
92
92
|
CXXFLAGS = $(CCDLFLAGS) $(ARCH_FLAG)
|
93
93
|
ldflags = -L. -fstack-protector-strong -rdynamic -Wl,-export-dynamic -Wl,--no-as-needed
|
94
94
|
dldflags = -Wl,--compress-debug-sections=zlib
|
Binary file
|
@@ -27,6 +27,7 @@ module Racc
|
|
27
27
|
@rules = [] # :: [Rule]
|
28
28
|
@start = nil
|
29
29
|
@n_expected_srconflicts = nil
|
30
|
+
@error_on_expect_mismatch = nil
|
30
31
|
@prec_table = []
|
31
32
|
@prec_table_closed = false
|
32
33
|
@closed = false
|
@@ -36,6 +37,7 @@ module Racc
|
|
36
37
|
attr_reader :start
|
37
38
|
attr_reader :symboltable
|
38
39
|
attr_accessor :n_expected_srconflicts
|
40
|
+
attr_accessor :error_on_expect_mismatch
|
39
41
|
|
40
42
|
def [](x)
|
41
43
|
@rules[x]
|
@@ -787,6 +789,81 @@ module Racc
|
|
787
789
|
end
|
788
790
|
|
789
791
|
|
792
|
+
class OptionMark
|
793
|
+
def initialize(lineno)
|
794
|
+
@lineno = lineno
|
795
|
+
end
|
796
|
+
|
797
|
+
def name
|
798
|
+
'?'
|
799
|
+
end
|
800
|
+
|
801
|
+
alias inspect name
|
802
|
+
|
803
|
+
attr_reader :lineno
|
804
|
+
end
|
805
|
+
|
806
|
+
|
807
|
+
class ManyMark
|
808
|
+
def initialize(lineno)
|
809
|
+
@lineno = lineno
|
810
|
+
end
|
811
|
+
|
812
|
+
def name
|
813
|
+
'*'
|
814
|
+
end
|
815
|
+
|
816
|
+
alias inspect name
|
817
|
+
|
818
|
+
attr_reader :lineno
|
819
|
+
end
|
820
|
+
|
821
|
+
|
822
|
+
class Many1Mark
|
823
|
+
def initialize(lineno)
|
824
|
+
@lineno = lineno
|
825
|
+
end
|
826
|
+
|
827
|
+
def name
|
828
|
+
'+'
|
829
|
+
end
|
830
|
+
|
831
|
+
alias inspect name
|
832
|
+
|
833
|
+
attr_reader :lineno
|
834
|
+
end
|
835
|
+
|
836
|
+
|
837
|
+
class GroupStartMark
|
838
|
+
def initialize(lineno)
|
839
|
+
@lineno = lineno
|
840
|
+
end
|
841
|
+
|
842
|
+
def name
|
843
|
+
'('
|
844
|
+
end
|
845
|
+
|
846
|
+
alias inspect name
|
847
|
+
|
848
|
+
attr_reader :lineno
|
849
|
+
end
|
850
|
+
|
851
|
+
|
852
|
+
class GroupEndMark
|
853
|
+
def initialize(lineno)
|
854
|
+
@lineno = lineno
|
855
|
+
end
|
856
|
+
|
857
|
+
def name
|
858
|
+
')'
|
859
|
+
end
|
860
|
+
|
861
|
+
alias inspect name
|
862
|
+
|
863
|
+
attr_reader :lineno
|
864
|
+
end
|
865
|
+
|
866
|
+
|
790
867
|
class Prec
|
791
868
|
def initialize(symbol, lineno)
|
792
869
|
@symbol = symbol
|