Skip to content

Commit b86373c

Browse files
committed
2 parents 9f490f1 + a7ee686 commit b86373c

File tree

6 files changed

+252
-64
lines changed

6 files changed

+252
-64
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,6 @@ Cargo.lock
1111
**/*.rs.bk
1212

1313
# MSVC Windows builds of rustc generate these, which store debugging information
14-
*.pdb
14+
*.pdb
15+
16+
hidden/

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ rand = "0.8"
1111
regex = "0.1"
1212
reqwest = { version = "0.11.0", features = ["blocking"] }
1313
rodio = "0.17.3"
14-
sys-info = "0.7.0"
14+
sys-info = "0.7.0"
15+
clap = "3.0"

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,19 @@ The powerful script language designed with a stack oriented approach for efficie
33

44
![image](https://github.com/Stack-Programing-Community/Stack-Programing-Language/assets/122075081/5d7ff479-731b-4def-808a-12dc5301a7a1)
55

6-
## Installation
6+
## Install
7+
8+
### If you don't want to install...
9+
10+
```bash
11+
git clone https://github.com/Stack-Programing-Community/Stack-Programing-Language.git
12+
cd Stack-Programing-Language
13+
cargo build --release
14+
chmod +x ./run.stack.sh
15+
./run-stack.sh
16+
```
17+
18+
### Normal Install
719

820
Stack programming language's interpreter binary files for Windows are in the [release](https://github.com/Stack-Programing-Community/Stack-Programing-Language/releases).
921

mysrc/stackprogramminglanguage.stk

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
11
(
22

3-
# Welcome to Stack Programming Language # (Welcome to...) print
4-
(Stack) () true if
5-
6-
((str) var [str (ming)] () join) func var
7-
(Program) func eval
8-
9-
[(Lang) (uage) (fake)] l var
10-
l 0 get
11-
l 1 get
12-
(b) var
13-
(a) var
14-
[a b] () join
15-
16-
(a) var
17-
(b) var
18-
(c) var
19-
[c b a] ( ) join (a) var
20-
[a (!)] () join print
3+
(Welcome to...) print
214

5+
(Stack) () true if
6+
7+
((str) var [str (ming)] () join) func var
8+
(Program) func eval
9+
10+
[(Lang) (uage) (fake)] l var
11+
l 0 get
12+
l 1 get
13+
(b) var
14+
(a) var
15+
[a b] () join
16+
17+
(a) var
18+
(b) var
19+
(c) var
20+
[c b a] ( ) join (a) var
21+
[a (!)] () join print
22+
2223
) (do) var
23-
do eval
24+
do eval

run-stack.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
3+
cd "$(dirname $0)"
4+
./target/release/stack $@

0 commit comments

Comments
 (0)