ascode 0.5.4 → 0.5.5

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: 56d53aec79abb0959c5e34c61b0f537013168b6ad79bde7a2480472f5259b7a1
4
- data.tar.gz: b574b6f1f4ff79a222a11a482dead059dd1a1f8f78b3f5eef6d0c5130584286e
3
+ metadata.gz: 2c3acce51fa7eec449751f02bba7325fae7ef52c3bff31c6613ffb4850718d60
4
+ data.tar.gz: ff07ae63b600f20e2922e9241fb74dd4aafc041570227f6fbcb7a35e7d54d59d
5
5
  SHA512:
6
- metadata.gz: 16b9ce147aa1a3cdfa24f46884ba9a0d6a16e0c4650a55dab82f30d90360a877aabfc996ad11bd022c37adc9b62ec4779a16c45df197651f2d2658ddd5309a12
7
- data.tar.gz: dd356e67eba3f008bba0a8e1838f0b45171be8ce2c08e8b7a972e2b44f92cea402fff096df928b1d90e6e74ee075adbcbc385a84d2416826189726f1e6e667a0
6
+ metadata.gz: b9f08680ca2a5c03067793421c2d22bb786a5bc38a600fa40495a9d28bdc9a8e228183b9f1af696bef11a286b8ae040ed121bb676354e2cf07c701c570181e11
7
+ data.tar.gz: bdbcfad01d5c039a6dade2c099ba460f1b8eaf698494c60703a43a400516ce607d6146250ffffaca7e0793bfb22b92012fa6e435270760ae0e43a70392c834a3
data/README.md CHANGED
@@ -26,9 +26,9 @@ At this moment, the only way to play with `ascode` is `irb`.
26
26
  $ irb
27
27
  irb(main):001:0> require "ascode"
28
28
  => true
29
- irb(main):002:0> Ascode.run 'e["Even":"Odd"]"It is "+'
30
- 10
31
- It is Even
29
+ irb(main):002:0> Ascode.run '"Number: "Oe["Even":"Odd"]O'
30
+ Number: 10
31
+ Even
32
32
  irb(main):003:0> Ascode.run "1.1*"
33
33
  5
34
34
  5.5
@@ -8,7 +8,11 @@ module Ascode
8
8
  end
9
9
 
10
10
  def self.output(env)
11
- puts env.pop(false)
11
+ print env.pop(false)
12
+ end
13
+
14
+ def self.new_line(_)
15
+ puts
12
16
  end
13
17
  end
14
18
  end
@@ -2,6 +2,7 @@ Character|Type|Name|`pop`s|`push`es|Description
2
2
  ---|---|---|---|---|---
3
3
  `I`|`io`|`input`||`a`|`stdin` -> `a`
4
4
  `O`|`io`|`output`|`a`||`a` -> `stdout`
5
+ `N`|`io`|`new_line`|||`\n` -> `stdout`
5
6
  `P`|`env`|`pop`|`a`||
6
7
  `[`|`condition`|`begin`|`a`|| If `a` = `0`, `nil` or `false`, then part after `:` is executed
7
8
  `:`|`condition`|`else`|||
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ascode
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.4
4
+ version: 0.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Artem Varaksa