Skip to content

Commit

Permalink
Add introduction of grammar chapter
Browse files Browse the repository at this point in the history
  • Loading branch information
KajizukaTaichi committed Jun 21, 2024
1 parent aca3439 commit 7983b6e
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 6 deletions.
3 changes: 3 additions & 0 deletions docs/grammar.html
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,9 @@ <h1 class="menu-title">Documents of Stack Programming Language</h1>
<div id="content" class="content">
<main>
<h1 id="grammar"><a class="header" href="#grammar">Grammar</a></h1>
<p>In this chapter, Explain about unique grammar of Stack.
Stack's grammar is very strange, That makes beginner difficult to understanding.
But, It's feeling good to write the code if used to it.</p>

</main>

Expand Down
3 changes: 3 additions & 0 deletions docs/print.html
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,9 @@ <h1 id="documents-of-stack-programming-language"><a class="header" href="#docume
<p><img src="getting_started/image.png" alt="alt text" /></p>
<div style="break-before: page; page-break-before: always;"></div><h1 id="build-web-server"><a class="header" href="#build-web-server">Build Web Server</a></h1>
<div style="break-before: page; page-break-before: always;"></div><h1 id="grammar"><a class="header" href="#grammar">Grammar</a></h1>
<p>In this chapter, Explain about unique grammar of Stack.
Stack's grammar is very strange, That makes beginner difficult to understanding.
But, It's feeling good to write the code if used to it.</p>
<div style="break-before: page; page-break-before: always;"></div><h1 id="string-notation"><a class="header" href="#string-notation">String Notation</a></h1>
<div style="break-before: page; page-break-before: always;"></div><h1 id="list-notation"><a class="header" href="#list-notation">List Notation</a></h1>
<div style="break-before: page; page-break-before: always;"></div><h1 id="comment-notation"><a class="header" href="#comment-notation">Comment Notation</a></h1>
Expand Down
2 changes: 1 addition & 1 deletion docs/searchindex.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/searchindex.json

Large diffs are not rendered by default.

4 changes: 0 additions & 4 deletions src/commands_reference/calculation.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ RPN is a mathematical notation wherein every operator follows all of its operand


## Addition

In Stack, to add two numbers, you would write the operands first, followed by the operator.

> the "Usual" is based on Python's syntax
Expand All @@ -28,7 +27,6 @@ Stack〔 3 | 4 〕 ← add
Stack〔 7 〕
```
## Subtraction

For subtraction, the Stack format follows the same pattern: operands first, then the operator.

**Example**:
Expand All @@ -44,7 +42,6 @@ Stack〔 5 〕
```

## Multiplication

Multiplication in Stack is handled similarly.

**Example**:
Expand All @@ -60,7 +57,6 @@ Stack〔 30 〕
```

## Division

Division follows the same postfix notation rules.

**Example**:
Expand Down
4 changes: 4 additions & 0 deletions src/grammar.md
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
# Grammar

In this chapter, Explain about unique grammar of Stack.
Stack's grammar is very strange, That makes beginner difficult to understanding.
But, It's feeling good to write the code if used to it.

0 comments on commit 7983b6e

Please sign in to comment.