ascode 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/ascode/functions.md +6 -6
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5cd39a387db21b65e74bf8617268f265998de21ad229e34bd39c035ac340fcbc
4
- data.tar.gz: 92a4c0f8331707b07e71956960c706a34d64f4ba08cb055b5038d5378bd07f45
3
+ metadata.gz: de1702920c870013640005d0f0724bd13dfb2b05bd25b052fe50622df5c65758
4
+ data.tar.gz: 1fae2781689e81b8eace6f5d82fb3cfb0c0dcceab677a26e5aede4f918d225d4
5
5
  SHA512:
6
- metadata.gz: 14a8a972f71267ff6f38d01903d79f3848f49dea8434dd6af168e72645a2e17fbc09e72da1d3662e6df1350f869b4f2552b2ef7d44181166071fe950a7e0ae86
7
- data.tar.gz: 75adb189e94e30df9459dbacc96f537659658a7ab30e9831eddab6d6f8a6b957951c8cdb12d99eaa9fc315da3de5c33ddd553cdf113a180cb45d17e340dc941c
6
+ metadata.gz: 85761e387ed25985058174f7f55767069b4aaa87ccb3ca1b48acf7cd42dc626a7f5682819d128f0ab09c4eaf9143255f8caf3727bfade580f84bdb463b54a787
7
+ data.tar.gz: 59a35730c10c23a326e6369aa9d6fc3a90526ed8a48c4c179be27d616d8f56cd49459a36dbb057514062fdcda4e0e7dbcb96d3536b186f00af3ffa725378dfc6
data/README.md CHANGED
@@ -27,7 +27,7 @@ At this moment, the only way to play with `ascode` is `irb`.
27
27
  $ irb
28
28
  irb(main):001:0> require "ascode"
29
29
  => true
30
- irb(main):002:0> Ascode.run 'ê["Even"~"Odd"]"It is "+'
30
+ irb(main):002:0> Ascode.run 'e["Even"~"Odd"]"It is "+'
31
31
  10
32
32
  It is Even
33
33
  irb(main):003:0> Ascode.run "1.1*"
@@ -1,8 +1,8 @@
1
1
  Character|Name|`pop`s|`push`es|Description
2
2
  ---|---|---|---|---
3
- `>`|`output`|`a`||`a` -> `stdout`
4
- `<`|`input`||`a`|`stdin` -> `a`
5
- `^`|`pop`|`a`||
3
+ `I`|`input`||`a`|`stdin` -> `a`
4
+ `O`|`output`|`a`||`a` -> `stdout`
5
+ `P`|`pop`|`a`||
6
6
  `[`|`condition_begin`|`a`|| If `a` = `0`, `nil` or `false`, then part after `~` is executed
7
7
  `~`|`condition_else`|||
8
8
  `]`|`condition_end`|||
@@ -10,6 +10,6 @@ Character|Name|`pop`s|`push`es|Description
10
10
  `-`|`minus`|`a`, `b`|`c`|`c` = `a` - `b`
11
11
  `/`|`divide`|`a`, `b`|`c`|`c` = `a` / `b`
12
12
  `*`|`multiply`|`a`, `b`|`c`|`c` = `a` * `b`
13
- `ê`|`even`|`a`|`b`|`b` = `1` if `a` is even, `0` otherwise
14
- `↺`|`invert`|`a`|`b`|`b` = `1` if `a` = `0`, otherwise `0`
15
- `±`|`change_sign`|`a`|`b`|`b` = `-1` * `a`
13
+ `e`|`even`|`a`|`b`|`b` = `1` if `a` is even, `0` otherwise
14
+ `i`|`invert`|`a`|`b`|`b` = `1` if `a` = `0`, otherwise `0`
15
+ `s`|`change_sign`|`a`|`b`|`b` = `-1` * `a`
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.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Artem Varaksa