yarp 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (82) hide show
  1. checksums.yaml +7 -0
  2. data/CODE_OF_CONDUCT.md +76 -0
  3. data/CONTRIBUTING.md +51 -0
  4. data/LICENSE.md +7 -0
  5. data/Makefile.in +79 -0
  6. data/README.md +86 -0
  7. data/config.h.in +25 -0
  8. data/config.yml +2147 -0
  9. data/configure +4487 -0
  10. data/docs/build_system.md +85 -0
  11. data/docs/building.md +26 -0
  12. data/docs/configuration.md +56 -0
  13. data/docs/design.md +53 -0
  14. data/docs/encoding.md +116 -0
  15. data/docs/extension.md +20 -0
  16. data/docs/fuzzing.md +93 -0
  17. data/docs/heredocs.md +36 -0
  18. data/docs/mapping.md +117 -0
  19. data/docs/ripper.md +36 -0
  20. data/docs/serialization.md +130 -0
  21. data/docs/testing.md +55 -0
  22. data/ext/yarp/api_node.c +3680 -0
  23. data/ext/yarp/api_pack.c +256 -0
  24. data/ext/yarp/extconf.rb +131 -0
  25. data/ext/yarp/extension.c +547 -0
  26. data/ext/yarp/extension.h +18 -0
  27. data/include/yarp/ast.h +1412 -0
  28. data/include/yarp/defines.h +54 -0
  29. data/include/yarp/diagnostic.h +24 -0
  30. data/include/yarp/enc/yp_encoding.h +94 -0
  31. data/include/yarp/node.h +36 -0
  32. data/include/yarp/pack.h +141 -0
  33. data/include/yarp/parser.h +389 -0
  34. data/include/yarp/regexp.h +19 -0
  35. data/include/yarp/unescape.h +42 -0
  36. data/include/yarp/util/yp_buffer.h +39 -0
  37. data/include/yarp/util/yp_char.h +75 -0
  38. data/include/yarp/util/yp_constant_pool.h +64 -0
  39. data/include/yarp/util/yp_list.h +67 -0
  40. data/include/yarp/util/yp_memchr.h +14 -0
  41. data/include/yarp/util/yp_newline_list.h +54 -0
  42. data/include/yarp/util/yp_state_stack.h +24 -0
  43. data/include/yarp/util/yp_string.h +57 -0
  44. data/include/yarp/util/yp_string_list.h +28 -0
  45. data/include/yarp/util/yp_strpbrk.h +29 -0
  46. data/include/yarp/version.h +5 -0
  47. data/include/yarp.h +69 -0
  48. data/lib/yarp/lex_compat.rb +759 -0
  49. data/lib/yarp/node.rb +7428 -0
  50. data/lib/yarp/pack.rb +185 -0
  51. data/lib/yarp/ripper_compat.rb +174 -0
  52. data/lib/yarp/serialize.rb +389 -0
  53. data/lib/yarp.rb +330 -0
  54. data/src/diagnostic.c +25 -0
  55. data/src/enc/yp_big5.c +79 -0
  56. data/src/enc/yp_euc_jp.c +85 -0
  57. data/src/enc/yp_gbk.c +88 -0
  58. data/src/enc/yp_shift_jis.c +83 -0
  59. data/src/enc/yp_tables.c +509 -0
  60. data/src/enc/yp_unicode.c +2320 -0
  61. data/src/enc/yp_windows_31j.c +83 -0
  62. data/src/node.c +2011 -0
  63. data/src/pack.c +493 -0
  64. data/src/prettyprint.c +1782 -0
  65. data/src/regexp.c +580 -0
  66. data/src/serialize.c +1576 -0
  67. data/src/token_type.c +347 -0
  68. data/src/unescape.c +576 -0
  69. data/src/util/yp_buffer.c +78 -0
  70. data/src/util/yp_char.c +229 -0
  71. data/src/util/yp_constant_pool.c +147 -0
  72. data/src/util/yp_list.c +50 -0
  73. data/src/util/yp_memchr.c +31 -0
  74. data/src/util/yp_newline_list.c +119 -0
  75. data/src/util/yp_state_stack.c +25 -0
  76. data/src/util/yp_string.c +207 -0
  77. data/src/util/yp_string_list.c +32 -0
  78. data/src/util/yp_strncasecmp.c +20 -0
  79. data/src/util/yp_strpbrk.c +66 -0
  80. data/src/yarp.c +13211 -0
  81. data/yarp.gemspec +100 -0
  82. metadata +125 -0
