ascode 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +33 -1
- data/lib/ascode.rb +0 -2
- 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: c37206388b99453269bd2dda688fd0bf35d7594d377b947f02c2b599346e29ae
|
4
|
+
data.tar.gz: 022a9a0e56b67752dbf34f55b49e72cfbceefc9fa1e819353da9b94a4279503a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 178f05b1a2346522cac93f3776461538bf86f2807203fc80fc33f270b8a64c45ed6f66a7fd86d4ea4c55370f76865279514e1fde5a42f7a0a89187526819663b
|
7
|
+
data.tar.gz: f0dffbeac596f27cfdc5a7c821db781142478fe341a6b346980a89699f14b8a45e96d2cd1fa69e63acee480f170467829ffc8c75a7b9bbc250a0c74093b92137
|
data/README.md
CHANGED
@@ -3,4 +3,36 @@
|
|
3
3
|
|
4
4
|
> Esoteric golfing language
|
5
5
|
|
6
|
-
> In active development, so behavior may be changed without prior notice.
|
6
|
+
> In active development, so behavior may be changed without prior notice.
|
7
|
+
|
8
|
+
- [Getting Started](#getting-started)
|
9
|
+
- [Features](#features)
|
10
|
+
|
11
|
+
### Getting Started
|
12
|
+
|
13
|
+
###### Install
|
14
|
+
|
15
|
+
```bash
|
16
|
+
gem install ascode
|
17
|
+
```
|
18
|
+
|
19
|
+
###### Run
|
20
|
+
|
21
|
+
Function documentation is available in [`lib/ascode/functions.md
|
22
|
+
`](https://github.com/sudoio/ascode/blob/master/lib/ascode/functions.md).
|
23
|
+
|
24
|
+
At this moment, the only way to play with `ascode` is `irb`.
|
25
|
+
|
26
|
+
```bash
|
27
|
+
$ irb
|
28
|
+
irb(main):001:0> require 'ascode'
|
29
|
+
=> true
|
30
|
+
irb(main):002:0> Ascode.run('5*±')
|
31
|
+
123
|
32
|
+
-615
|
33
|
+
```
|
34
|
+
|
35
|
+
### Features
|
36
|
+
- Implicit input/output
|
37
|
+
- If you did not output anything, `>` (`output` function) will be called at the end of the program.
|
38
|
+
- During `pop`, if the value is not in the stack, it will be grabbed via `<` (`input` function).
|
data/lib/ascode.rb
CHANGED