Skip to content

Commit 7847e84

Browse files
committed
a
1 parent 8a976a5 commit 7847e84

File tree

4 files changed

+36
-1
lines changed

4 files changed

+36
-1
lines changed

.gitignore

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

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

mylibrary/clone.stk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
((a) var a a () (a) var) (clone) var

mylibrary/queue.stk

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
(
2+
(mode) var
3+
(item) var
4+
5+
(
6+
7+
)
8+
()
9+
mode equals (push)
10+
item
11+
) (queue) var

mysrc/stackprogramminglanguage.stk

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
(
2+
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
21+
22+
) (do) var
23+
do eval

0 commit comments

Comments
 (0)