Skip to content

Commit adc61cd

Browse files
author
梶塚太智
authored
Update README.md
1 parent 5525f04 commit adc61cd

File tree

1 file changed

+25
-40
lines changed

1 file changed

+25
-40
lines changed

README.md

Lines changed: 25 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,29 @@
1-
# Stack programming language
1+
# Stack Programming Language
22
The powerful script language designed with a stack oriented approach for efficient execution.
33

4-
## Features
5-
6-
1. Efficient stack-oriented execution model
7-
2. Clear, easy-to-understand and elegant syntax
8-
3. Rich of convenient and highly extensible commands
9-
4. Dynamic and flexible data types system
10-
11-
## Sample code
12-
This is a sample code to solve FizzBuzz problem in Stack programming language
13-
```stack
14-
(
15-
(i) var
16-
(Fizz) ()
17-
i 3 mod 0 equal if
18-
) (fizz) var
19-
20-
(
21-
(i) var
22-
(Buzz) ()
23-
i 5 mod 0 equal if
24-
) (buzz) var
25-
26-
1 101 1 range (i) (
27-
28-
() (msg) var
29-
msg i fizz eval concat (msg) var
30-
msg i buzz eval concat (msg) var
31-
32-
(
33-
i (msg) var
34-
) ()
35-
msg () equal if
36-
msg print
37-
) for
38-
````
39-
40-
## contribution
41-
Any contributions are welcome! Feel free to open a pull request and help make the Stack programming language even better.
4+
## Installation
5+
6+
You can install Stack Programming Language using `cargo`, the Rust package manager. Make sure you have Rust installed on your system before proceeding.
7+
8+
```bash
9+
$ git clone https://github.com/Stack-Programing-Community/Stack-Programing-Language.git
10+
$ cd Stack-Programing-Language
11+
$ cargo build --release
12+
$ cargo install --path .
13+
```
14+
15+
This will install the `stack` command, which you can use to run Stack Programming Language programs.
16+
17+
## Usage
18+
19+
To run a Stack Programming Language program, use the `stack` command followed by the path to your program file.
20+
21+
```bash
22+
$ stack path/to/your/program.stk
23+
```
24+
25+
For more detailed usage instructions and language specifications, please refer to the official documentation.
4226

4327
## License
44-
The Stack programming language is free software under the MIT license. Anyone can use and change it. See the [LICENSE](LICENSE) file for more details
28+
29+
Stack Programming Language is distributed under the MIT license. See the [LICENSE](LICENSE) file for details.

0 commit comments

Comments
 (0)