mulang-ruby 1.3.2 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cecffb2784d2eb6e330cfa5063b8a41225089983ceaa2f7f57eb19c8e198bb4a
4
- data.tar.gz: cc55350552da04aacd221e53a8bcd148d0ab7c581a30a989c5308a974d426a76
3
+ metadata.gz: 47a7d664755b5fabb3a94a07aef124af4adf72e33c88f694c5a7b7b58dfee030
4
+ data.tar.gz: b541a67caafa2847060e130679974f9bafd713cb3384c3df9b7596a739103f29
5
5
  SHA512:
6
- metadata.gz: 9994e1855960c6e7e8b5769df95f71ad7bd480bd144e667952d2f853b7b4b743753eafdad8a47b73ccc3d64c99e6a63d896f130c65f0dcd4873714d50ec3982e
7
- data.tar.gz: 55173b4a6094e523c86242bb6270ed488dda5c917864f8a946f6c2d6088af6dbabf2dc453dc14be5a73d5f3f818cd711d2c898990951d0a25305b34e31796501
6
+ metadata.gz: a2413d8840c3a44de01558b1c4620a00032dbfede8ff3bd39ef163ca174b84ab0b99fdc8efe3e0d190be2e17e7ce6d1bf584fa13a5587079543e5aca9f8be659
7
+ data.tar.gz: 14c940338d3ab33ac367771682b3265150e986c52830eba4cc470fe6d3f0db34cce9283a4f7bf907a0d285e4b4bbfd810b76160802428c02ff43d6d3f51f913b
@@ -28,13 +28,13 @@ module Mulang::Ruby
28
28
 
29
29
  def on_rescue(node)
30
30
  try, *catch, _ = *node
31
- ms :Try, process(try), process_all(catch), ms(:MuNull)
31
+ ms :Try, process(try), process_all(catch), ms(:MuNil)
32
32
  end
33
33
 
34
34
  def on_resbody(node)
35
35
  patterns, variable, block = *node
36
36
 
37
- [to_mulang_pattern(patterns, variable), process(block) || ms(:MuNull)]
37
+ [to_mulang_pattern(patterns, variable), process(block) || ms(:MuNil)]
38
38
  end
39
39
 
40
40
  def _
@@ -75,7 +75,7 @@ module Mulang::Ruby
75
75
  end
76
76
 
77
77
  def on_irange(node)
78
- ms :Other
78
+ ms :Other, node.to_s, nil
79
79
  end
80
80
 
81
81
  def on_regexp(node)
@@ -139,7 +139,7 @@ module Mulang::Ruby
139
139
  end
140
140
 
141
141
  def on_nil(_)
142
- ms :MuNull
142
+ ms :MuNil
143
143
  end
144
144
 
145
145
  def on_self(_)
@@ -257,7 +257,7 @@ module Mulang::Ruby
257
257
 
258
258
  def handler_missing(*args)
259
259
  puts args
260
- ms :Other
260
+ ms :Other, args.to_s, nil
261
261
  end
262
262
 
263
263
  def handle_send_with_args(node, extra_args=[])
@@ -2,7 +2,7 @@ module Mulang::Ruby
2
2
  module Sexp
3
3
  def sequence(*contents)
4
4
  if contents.empty?
5
- ms(:MuNull)
5
+ ms(:MuNil)
6
6
  elsif contents.size == 1
7
7
  contents[0]
8
8
  else
@@ -1,5 +1,5 @@
1
1
  module Mulang
2
2
  module Ruby
3
- VERSION = "1.3.2"
3
+ VERSION = "4.0.0"
4
4
  end
5
5
  end
data/mulang-ruby.gemspec CHANGED
@@ -29,5 +29,5 @@ Gem::Specification.new do |spec|
29
29
  spec.add_dependency "parser"
30
30
  spec.add_dependency "ast"
31
31
  spec.add_dependency "mumukit-core", "~> 1.0"
32
- spec.add_dependency "mulang", "~> 3.5"
32
+ spec.add_dependency "mulang", "~> 4.0"
33
33
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mulang-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.2
4
+ version: 4.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Franco Leonardo Bulgarelli
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-04-15 00:00:00.000000000 Z
11
+ date: 2018-05-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -114,14 +114,14 @@ dependencies:
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: '3.5'
117
+ version: '4.0'
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: '3.5'
124
+ version: '4.0'
125
125
  description: Ruby - Mulang Parser
126
126
  email:
127
127
  - franco@mumuki.org
@@ -167,7 +167,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
167
167
  version: '0'
168
168
  requirements: []
169
169
  rubyforge_project:
170
- rubygems_version: 2.7.6
170
+ rubygems_version: 2.7.7
171
171
  signing_key:
172
172
  specification_version: 4
173
173
  summary: Ruby integration for the Mulang Language Analyzer