data/yarp.gemspec ADDED
@@ -0,0 +1,100 @@
1
+ # frozen_string_literal: true
2
+
3
+ Gem::Specification.new do |spec|
4
+ spec.name = "yarp"
5
+ spec.version = "0.6.0"
6
+ spec.authors = ["Shopify"]
7
+ spec.email = ["ruby@shopify.com"]
8
+
9
+ spec.summary = "Yet Another Ruby Parser"
10
+ spec.homepage = "https://github.com/ruby/yarp"
11
+ spec.license = "MIT"
12
+
13
+ spec.required_ruby_version = ">= 3.0.0"
14
+
15
+ spec.require_paths = ["lib"]
16
+ spec.files = [
17
+ "CODE_OF_CONDUCT.md",
18
+ "CONTRIBUTING.md",
19
+ "LICENSE.md",
20
+ "Makefile.in",
21
+ "README.md",
22
+ "config.h.in",
23
+ "config.yml",
24
+ "configure",
25
+ "docs/build_system.md",
26
+ "docs/building.md",
27
+ "docs/configuration.md",
28
+ "docs/design.md",
29
+ "docs/encoding.md",
30
+ "docs/extension.md",
31
+ "docs/fuzzing.md",
32
+ "docs/heredocs.md",
33
+ "docs/mapping.md",
34
+ "docs/ripper.md",
35
+ "docs/serialization.md",
36
+ "docs/testing.md",
37
+ "ext/yarp/api_node.c",
38
+ "ext/yarp/api_pack.c",
39
+ "ext/yarp/extension.c",
40
+ "ext/yarp/extension.h",
41
+ "include/yarp.h",
42
+ "include/yarp/ast.h",
43
+ "include/yarp/defines.h",
44
+ "include/yarp/diagnostic.h",
45
+ "include/yarp/enc/yp_encoding.h",
46
+ "include/yarp/node.h",
47
+ "include/yarp/pack.h",
48
+ "include/yarp/parser.h",
49
+ "include/yarp/regexp.h",
50
+ "include/yarp/unescape.h",
51
+ "include/yarp/util/yp_buffer.h",
52
+ "include/yarp/util/yp_char.h",
53
+ "include/yarp/util/yp_constant_pool.h",
54
+ "include/yarp/util/yp_list.h",
55
+ "include/yarp/util/yp_memchr.h",
56
+ "include/yarp/util/yp_newline_list.h",
57
+ "include/yarp/util/yp_state_stack.h",
58
+ "include/yarp/util/yp_string.h",
59
+ "include/yarp/util/yp_string_list.h",
60
+ "include/yarp/util/yp_strpbrk.h",
61
+ "include/yarp/version.h",
62
+ "lib/yarp.rb",
63
+ "lib/yarp/lex_compat.rb",
64
+ "lib/yarp/node.rb",
65
+ "lib/yarp/pack.rb",
66
+ "lib/yarp/ripper_compat.rb",
67
+ "lib/yarp/serialize.rb",
68
+ "src/diagnostic.c",
69
+ "src/enc/yp_big5.c",
70
+ "src/enc/yp_euc_jp.c",
71
+ "src/enc/yp_gbk.c",
72
+ "src/enc/yp_shift_jis.c",
73
+ "src/enc/yp_tables.c",
74
+ "src/enc/yp_unicode.c",
75
+ "src/enc/yp_windows_31j.c",
76
+ "src/node.c",
77
+ "src/pack.c",
78
+ "src/prettyprint.c",
79
+ "src/regexp.c",
80
+ "src/serialize.c",
81
+ "src/token_type.c",
82
+ "src/unescape.c",
83
+ "src/util/yp_buffer.c",
84
+ "src/util/yp_char.c",
85
+ "src/util/yp_constant_pool.c",
86
+ "src/util/yp_list.c",
87
+ "src/util/yp_memchr.c",
88
+ "src/util/yp_newline_list.c",
89
+ "src/util/yp_state_stack.c",
90
+ "src/util/yp_string.c",
91
+ "src/util/yp_string_list.c",
92
+ "src/util/yp_strncasecmp.c",
93
+ "src/util/yp_strpbrk.c",
94
+ "src/yarp.c",
95
+ "yarp.gemspec",
96
+ ]
97
+
98
+ spec.extensions = ["ext/yarp/extconf.rb"]
99
+ spec.metadata["allowed_push_host"] = "https://rubygems.org"
100
+ end
metadata ADDED
@@ -0,0 +1,125 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: yarp
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.6.0
5
+ platform: ruby
6
+ authors:
7
+ - Shopify
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2023-08-09 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description:
14
+ email:
15
+ - ruby@shopify.com
16
+ executables: []
17
+ extensions:
18
+ - ext/yarp/extconf.rb
19
+ extra_rdoc_files: []
20
+ files:
21
+ - CODE_OF_CONDUCT.md
22
+ - CONTRIBUTING.md
23
+ - LICENSE.md
24
+ - Makefile.in
25
+ - README.md
26
+ - config.h.in
27
+ - config.yml
28
+ - configure
29
+ - docs/build_system.md
30
+ - docs/building.md
31
+ - docs/configuration.md
32
+ - docs/design.md
33
+ - docs/encoding.md
34
+ - docs/extension.md
35
+ - docs/fuzzing.md
36
+ - docs/heredocs.md
37
+ - docs/mapping.md
38
+ - docs/ripper.md
39
+ - docs/serialization.md
40
+ - docs/testing.md
41
+ - ext/yarp/api_node.c
42
+ - ext/yarp/api_pack.c
43
+ - ext/yarp/extconf.rb
44
+ - ext/yarp/extension.c
45
+ - ext/yarp/extension.h
46
+ - include/yarp.h
47
+ - include/yarp/ast.h
48
+ - include/yarp/defines.h
49
+ - include/yarp/diagnostic.h
50
+ - include/yarp/enc/yp_encoding.h
51
+ - include/yarp/node.h
52
+ - include/yarp/pack.h
53
+ - include/yarp/parser.h
54
+ - include/yarp/regexp.h
55
+ - include/yarp/unescape.h
56
+ - include/yarp/util/yp_buffer.h
57
+ - include/yarp/util/yp_char.h
58
+ - include/yarp/util/yp_constant_pool.h
59
+ - include/yarp/util/yp_list.h
60
+ - include/yarp/util/yp_memchr.h
61
+ - include/yarp/util/yp_newline_list.h
62
+ - include/yarp/util/yp_state_stack.h
63
+ - include/yarp/util/yp_string.h
64
+ - include/yarp/util/yp_string_list.h
65
+ - include/yarp/util/yp_strpbrk.h
66
+ - include/yarp/version.h
67
+ - lib/yarp.rb
68
+ - lib/yarp/lex_compat.rb
69
+ - lib/yarp/node.rb
70
+ - lib/yarp/pack.rb
71
+ - lib/yarp/ripper_compat.rb
72
+ - lib/yarp/serialize.rb
73
+ - src/diagnostic.c
74
+ - src/enc/yp_big5.c
75
+ - src/enc/yp_euc_jp.c
76
+ - src/enc/yp_gbk.c
77
+ - src/enc/yp_shift_jis.c
78
+ - src/enc/yp_tables.c
79
+ - src/enc/yp_unicode.c
80
+ - src/enc/yp_windows_31j.c
81
+ - src/node.c
82
+ - src/pack.c
83
+ - src/prettyprint.c
84
+ - src/regexp.c
85
+ - src/serialize.c
86
+ - src/token_type.c
87
+ - src/unescape.c
88
+ - src/util/yp_buffer.c
89
+ - src/util/yp_char.c
90
+ - src/util/yp_constant_pool.c
91
+ - src/util/yp_list.c
92
+ - src/util/yp_memchr.c
93
+ - src/util/yp_newline_list.c
94
+ - src/util/yp_state_stack.c
95
+ - src/util/yp_string.c
96
+ - src/util/yp_string_list.c
97
+ - src/util/yp_strncasecmp.c
98
+ - src/util/yp_strpbrk.c
99
+ - src/yarp.c
100
+ - yarp.gemspec
101
+ homepage: https://github.com/ruby/yarp
102
+ licenses:
103
+ - MIT
104
+ metadata:
105
+ allowed_push_host: https://rubygems.org
106
+ post_install_message:
107
+ rdoc_options: []
108
+ require_paths:
109
+ - lib
110
+ required_ruby_version: !ruby/object:Gem::Requirement
111
+ requirements:
112
+ - - ">="
113
+ - !ruby/object:Gem::Version
114
+ version: 3.0.0
115
+ required_rubygems_version: !ruby/object:Gem::Requirement
116
+ requirements:
117
+ - - ">="
118
+ - !ruby/object:Gem::Version
119
+ version: '0'
120
+ requirements: []
121
+ rubygems_version: 3.4.1
122
+ signing_key:
123
+ specification_version: 4
124
+ summary: Yet Another Ruby Parser
125
+ test_files: []