minruby 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/minruby.rb +4 -0
  3. data/minruby.gemspec +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b340f255579f114e1a15261de55aac35ec12877c
4
- data.tar.gz: a57a58ae0e2933d5bd35d4a4580fe58786547cfb
3
+ metadata.gz: acc3f9fdbb746f75aad18ce1cc0cfdb29d45782d
4
+ data.tar.gz: 72720a91841eb61826ab427e78c994ce351879f7
5
5
  SHA512:
6
- metadata.gz: 3f37d3ef1444db0840e31a0c4dd4ae732a99b89547312047a974d1ba0f6a2959f1e6f74e633bd0c15303cf39052d381c548d79f74d715c5a336ee3358b741edc
7
- data.tar.gz: 98d2f0c24c428f7fb319e68f8309dddabc8c7360c2df89da23dd8009c5a04a5bd1f0163aaadd795b105d9b795c62d4b4deb59b8a047b29d449263479927e8a1f
6
+ metadata.gz: 1ef4d6ea9a71b916733dd6519c230a8acdac72ae36cac6f74b9878d41e503f0987933f5a326788ac54dbae263ca762c460ddf44b15e1f4dca50f6e2e562d083a
7
+ data.tar.gz: 21ab769f0b430c9fc5f76f580857ec616da46366c8427fa7eb0f3c302b5b944ca25a283d906ca4dd49d16224e4ed2537d5cc81a4cdfe248a9f5ee96af29423f8
@@ -59,6 +59,10 @@ class MinRubyParser
59
59
  cond_exp = simplify(exp[1])
60
60
  body_exp = make_stmts(exp[2])
61
61
  ["while", cond_exp, body_exp]
62
+ when :while_mod
63
+ cond_exp = simplify(exp[1])
64
+ body_exp = make_stmts(exp[2][1][1])
65
+ ["while2", cond_exp, body_exp]
62
66
  when :binary
63
67
  exp1 = simplify(exp[1])
64
68
  op = exp[2]
@@ -1,7 +1,7 @@
1
1
  # coding: utf-8
2
2
  Gem::Specification.new do |spec|
3
3
  spec.name = "minruby"
4
- spec.version = "1.0.1"
4
+ spec.version = "1.0.2"
5
5
  spec.authors = ["Yusuke Endoh"]
6
6
  spec.email = ["mame@ruby-lang.org"]
7
7
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yusuke Endoh
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-10-23 00:00:00.000000000 Z
11
+ date: 2016-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler