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 +4 -4
- data/README.md +3 -3
- data/lib/ascode/interpreter/io.rb +5 -1
- data/lib/ascode/parser/functions.md +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c3acce51fa7eec449751f02bba7325fae7ef52c3bff31c6613ffb4850718d60
|
4
|
+
data.tar.gz: ff07ae63b600f20e2922e9241fb74dd4aafc041570227f6fbcb7a35e7d54d59d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 '
|
30
|
-
10
|
31
|
-
|
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
|
@@ -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`|||
|