ascode 0.6.1 → 0.7.0
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.
- checksums.yaml +4 -4
- data/README.md +5 -8
- data/bin/ascode +7 -0
- data/lib/ascode/interpreter/environment.rb +6 -0
- data/lib/ascode/interpreter/io.rb +1 -1
- data/lib/ascode/parser/functions.md +1 -0
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a14bfef61961e4ccc91ad40f9e695ec5c66e7ca58038075daeeef24ce1c9d131
|
4
|
+
data.tar.gz: d60742f61e14b47908f9a60b223840d392206f08f5c565fed9b95d9acc6b4592
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9125118d12ab8f11b787b09d60876a7f53a8ae694e60e36a9eb21c290228ea6f092ccf201c55d59e3c9271b4bf6e735457b0d883b684b5c764341310ab1cf3b7
|
7
|
+
data.tar.gz: ea51aa9be5cd74ce33499b704d77fffdbc42d866ccd2ee56eae755e07acfc60904f246883b5530b892da5a90408e17019550f6d9614e7c211ff186cd9983c75f
|
data/README.md
CHANGED
@@ -17,19 +17,16 @@ gem install ascode
|
|
17
17
|
|
18
18
|
###### Run
|
19
19
|
|
20
|
-
Function reference is available in [`lib/ascode/parser/functions.md
|
20
|
+
> Function reference is available in [`lib/ascode/parser/functions.md
|
21
21
|
`](https://github.com/sudoio/ascode/blob/master/lib/ascode/parser/functions.md).
|
22
22
|
|
23
|
-
At this moment, the only way to play with `ascode` is `irb`.
|
24
|
-
|
25
23
|
```bash
|
26
|
-
$
|
27
|
-
irb(main):001:0> require "ascode"
|
28
|
-
=> true
|
29
|
-
irb(main):002:0> Ascode.run '"Number: "Oe["Even":"Odd"]O'
|
24
|
+
$ ascode '"Number: "Oe["Even":"Odd"]O'
|
30
25
|
Number: 10
|
31
26
|
Even
|
32
|
-
|
27
|
+
```
|
28
|
+
```bash
|
29
|
+
$ ascode '"A: "OI"B: "OIS>["A > B":"A <= B"]O'
|
33
30
|
A: 10
|
34
31
|
B: 5
|
35
32
|
A > B
|
data/bin/ascode
ADDED
@@ -12,6 +12,7 @@ Character|Type|Name|`pop`s|`push`es|Description
|
|
12
12
|
---|---|---|---|---|---
|
13
13
|
`P`|`env`|`pop`|`a`||
|
14
14
|
`S`|`env`|`swap`|`a`, `b`|`a`, `b`|Swaps first two elements in the stack
|
15
|
+
`C`|`env`|`copy`|`a`|`a`, `a`|Duplicates first element in the stack
|
15
16
|
|
16
17
|
#### Condition
|
17
18
|
|
metadata
CHANGED
@@ -1,24 +1,26 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ascode
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Artem Varaksa
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-01-
|
11
|
+
date: 2018-01-20 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Esoteric golfing language. In active development, so behavior may be
|
14
14
|
changed without prior notice.
|
15
15
|
email:
|
16
|
-
executables:
|
16
|
+
executables:
|
17
|
+
- ascode
|
17
18
|
extensions: []
|
18
19
|
extra_rdoc_files: []
|
19
20
|
files:
|
20
21
|
- LICENSE.md
|
21
22
|
- README.md
|
23
|
+
- bin/ascode
|
22
24
|
- lib/ascode.rb
|
23
25
|
- lib/ascode/converter.rb
|
24
26
|
- lib/ascode/interpreter/condition.rb
|