cybrid_api_organization_ruby 0.73.0 → 0.73.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +4 -2
- data/README.md +5 -5
- data/cybrid_api_organization_ruby.gemspec +1 -1
- data/lib/cybrid_api_organization_ruby/api/organizations_organization_api.rb +1 -1
- data/lib/cybrid_api_organization_ruby/api_client.rb +1 -1
- data/lib/cybrid_api_organization_ruby/api_error.rb +1 -1
- data/lib/cybrid_api_organization_ruby/configuration.rb +1 -1
- data/lib/cybrid_api_organization_ruby/models/error_response_organization_model.rb +1 -1
- data/lib/cybrid_api_organization_ruby/models/organization_organization_model.rb +1 -1
- data/lib/cybrid_api_organization_ruby/models/patch_organization_organization_model.rb +1 -1
- data/lib/cybrid_api_organization_ruby/version.rb +2 -2
- data/lib/cybrid_api_organization_ruby.rb +1 -1
- data/spec/api/organizations_organization_api_spec.rb +1 -1
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/error_response_organization_model_spec.rb +1 -1
- data/spec/models/organization_organization_model_spec.rb +1 -1
- data/spec/models/patch_organization_organization_model_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- data/vendor/bundle/ruby/3.2.0/bin/racc +29 -0
- data/vendor/bundle/ruby/3.2.0/cache/parser-3.2.2.3.gem +0 -0
- data/vendor/bundle/ruby/3.2.0/cache/racc-1.7.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.15.5/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.0/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/racc-1.7.0/gem.build_complete +0 -0
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/racc-1.7.0/gem_make.out +28 -0
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/racc-1.7.0/mkmf.log +57 -0
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/racc-1.7.0/racc/cparse.so +0 -0
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.0.7/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/macruby.rb +3 -1
- data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/ruby18.rb +3 -1
- data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/ruby19.rb +3 -1
- data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/ruby20.rb +3 -1
- data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/ruby21.rb +3 -1
- data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/ruby22.rb +3 -1
- data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/ruby23.rb +3 -1
- data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/ruby24.rb +3 -1
- data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/ruby25.rb +3 -1
- data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/ruby26.rb +3 -1
- data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/ruby27.rb +3 -1
- data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/ruby30.rb +3 -1
- data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/ruby31.rb +3 -1
- data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/ruby32.rb +3 -1
- data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/ruby33.rb +3 -1
- data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/rubymotion.rb +3 -1
- data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/version.rb +1 -1
- data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/parser.gemspec +1 -1
- data/vendor/bundle/ruby/3.2.0/gems/racc-1.7.0/COPYING +22 -0
- data/vendor/bundle/ruby/3.2.0/gems/racc-1.7.0/ChangeLog +846 -0
- data/vendor/bundle/ruby/3.2.0/gems/racc-1.7.0/README.ja.rdoc +94 -0
- data/vendor/bundle/ruby/3.2.0/gems/racc-1.7.0/README.rdoc +79 -0
- data/vendor/bundle/ruby/3.2.0/gems/racc-1.7.0/TODO +5 -0
- data/vendor/bundle/ruby/3.2.0/gems/racc-1.7.0/bin/racc +320 -0
- data/vendor/bundle/ruby/3.2.0/gems/racc-1.7.0/doc/en/NEWS.en.rdoc +282 -0
- data/vendor/bundle/ruby/3.2.0/gems/racc-1.7.0/doc/en/grammar.en.rdoc +226 -0
- data/vendor/bundle/ruby/3.2.0/gems/racc-1.7.0/doc/en/grammar2.en.rdoc +219 -0
- data/vendor/bundle/ruby/3.2.0/gems/racc-1.7.0/doc/ja/NEWS.ja.rdoc +307 -0
- data/vendor/bundle/ruby/3.2.0/gems/racc-1.7.0/doc/ja/command.ja.html +94 -0
- data/vendor/bundle/ruby/3.2.0/gems/racc-1.7.0/doc/ja/debug.ja.rdoc +36 -0
- data/vendor/bundle/ruby/3.2.0/gems/racc-1.7.0/doc/ja/grammar.ja.rdoc +348 -0
- data/vendor/bundle/ruby/3.2.0/gems/racc-1.7.0/doc/ja/index.ja.html +10 -0
- data/vendor/bundle/ruby/3.2.0/gems/racc-1.7.0/doc/ja/parser.ja.rdoc +125 -0
- data/vendor/bundle/ruby/3.2.0/gems/racc-1.7.0/doc/ja/usage.ja.html +414 -0
- data/vendor/bundle/ruby/3.2.0/gems/racc-1.7.0/ext/racc/MANIFEST +4 -0
- data/vendor/bundle/ruby/3.2.0/gems/racc-1.7.0/ext/racc/cparse/Makefile +269 -0
- data/vendor/bundle/ruby/3.2.0/gems/racc-1.7.0/ext/racc/cparse/cparse.c +861 -0
- data/vendor/bundle/ruby/3.2.0/gems/racc-1.7.0/ext/racc/cparse/extconf.rb +9 -0
- data/vendor/bundle/ruby/3.2.0/gems/racc-1.7.0/lib/racc/compat.rb +33 -0
- data/vendor/bundle/ruby/3.2.0/gems/racc-1.7.0/lib/racc/cparse.so +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/racc-1.7.0/lib/racc/debugflags.rb +60 -0
- data/vendor/bundle/ruby/3.2.0/gems/racc-1.7.0/lib/racc/exception.rb +16 -0
- data/vendor/bundle/ruby/3.2.0/gems/racc-1.7.0/lib/racc/grammar.rb +1114 -0
- data/vendor/bundle/ruby/3.2.0/gems/racc-1.7.0/lib/racc/grammarfileparser.rb +561 -0
- data/vendor/bundle/ruby/3.2.0/gems/racc-1.7.0/lib/racc/info.rb +17 -0
- data/vendor/bundle/ruby/3.2.0/gems/racc-1.7.0/lib/racc/iset.rb +92 -0
- data/vendor/bundle/ruby/3.2.0/gems/racc-1.7.0/lib/racc/logfilegenerator.rb +212 -0
- data/vendor/bundle/ruby/3.2.0/gems/racc-1.7.0/lib/racc/parser-text.rb +658 -0
- data/vendor/bundle/ruby/3.2.0/gems/racc-1.7.0/lib/racc/parser.rb +632 -0
- data/vendor/bundle/ruby/3.2.0/gems/racc-1.7.0/lib/racc/parserfilegenerator.rb +470 -0
- data/vendor/bundle/ruby/3.2.0/gems/racc-1.7.0/lib/racc/sourcetext.rb +35 -0
- data/vendor/bundle/ruby/3.2.0/gems/racc-1.7.0/lib/racc/state.rb +972 -0
- data/vendor/bundle/ruby/3.2.0/gems/racc-1.7.0/lib/racc/statetransitiontable.rb +311 -0
- data/vendor/bundle/ruby/3.2.0/gems/racc-1.7.0/lib/racc/static.rb +5 -0
- data/vendor/bundle/ruby/3.2.0/gems/racc-1.7.0/lib/racc.rb +6 -0
- data/vendor/bundle/ruby/3.2.0/specifications/{parser-3.2.2.1.gemspec → parser-3.2.2.3.gemspec} +5 -5
- data/vendor/bundle/ruby/3.2.0/specifications/racc-1.7.0.gemspec +27 -0
- metadata +127 -83
- data/vendor/bundle/ruby/3.2.0/cache/parser-3.2.2.1.gem +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/LICENSE.txt +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/bin/ruby-parse +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/bin/ruby-rewrite +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/gauntlet_parser.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/all.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/ast/node.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/ast/processor.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/base.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/builders/default.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/clobbering_error.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/color.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/context.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/current.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/current_arg_stack.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/deprecation.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/diagnostic/engine.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/diagnostic.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/lexer/dedenter.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/lexer/explanation.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/lexer/literal.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/lexer/stack_state.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/lexer-F0.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/lexer-F1.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/lexer-strings.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/max_numparam_stack.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/messages.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/meta.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/rewriter.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/ruby28.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/runner/ruby_parse.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/runner/ruby_rewrite.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/runner.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/source/buffer.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/source/comment/associator.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/source/comment.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/source/map/collection.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/source/map/condition.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/source/map/constant.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/source/map/definition.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/source/map/for.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/source/map/heredoc.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/source/map/index.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/source/map/keyword.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/source/map/method_definition.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/source/map/objc_kwarg.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/source/map/operator.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/source/map/rescue_body.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/source/map/send.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/source/map/ternary.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/source/map/variable.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/source/map.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/source/range.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/source/rewriter/action.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/source/rewriter.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/source/tree_rewriter/action.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/source/tree_rewriter.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/static_environment.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/syntax_error.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/tree_rewriter.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/variables_stack.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser.rb +0 -0
@@ -0,0 +1,282 @@
|
|
1
|
+
= NEWS
|
2
|
+
|
3
|
+
=== 1.4.6
|
4
|
+
|
5
|
+
* Bugfixes
|
6
|
+
|
7
|
+
* bin/racc -g option renamed to -t
|
8
|
+
* racc/compiler.rb is removed
|
9
|
+
* '|' is allowed with meta rules
|
10
|
+
* Ruby 1.8.7 compatibility fixes
|
11
|
+
* Ruby 1.9 compatibility fixes
|
12
|
+
|
13
|
+
=== 1.4.5 (2005-11-21)
|
14
|
+
* [FEATURE CHANGE] --no-extensions option was removed.
|
15
|
+
* [fix] racc command should not depend on `raccrt' package.
|
16
|
+
* [fix] --no-omit-actions did not work.
|
17
|
+
* setup.rb 3.4.1.
|
18
|
+
|
19
|
+
=== 1.4.4 (2003-10-12)
|
20
|
+
* document changed.
|
21
|
+
* -all packages does not include amstd and strscan.
|
22
|
+
* setup.rb 3.2.1.
|
23
|
+
|
24
|
+
=== 1.4.3 (2002-11-14)
|
25
|
+
* [fix] reduce ruby 1.8 warnings.
|
26
|
+
|
27
|
+
=== 1.4.2 (2002-01-29)
|
28
|
+
* [new] new option --no-extentions
|
29
|
+
|
30
|
+
=== 1.4.1 (2001-12-02)
|
31
|
+
* now Racc does not depend on amstd library.
|
32
|
+
* update y2racc and racc2y for racc 1.4.1
|
33
|
+
|
34
|
+
=== 1.4.0 (2001-11-30)
|
35
|
+
* minor version up for checking in runtime library into ruby CVS repositry.
|
36
|
+
* RaccParser, RaccScanner -> GrammarFileParser, GrammarFileScanner
|
37
|
+
* modify typo (grammer -> grammar)
|
38
|
+
|
39
|
+
=== 1.3.12 (2001-11-22)
|
40
|
+
* modify installer bug (thanks Tanaka Akira)
|
41
|
+
* enhance regexp/%-strings/gvar detection in action block
|
42
|
+
|
43
|
+
=== 1.3.11 (2001-08-28)
|
44
|
+
* modify scan error on $' $` $/ etc.
|
45
|
+
|
46
|
+
=== 1.3.10 (2001-08-12)
|
47
|
+
* modify prototype missmatch in cparse.c
|
48
|
+
|
49
|
+
=== 1.3.9 (2001-04-07)
|
50
|
+
* support Ruby 1.4 again.
|
51
|
+
|
52
|
+
=== 1.3.8 (2001-03-17)
|
53
|
+
* output symbol name when error
|
54
|
+
* Racc::Parser#token_to_str
|
55
|
+
|
56
|
+
=== 1.3.7 (2001-02-04)
|
57
|
+
* allow nil for EndOfInput (experimental)
|
58
|
+
* more sample grammar files
|
59
|
+
|
60
|
+
=== 1.3.6 (2001-01-22)
|
61
|
+
* modify cparse.so for static link
|
62
|
+
|
63
|
+
=== 1.3.5 (2001-01-18)
|
64
|
+
* %-string scanning was wrong
|
65
|
+
* new directive "expect"
|
66
|
+
|
67
|
+
=== 1.3.4 (2001-01-11)
|
68
|
+
* cparse: add type checks
|
69
|
+
* cparse: rm depend
|
70
|
+
* cparse: does not pass non-VALUE object to rb_iterate()
|
71
|
+
|
72
|
+
=== 1.3.3 (2000-12-25)
|
73
|
+
* <em>critical bug</em> in generator (from 1.3.1)
|
74
|
+
* racc --runtime-version
|
75
|
+
|
76
|
+
=== 1.3.2 (2000-12-21)
|
77
|
+
* bug with racc -E
|
78
|
+
* package strscan togather (again)
|
79
|
+
|
80
|
+
=== 1.3.1 (2000-12-17)
|
81
|
+
* dynamically determine RE_DUP_MAX
|
82
|
+
* ruby version routine was used always
|
83
|
+
|
84
|
+
=== 1.3.0 (2000-11-30)
|
85
|
+
* can yield(sym,val) from scanner (Parser#yyparse)
|
86
|
+
|
87
|
+
=== 1.2.6 (2000-11-28)
|
88
|
+
* class M::C
|
89
|
+
|
90
|
+
=== 1.2.5 (2000-11-20)
|
91
|
+
* big changes in option; -h -f -p -i -n -c -A are incompatible
|
92
|
+
* support long options
|
93
|
+
* y2racc, racc2y leaves actions as default
|
94
|
+
|
95
|
+
=== 1.2.4 (2000-09-13)
|
96
|
+
* updates installer and documents
|
97
|
+
|
98
|
+
=== 1.2.3 (2000-08-14)
|
99
|
+
* output useless rules and nonterminals (version 2)
|
100
|
+
* nonassoc makes error (never shift/reduce)
|
101
|
+
|
102
|
+
=== 1.2.2 (2000-08-12)
|
103
|
+
* internal changes
|
104
|
+
|
105
|
+
=== 1.2.1 (2000-08-05)
|
106
|
+
* racc2y, y2racc
|
107
|
+
|
108
|
+
=== 1.2.0 (2000-08-02)
|
109
|
+
* uses bison's lookahead algorithm
|
110
|
+
|
111
|
+
=== 1.1.6 (2000-07-25)
|
112
|
+
* new keyword "options" and its parameter "no_result_var"
|
113
|
+
|
114
|
+
=== 1.1.5 (2000-07-21)
|
115
|
+
* [IMPORTANT] change keyword "token" to "convert"
|
116
|
+
* NEW keyword "token" for token declearation
|
117
|
+
|
118
|
+
=== 1.1.4 (2000-07-13)
|
119
|
+
* update installer
|
120
|
+
* samples had bugs
|
121
|
+
|
122
|
+
=== 1.1.3 (2000-06-30)
|
123
|
+
* new option -a; does not omit void action call
|
124
|
+
|
125
|
+
=== 1.1.2 (2000-06-29)
|
126
|
+
* now racc does not use strscan.so
|
127
|
+
* ScanError -> Racc::ScanError, ParseError -> Racc::ParseError
|
128
|
+
* more friendly error messages
|
129
|
+
|
130
|
+
=== 1.1.1 (2000-06-15)
|
131
|
+
* require miss
|
132
|
+
* conflicts were not reported with -v
|
133
|
+
|
134
|
+
=== 1.1.0 (2000-06-12)
|
135
|
+
* use other algolithm for generating state table
|
136
|
+
|
137
|
+
=== 1.0.4 (2000-06-04)
|
138
|
+
* S/R conflict & -v flag causes unexpected exception (reported by Tosh)
|
139
|
+
* output useless nonterminals/rules
|
140
|
+
|
141
|
+
=== 1.0.3 (2000-06-03)
|
142
|
+
* use Array#collect! instead of #filter.
|
143
|
+
|
144
|
+
=== 1.0.2 (2000-05-16)
|
145
|
+
* update installer (setup.rb)
|
146
|
+
|
147
|
+
=== 1.0.1 (2000-05-12)
|
148
|
+
* state.rb: faster lookahead & debug lalr code
|
149
|
+
* refine code
|
150
|
+
* update amstd package (1.7.0)
|
151
|
+
|
152
|
+
=== 1.0.0 (2000-05-06)
|
153
|
+
* version 1.0
|
154
|
+
|
155
|
+
=== 0.14.6 (2000-05-05)
|
156
|
+
* much more debug output
|
157
|
+
|
158
|
+
=== 0.14.5 (2000-05-01)
|
159
|
+
|
160
|
+
=== 0.14.4 (2000-04-09)
|
161
|
+
* Racc_* are included in Racc_arg
|
162
|
+
* faster state generation (a little)
|
163
|
+
|
164
|
+
=== 0.14.3 (2000-04-04)
|
165
|
+
* check both of SYM2ID and ID2SYM (thanks Katsuyuki Komatsu)
|
166
|
+
|
167
|
+
=== 0.14.2 (2000-04-03)
|
168
|
+
* "class" on first line causes parse error (thanks Yoshiki Wada)
|
169
|
+
* new option "racc -V"
|
170
|
+
|
171
|
+
=== 0.14.1 (2000-03-31)
|
172
|
+
|
173
|
+
=== 0.14.0 (2000-03-21)
|
174
|
+
* implement "fast" table (same to bison)
|
175
|
+
* stop line no. conversion temporaliry because of ruby bug
|
176
|
+
|
177
|
+
=== 0.13.1 (2000-03-21)
|
178
|
+
* racc --version --copyright did not work (thanks Tadayoshi Funaba)
|
179
|
+
|
180
|
+
=== 0.13.0 (2000-03-20)
|
181
|
+
* implement yyerror/yyerrok/yyaccept
|
182
|
+
|
183
|
+
=== 0.12.2 (2000-03-19)
|
184
|
+
* -E flag had bug
|
185
|
+
|
186
|
+
=== 0.12.1 (2000-03-16)
|
187
|
+
* modify the way to decide default action
|
188
|
+
|
189
|
+
=== 0.12.0 (2000-03-15)
|
190
|
+
* implement real LALR
|
191
|
+
* use both SLR and LALR to resolve conflicts
|
192
|
+
|
193
|
+
=== 0.11.3 (2000-03-09)
|
194
|
+
* modify lookahead routine again
|
195
|
+
|
196
|
+
=== 0.11.2 (2000-03-09)
|
197
|
+
* bug in lookahead routine
|
198
|
+
* modify cparse.so for Symbol class of ruby 1.5
|
199
|
+
|
200
|
+
=== 0.11.1 (2000-03-08)
|
201
|
+
* modify for Symbol
|
202
|
+
* update strscan
|
203
|
+
|
204
|
+
=== 0.11.0 (2000-02-19)
|
205
|
+
* if error is occured in action, ruby print line number of grammar file
|
206
|
+
|
207
|
+
=== 0.10.9 (2000-01-19)
|
208
|
+
* change package/setup
|
209
|
+
|
210
|
+
=== 0.10.8 (2000-01-03)
|
211
|
+
* (1-17 re-packed) add/modify documents
|
212
|
+
|
213
|
+
=== 0.10.7 (2000-01-03)
|
214
|
+
* modify setup.rb, compile.rb, amstd/inst. (thanks: Koji Arai)
|
215
|
+
|
216
|
+
=== 0.10.6 (1999-12-24)
|
217
|
+
* racc -e ruby
|
218
|
+
* omit void action call
|
219
|
+
|
220
|
+
=== 0.10.5 (1999-12-21)
|
221
|
+
* critical bug in embedded action implement
|
222
|
+
* bug in setup.rb
|
223
|
+
* modify calc[2].y for 0.10
|
224
|
+
|
225
|
+
=== 0.10.4 (1999-12-19)
|
226
|
+
* support error recover ('error' token)
|
227
|
+
* can embed runtime by "racc -E"
|
228
|
+
* Racc is module
|
229
|
+
|
230
|
+
=== 0.10.3 (1999-12-01)
|
231
|
+
* support embedded action
|
232
|
+
* modify .output bug
|
233
|
+
|
234
|
+
=== 0.10.2 (1999-11-27)
|
235
|
+
* update document
|
236
|
+
* separate libracc.rb
|
237
|
+
|
238
|
+
=== 0.10.1 (1999-11-19)
|
239
|
+
* rewrite runtime routine in C
|
240
|
+
* once next_token returns [false, *], not call next_token
|
241
|
+
* action is only default, not call next_token
|
242
|
+
* $end is obsolute
|
243
|
+
* LALRactionTable
|
244
|
+
|
245
|
+
=== 0.10.0 (1999-11-06)
|
246
|
+
* next_value, peep_token is obsolute
|
247
|
+
* @__debug__ -> @yydebug
|
248
|
+
* class...rule...end
|
249
|
+
* refine libracc.rb
|
250
|
+
* unify strscan library
|
251
|
+
* *.rb are installed in lib/ruby/VERSION/racc/
|
252
|
+
|
253
|
+
=== 0.9.5 (1999-10-03)
|
254
|
+
* too few arguments for __show_stack__
|
255
|
+
* could not scan $end
|
256
|
+
* typo in d.format.rb
|
257
|
+
|
258
|
+
=== 0.9.4 (1999-09-??)
|
259
|
+
|
260
|
+
=== 0.9.3 (1999-09-03)
|
261
|
+
|
262
|
+
=== 0.9.2 (1999-06-26)
|
263
|
+
|
264
|
+
=== 0.9.1 (1999-06-08)
|
265
|
+
|
266
|
+
=== 0.9.0 (1999-06-03)
|
267
|
+
|
268
|
+
=== 0.8.11 (?)
|
269
|
+
|
270
|
+
=== 0.8.10 (?)
|
271
|
+
|
272
|
+
=== 0.8.9 (1999-03-21)
|
273
|
+
|
274
|
+
=== 0.8.8 (1999-03-20)
|
275
|
+
|
276
|
+
=== 0.8.7 (1999-03-01)
|
277
|
+
|
278
|
+
=== 0.8.0 (1999-01-16)
|
279
|
+
|
280
|
+
=== 0.5.0 (1999-01-07)
|
281
|
+
|
282
|
+
=== 0.1.0 (1999-01-01)
|
@@ -0,0 +1,226 @@
|
|
1
|
+
= Racc Grammar File Reference
|
2
|
+
|
3
|
+
== Global Structure
|
4
|
+
|
5
|
+
== Class Block and User Code Block
|
6
|
+
|
7
|
+
There are two top-level blocks: the 'class' block, and the 'user code'
|
8
|
+
block. The 'user code' block MUST be after the 'class' block.
|
9
|
+
|
10
|
+
== Comment
|
11
|
+
|
12
|
+
Comments can be added about everywhere. Two comment styles are
|
13
|
+
supported: Ruby style (`# ...`) and C style (`/* ... */`).
|
14
|
+
|
15
|
+
== Class Block
|
16
|
+
|
17
|
+
The class block is formed like this:
|
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
|
+
CLASS_NAME is a name of parser class.
|
30
|
+
This is the name of generating parser class.
|
31
|
+
|
32
|
+
If CLASS_NAME includes '::', Racc outputs module clause.
|
33
|
+
For example, writing "class M::C" causes creating the code bellow:
|
34
|
+
--
|
35
|
+
module M
|
36
|
+
class C
|
37
|
+
:
|
38
|
+
:
|
39
|
+
end
|
40
|
+
end
|
41
|
+
--
|
42
|
+
|
43
|
+
== Grammar Block
|
44
|
+
|
45
|
+
The grammar block describes the grammar
|
46
|
+
to be understood by parser. Syntax is:
|
47
|
+
--
|
48
|
+
(token): (token) (token) (token).... (action)
|
49
|
+
|
50
|
+
(token): (token) (token) (token).... (action)
|
51
|
+
| (token) (token) (token).... (action)
|
52
|
+
| (token) (token) (token).... (action)
|
53
|
+
--
|
54
|
+
(action) is an action which is executed when its (token)s are found.
|
55
|
+
(action) is a ruby code block, which is surrounded by braces:
|
56
|
+
--
|
57
|
+
{ print val[0]
|
58
|
+
puts val[1] }
|
59
|
+
--
|
60
|
+
Note that you cannot use '%' string, here document, '%r' regexp in action.
|
61
|
+
|
62
|
+
Actions can be omitted.
|
63
|
+
When it is omitted, '' (empty string) is used.
|
64
|
+
|
65
|
+
A return value of action is a value of left side value ($$).
|
66
|
+
It is value of result, or returned value by "return" statement.
|
67
|
+
|
68
|
+
Here is an example of whole grammar block.
|
69
|
+
--
|
70
|
+
rule
|
71
|
+
goal: definition rules source { result = val }
|
72
|
+
|
73
|
+
definition: /* none */ { result = [] }
|
74
|
+
| definition startdesig { result[0] = val[1] }
|
75
|
+
| definition
|
76
|
+
precrule # this line continue from upper line
|
77
|
+
{
|
78
|
+
result[1] = val[1]
|
79
|
+
}
|
80
|
+
|
81
|
+
startdesig: START TOKEN
|
82
|
+
--
|
83
|
+
You can use following special local variables in action.
|
84
|
+
|
85
|
+
* result ($$)
|
86
|
+
|
87
|
+
The value of left-hand side (lhs). A default value is val[0].
|
88
|
+
|
89
|
+
* val ($1,$2,$3...)
|
90
|
+
|
91
|
+
An array of value of right-hand side (rhs).
|
92
|
+
|
93
|
+
* _values (...$-2,$-1,$0)
|
94
|
+
|
95
|
+
A stack of values.
|
96
|
+
DO NOT MODIFY this stack unless you know what you are doing.
|
97
|
+
|
98
|
+
== Operator Precedence
|
99
|
+
|
100
|
+
This function is equal to '%prec' in yacc.
|
101
|
+
To designate this block:
|
102
|
+
--
|
103
|
+
prechigh
|
104
|
+
nonassoc '++'
|
105
|
+
left '*' '/'
|
106
|
+
left '+' '-'
|
107
|
+
right '='
|
108
|
+
preclow
|
109
|
+
--
|
110
|
+
`right' is yacc's %right, `left' is yacc's %left.
|
111
|
+
|
112
|
+
`=' + (symbol) means yacc's %prec:
|
113
|
+
--
|
114
|
+
prechigh
|
115
|
+
nonassoc UMINUS
|
116
|
+
left '*' '/'
|
117
|
+
left '+' '-'
|
118
|
+
preclow
|
119
|
+
|
120
|
+
rule
|
121
|
+
exp: exp '*' exp
|
122
|
+
| exp '-' exp
|
123
|
+
| '-' exp =UMINUS # equals to "%prec UMINUS"
|
124
|
+
:
|
125
|
+
:
|
126
|
+
--
|
127
|
+
|
128
|
+
== expect
|
129
|
+
|
130
|
+
Racc supports Bison's "expect" directive to declare the expected
|
131
|
+
number of shift/reduce conflicts.
|
132
|
+
--
|
133
|
+
class MyParser
|
134
|
+
rule
|
135
|
+
expect 3
|
136
|
+
:
|
137
|
+
:
|
138
|
+
--
|
139
|
+
Then warnings are issued only when the effective number of conflicts differs.
|
140
|
+
|
141
|
+
|
142
|
+
== Declaring Tokens
|
143
|
+
|
144
|
+
Declaring tokens avoids many bugs.
|
145
|
+
|
146
|
+
Racc outputs warnings for declared tokens that do not exist, or existing tokens not declared.
|
147
|
+
The syntax is:
|
148
|
+
--
|
149
|
+
token TOKEN_NAME AND_IS_THIS
|
150
|
+
ALSO_THIS_IS AGAIN_AND_AGAIN THIS_IS_LAST
|
151
|
+
--
|
152
|
+
|
153
|
+
== Options
|
154
|
+
|
155
|
+
You can write options for racc command in your racc file.
|
156
|
+
--
|
157
|
+
options OPTION OPTION ...
|
158
|
+
--
|
159
|
+
Options are:
|
160
|
+
|
161
|
+
* omit_action_call
|
162
|
+
|
163
|
+
omit empty action call or not.
|
164
|
+
|
165
|
+
* result_var
|
166
|
+
|
167
|
+
use/does not use local variable "result"
|
168
|
+
|
169
|
+
You can use 'no_' prefix to invert its meanings.
|
170
|
+
|
171
|
+
== Converting Token Symbol
|
172
|
+
|
173
|
+
Token symbols are, as default,
|
174
|
+
|
175
|
+
* naked token strings in racc file (TOK, XFILE, this_is_token, ...)
|
176
|
+
--> symbol (:TOK, :XFILE, :this_is_token, ...)
|
177
|
+
* quoted strings (':', '.', '(', ...)
|
178
|
+
--> same string (':', '.', '(', ...)
|
179
|
+
|
180
|
+
You can change this default using a "convert" block.
|
181
|
+
Here is an example:
|
182
|
+
--
|
183
|
+
convert
|
184
|
+
PLUS 'PlusClass' # We use PlusClass for symbol of `PLUS'
|
185
|
+
MIN 'MinusClass' # We use MinusClass for symbol of `MIN'
|
186
|
+
end
|
187
|
+
--
|
188
|
+
We can use almost all ruby value can be used by token symbol,
|
189
|
+
except 'false' and 'nil'. These are causes unexpected parse error.
|
190
|
+
|
191
|
+
If you want to use String as token symbol, special care is required.
|
192
|
+
For example:
|
193
|
+
--
|
194
|
+
convert
|
195
|
+
class '"cls"' # in code, "cls"
|
196
|
+
PLUS '"plus\n"' # in code, "plus\n"
|
197
|
+
MIN "\"minus#{val}\"" # in code, \"minus#{val}\"
|
198
|
+
end
|
199
|
+
--
|
200
|
+
|
201
|
+
== Start Rule
|
202
|
+
|
203
|
+
'%start' in yacc. This changes the start symbol.
|
204
|
+
--
|
205
|
+
start real_target
|
206
|
+
--
|
207
|
+
|
208
|
+
|
209
|
+
== User Code Block
|
210
|
+
|
211
|
+
A "User Code Block" is a piece of Ruby source code copied in the output.
|
212
|
+
There are three user code blocks, "header" "inner" and "footer".
|
213
|
+
|
214
|
+
User code blocks are introduced by four '-' at the beginning of a line,
|
215
|
+
followed by a single-word name:
|
216
|
+
--
|
217
|
+
---- header
|
218
|
+
ruby statement
|
219
|
+
ruby statement
|
220
|
+
ruby statement
|
221
|
+
|
222
|
+
---- inner
|
223
|
+
ruby statement
|
224
|
+
:
|
225
|
+
:
|
226
|
+
--
|
@@ -0,0 +1,219 @@
|
|
1
|
+
= Racc Grammar File Reference
|
2
|
+
|
3
|
+
== Global Structure
|
4
|
+
|
5
|
+
== Class Block and User Code Block
|
6
|
+
|
7
|
+
There are two blocks on the toplevel. One is the 'class' block, the other is the 'user code'
|
8
|
+
block. The 'user code' block MUST be placed after the 'class' block.
|
9
|
+
|
10
|
+
== Comments
|
11
|
+
|
12
|
+
You can insert comments about all places. Two styles of comments can be used, Ruby style '#.....' and C style '/\*......*\/'.
|
13
|
+
|
14
|
+
== Class Block
|
15
|
+
|
16
|
+
The class block is formed like this:
|
17
|
+
|
18
|
+
class CLASS_NAME
|
19
|
+
[precedence table]
|
20
|
+
[token declarations]
|
21
|
+
[expected number of S/R conflicts]
|
22
|
+
[options]
|
23
|
+
[semantic value conversion]
|
24
|
+
[start rule]
|
25
|
+
rule
|
26
|
+
GRAMMARS
|
27
|
+
|
28
|
+
CLASS_NAME is a name of the parser class. This is the name of the generating parser
|
29
|
+
class.
|
30
|
+
|
31
|
+
If CLASS_NAME includes '::', Racc outputs the module clause. For example, writing
|
32
|
+
"class M::C" causes the code below to be created:
|
33
|
+
|
34
|
+
module M
|
35
|
+
class C
|
36
|
+
:
|
37
|
+
:
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
== Grammar Block
|
42
|
+
|
43
|
+
The grammar block describes grammar which is able to be understood by the parser.
|
44
|
+
Syntax is:
|
45
|
+
|
46
|
+
(token): (token) (token) (token).... (action)
|
47
|
+
|
48
|
+
(token): (token) (token) (token).... (action)
|
49
|
+
| (token) (token) (token).... (action)
|
50
|
+
| (token) (token) (token).... (action)
|
51
|
+
|
52
|
+
(action) is an action which is executed when its (token)s are found.
|
53
|
+
(action) is a ruby code block, which is surrounded by braces:
|
54
|
+
|
55
|
+
{ print val[0]
|
56
|
+
puts val[1] }
|
57
|
+
|
58
|
+
Note that you cannot use '%' string, here document, '%r' regexp in action.
|
59
|
+
|
60
|
+
Actions can be omitted. When it is omitted, '' (empty string) is used.
|
61
|
+
|
62
|
+
A return value of action is a value of the left side value ($$). It is the value of the
|
63
|
+
result, or the returned value by `return` statement.
|
64
|
+
|
65
|
+
Here is an example of the whole grammar block.
|
66
|
+
|
67
|
+
rule
|
68
|
+
goal: definition rules source { result = val }
|
69
|
+
|
70
|
+
definition: /* none */ { result = [] }
|
71
|
+
| definition startdesig { result[0] = val[1] }
|
72
|
+
| definition
|
73
|
+
precrule # this line continues from upper line
|
74
|
+
{
|
75
|
+
result[1] = val[1]
|
76
|
+
}
|
77
|
+
|
78
|
+
startdesig: START TOKEN
|
79
|
+
|
80
|
+
You can use the following special local variables in action:
|
81
|
+
|
82
|
+
* result ($$)
|
83
|
+
|
84
|
+
The value of the left-hand side (lhs). A default value is val[0].
|
85
|
+
|
86
|
+
* val ($1,$2,$3...)
|
87
|
+
|
88
|
+
An array of value of the right-hand side (rhs).
|
89
|
+
|
90
|
+
* _values (...$-2,$-1,$0)
|
91
|
+
|
92
|
+
A stack of values. DO NOT MODIFY this stack unless you know what you are doing.
|
93
|
+
|
94
|
+
== Operator Precedence
|
95
|
+
|
96
|
+
This function is equal to '%prec' in yacc.
|
97
|
+
To designate this block:
|
98
|
+
|
99
|
+
prechigh
|
100
|
+
nonassoc '++'
|
101
|
+
left '*' '/'
|
102
|
+
left '+' '-'
|
103
|
+
right '='
|
104
|
+
preclow
|
105
|
+
|
106
|
+
`right` is yacc's %right, `left` is yacc's %left.
|
107
|
+
|
108
|
+
`=` + (symbol) means yacc's %prec:
|
109
|
+
|
110
|
+
prechigh
|
111
|
+
nonassoc UMINUS
|
112
|
+
left '*' '/'
|
113
|
+
left '+' '-'
|
114
|
+
preclow
|
115
|
+
|
116
|
+
rule
|
117
|
+
exp: exp '*' exp
|
118
|
+
| exp '-' exp
|
119
|
+
| '-' exp =UMINUS # equals to "%prec UMINUS"
|
120
|
+
:
|
121
|
+
:
|
122
|
+
|
123
|
+
== expect
|
124
|
+
|
125
|
+
Racc has bison's "expect" directive.
|
126
|
+
|
127
|
+
# Example
|
128
|
+
|
129
|
+
class MyParser
|
130
|
+
rule
|
131
|
+
expect 3
|
132
|
+
:
|
133
|
+
:
|
134
|
+
|
135
|
+
This directive declares "expected" number of shift/reduce conflicts. If
|
136
|
+
"expected" number is equal to real number of conflicts, Racc does not print
|
137
|
+
conflict warning message.
|
138
|
+
|
139
|
+
== Declaring Tokens
|
140
|
+
|
141
|
+
By declaring tokens, you can avoid many meaningless bugs. If declared token
|
142
|
+
does not exist or existing token does not decleared, Racc output warnings.
|
143
|
+
Declaration syntax is:
|
144
|
+
|
145
|
+
token TOKEN_NAME AND_IS_THIS
|
146
|
+
ALSO_THIS_IS AGAIN_AND_AGAIN THIS_IS_LAST
|
147
|
+
|
148
|
+
== Options
|
149
|
+
|
150
|
+
You can write options for Racc command in your Racc file.
|
151
|
+
|
152
|
+
options OPTION OPTION ...
|
153
|
+
|
154
|
+
Options are:
|
155
|
+
|
156
|
+
* omit_action_call
|
157
|
+
|
158
|
+
omits empty action call or not.
|
159
|
+
|
160
|
+
* result_var
|
161
|
+
|
162
|
+
uses local variable "result" or not.
|
163
|
+
|
164
|
+
You can use 'no_' prefix to invert their meanings.
|
165
|
+
|
166
|
+
== Converting Token Symbol
|
167
|
+
|
168
|
+
Token symbols are, as default,
|
169
|
+
|
170
|
+
* naked token string in Racc file (TOK, XFILE, this_is_token, ...)
|
171
|
+
--> symbol (:TOK, :XFILE, :this_is_token, ...)
|
172
|
+
* quoted string (':', '.', '(', ...)
|
173
|
+
--> same string (':', '.', '(', ...)
|
174
|
+
|
175
|
+
You can change this default by "convert" block.
|
176
|
+
Here is an example:
|
177
|
+
|
178
|
+
convert
|
179
|
+
PLUS 'PlusClass' # We use PlusClass for symbol of `PLUS'
|
180
|
+
MIN 'MinusClass' # We use MinusClass for symbol of `MIN'
|
181
|
+
end
|
182
|
+
|
183
|
+
We can use almost all ruby value can be used by token symbol,
|
184
|
+
except 'false' and 'nil'. These cause unexpected parse error.
|
185
|
+
|
186
|
+
If you want to use String as token symbol, special care is required.
|
187
|
+
For example:
|
188
|
+
|
189
|
+
convert
|
190
|
+
class '"cls"' # in code, "cls"
|
191
|
+
PLUS '"plus\n"' # in code, "plus\n"
|
192
|
+
MIN "\"minus#{val}\"" # in code, \"minus#{val}\"
|
193
|
+
end
|
194
|
+
|
195
|
+
== Start Rule
|
196
|
+
|
197
|
+
'%start' in yacc. This changes start rule.
|
198
|
+
|
199
|
+
start real_target
|
200
|
+
|
201
|
+
== User Code Block
|
202
|
+
|
203
|
+
"User Code Block" is a Ruby source code which is copied to output. There are
|
204
|
+
three user code blocks, "header" "inner" and "footer".
|
205
|
+
|
206
|
+
Format of user code is like this:
|
207
|
+
|
208
|
+
---- header
|
209
|
+
ruby statement
|
210
|
+
ruby statement
|
211
|
+
ruby statement
|
212
|
+
|
213
|
+
---- inner
|
214
|
+
ruby statement
|
215
|
+
:
|
216
|
+
:
|
217
|
+
|
218
|
+
If four '-' exist on the line head, Racc treats it as the beginning of the
|
219
|
+
user code block. The name of the user code block must be one word.
|